Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Usable Registers

RegisterTypeDescription
rg0-rgfGeneral PurposeGeneral-purpose registers.
accSpecialAccumulator for calculations and temporary storage - don't use this for variables as pseudo instructions may overwrite this implicitly!
sprSpecialStack pointer
bprSpecialBase pointer for stack frames
retSpecialReturn address register
idrPrivilegedInterrupt descriptor table address
on-read/write: protection fault (unless in kernel mode)
mmrPrivilegedHardware memory map table address
on-read/write: protection fault (unless in kernel mode)
zeroRead-onlyAlways contains zero
on-read: always returns zero
on-write: value is voided
pcxRead-onlyProgram counter
on-write: protection fault
noregPlaceholderIndicates absence of register argument
on-read/write: illegal instruction fault