Adds a call that you can make to the BIOS to read sd blocks. Useful for the bootloader where there is not much space
14 lines
178 B
ArmAsm
14 lines
178 B
ArmAsm
.include "zeropage.inc"
|
|
|
|
.segment "STARTUP"
|
|
|
|
.export _init
|
|
.import _load_bootsect
|
|
|
|
_init: ldx #$ff
|
|
txs
|
|
cld
|
|
|
|
jsr _load_bootsect
|
|
jmp $1000
|
|
|