arch.txt (504B) - raw
1 # ARM architecture 2 3 TODO 4 5 ## Register usage 6 7 rSP = RSP 8 r10 = PSP 9 r9 = PS Top of Stack 10 r8 = A register 11 12 r0-r7 are generally free and used liberally across Dusk's ARM code. However, HAL 13 generates code that uses r0 and r1 as temporary values. Those values are never 14 used beyond the scope of a single HAL operation. Therefore, if you mix and match 15 HAL and assembler, you don't have to preserve r0 and r1 in between HAL 16 operations. However, you can consider that all HAL operations destroy these 17 registers.