Nintendo 1504166 Programming Manual - Page 168
Return value to registers R0, R1, and R3, in cases where a system, call provides a return value
View all Nintendo 1504166 manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 168 highlights
AGB Programming Manual AGB System Calls 7) Monitor ROM does the system call operation (1), and loads to the system call stack. 03007F00 USR Stack LR_usr R2 Save with each System Call User Interrupt Processing SP_usr 03007FA0 03007F00 IRQ Stack 6 WORDS SP_irq 03007FE0 03007FA0 SVC Stack 4 WORDS 4 WORDS SP_svc 8) Switch the CPU Mode to System Mode (privileged user mode). 9) Monitor ROM does the same operation as (3), and loads to the user stack. 03007F00 USR Stack LR_usr R2 Save with each System Call User Interrupt Processing LR_usr R2 Save with each System Call SP_usr 03007FA0 03007F00 IRQ Stack 6 WORDS SP_irq 03007FE0 SVC Stack 4 WORDS 4 WORDS SP_svc 03007FA0 10) Complete processing with each system call. 03007F00 USR Stack LR_usr R2 Save with each System Call User Interrupt Processing SP_usr 03007FA0 03007F00 IRQ Stack 6 WORDS SP_irq 03007FE0 03007FA0 SVC Stack 4 WORDS 4 WORDS SP_svc 11) Return value to registers R0, R1, and R3, in cases where a system call provides a return value, and then return to the user interrupt processing. 03007F00 USR Stack LR_usr R2 Save with each System Call User Interrupt Processing SP_usr 03007FA0 03007F00 IRQ Stack 6 WORDS SP_irq 03007FE0 03007FA0 SVC Stack 4 WORDS SP_svc ©1999 - 2001 Nintendo of America Inc. 168 D.C.N. AGB-06-0001-002B4