sd:sd-8516_assembly_language
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| sd:sd-8516_assembly_language [2026/04/05 09:48] – appledog | sd:sd-8516_assembly_language [2026/04/05 09:51] (current) – appledog | ||
|---|---|---|---|
| Line 106: | Line 106: | ||
| | B | Assistant to the Accumulator | Secondary accumulator | This will often hold the results of functions called with A as a variable. | | | B | Assistant to the Accumulator | Secondary accumulator | This will often hold the results of functions called with A as a variable. | | ||
| | X | Column Index Register | Intended to help map 2d memory and arrays, loops, etc. | Often used for example in cursor or pixel array helper functions | | | X | Column Index Register | Intended to help map 2d memory and arrays, loops, etc. | Often used for example in cursor or pixel array helper functions | | ||
| - | | Y | Row Index Register | Intended to act as a row or record indicator alongside X. | Can form the XY paired | + | | Y | Row Index Register | Intended to act as a row or record indicator alongside X. | Row index register. | |
| - | | C, I, J, K | Iterator Registers | C is often used for counting, but I, J, K are also used. Also see: CD, IJ and KT. Some people treat these (especially K, alongside T and TK) as temporary registers | | + | | C, I, J, K | Iterator Registers | C is often used for counting, but I, J, K are also used. Also see: CD, IJ and KT. Some people treat these (especially K, alongside T and KT) as temporary registers | |
| | T | Temporary Register | There is a saying, if you are preserving T you're doing it wrong. Don't PUSH and POP T to protect it-- use it locally and then ignore it. T is our favorite temporary register! | | | T | Temporary Register | There is a saying, if you are preserving T you're doing it wrong. Don't PUSH and POP T to protect it-- use it locally and then ignore it. T is our favorite temporary register! | | ||
| | M, D | Memory pointer and memory pointer Destination. | These are often used in pairings like ELM, ELD, etc, to point to memory locations. As such they are generally for immediate use only and could be used on their own as temporary registers. | ELM is EL as high-byte | | | M, D | Memory pointer and memory pointer Destination. | These are often used in pairings like ELM, ELD, etc, to point to memory locations. As such they are generally for immediate use only and could be used on their own as temporary registers. | ELM is EL as high-byte | | ||
| - | | E, F, G | Extra registers | + | | E, F, G | Extra registers |
| - | | L | The Last True Register | If you really need another register, use this one. For emergency use only. | | + | | L | The Last True Register | If you really need another register, use this one. For emergency use only. | Rarely used. | |
| - | | Z | Z-index pointer | Often used as a third dimensional register for graphics or data processing. | + | | Z | Z-index pointer | Often used as a third dimensional register for graphics or data processing. |
| === Byte Access | === Byte Access | ||
sd/sd-8516_assembly_language.1775382507.txt.gz · Last modified: by appledog
