Rename boot to bios, add sd call
Adds a call that you can make to the BIOS to read sd blocks. Useful for the bootloader where there is not much space
This commit is contained in:
14
sw/bios/boot.s
Normal file
14
sw/bios/boot.s
Normal file
@@ -0,0 +1,14 @@
|
||||
.include "zeropage.inc"
|
||||
|
||||
.segment "STARTUP"
|
||||
|
||||
.export _init
|
||||
.import _load_bootsect
|
||||
|
||||
_init: ldx #$ff
|
||||
txs
|
||||
cld
|
||||
|
||||
jsr _load_bootsect
|
||||
jmp $1000
|
||||
|
||||
Reference in New Issue
Block a user