aslfaqs
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
aslfaqs [2025/09/09 17:34] – reggie | aslfaqs [2025/09/09 19:26] (current) – [Which registers do I use?] reggie | ||
---|---|---|---|
Line 20: | Line 20: | ||
==== Which registers do I use? ==== | ==== Which registers do I use? ==== | ||
- | For an address variable pick an index register, X, Y or even (user stack) U, it doesn' | + | For an address variable pick an index register, X, Y or even (user stack) U, it doesn' |
Choice between index or accumulator severely limits the operations you can perform. Only LD, ST, and CMP are common between all user registers. General arithmetic operations (NEG, AND etc.) are limited to the 8-bit accumulators, | Choice between index or accumulator severely limits the operations you can perform. Only LD, ST, and CMP are common between all user registers. General arithmetic operations (NEG, AND etc.) are limited to the 8-bit accumulators, | ||
Line 441: | Line 441: | ||
Yes, there' | Yes, there' | ||
+ | |||
+ | Beware of very deep recursion; a pixel flood-fill routine might call itself thousands of times, overwriting more than the available RAM with the system stack. | ||
==== What is position independence and when do I use it? ==== | ==== What is position independence and when do I use it? ==== |
aslfaqs.1757439290.txt.gz · Last modified: 2025/09/09 17:34 by reggie