-
Notifications
You must be signed in to change notification settings - Fork 0
Registers
CoPokBl edited this page Jan 26, 2026
·
1 revision
There are 8 general purpose registers as well as a stack pointer, instruction pointer, flags pointer (zero, overflow), and a register to store the address to the interrupt table.
| Name | ID | Description |
|---|---|---|
| r0 | 0 | Return register |
| r1 | 1 | Arg 1 |
| r2 | 2 | Arg 2 |
| r3 | 3 | Arg 3 |
| r4 | 4 | Callee Preserved |
| r5 | 5 | Callee Preserved |
| r6 | 6 | Callee Preserved |
| r7 | 7 | Callee Preserved |
| sp | 8 | Stack pointer |
| ip | 9 | Instruction pointer |
| fl | a | Flags |
| it | b | Interrupt table pointer |