-
Notifications
You must be signed in to change notification settings - Fork 1
boot.dasm16
SashaCrofter edited this page Jul 18, 2012
·
2 revisions
Initializes the kernel on startup
Invokes the boot loader
- Invoke sv.init to mount the screen at videoRAM.
- Invoke cat.mountSystem to initialize the file system with arguments
0x8000, 0x810, 128. - Invoke p.init to initialize the Dash Package Handler
- Invoke s.instance to intialize the DASH Shell
Clears all registers, drops interrupt queue under development
Is jumped to if the instruction at 0 is ever reached. Proceeds to print a crash report screen, and allow the user to restart.
Exits a subroutine with A set to 0 (TRUE)
To use, do SET PC, ext instead of SET PC, POP at the end of a subroutine
Exits a subroutine with A set to 1 (FALSE)
To use, do SET PC, exf instead of SET PC, POP at the end of a subroutine