#81482 - Fry_Day - Sat Apr 29, 2006 1:55 pm
well, this is my first time coding for the platform, and I just wondered if using all the registers was safe.
let me emphasize that I know ARM assembly, it's just an odd wonder about the environment.
The reason I ask is that I noticed the BIOS's interrupt handler doesn't push all the high registers, and, whilst I know a function is supposed to preserve registers it changes on the stack, I really don't know if they have any special meaning (e.g., in the RealView ARM C compiler (The official compiler), it uses R9 as a pointer to imagebase when generating PIC code, so it mustn't be changed ever).
_________________
"Facts Shmacts! They can prove even remotely true things!" -Homer Simpson
let me emphasize that I know ARM assembly, it's just an odd wonder about the environment.
The reason I ask is that I noticed the BIOS's interrupt handler doesn't push all the high registers, and, whilst I know a function is supposed to preserve registers it changes on the stack, I really don't know if they have any special meaning (e.g., in the RealView ARM C compiler (The official compiler), it uses R9 as a pointer to imagebase when generating PIC code, so it mustn't be changed ever).
_________________
"Facts Shmacts! They can prove even remotely true things!" -Homer Simpson