Add preliminary bootloader

This bootloader right now just prints the letter A, but should be
capable of reading blocks from the SD card into memory.
This commit is contained in:
Byron Lathi
2022-04-18 20:25:08 -05:00
parent 54328722ab
commit 9dd460a47f
10 changed files with 129 additions and 0 deletions

17
sw/bootloader/link.ld Normal file
View File

@@ -0,0 +1,17 @@
MEMORY
{
ZP: start = $0, size = $100, type = rw, define = yes;
BOOTSECT: start = $1000, size = $200, file = %O;
}
SEGMENTS {
ZEROPAGE: load = ZP, type = zp, define = yes;
DATA: load = BOOTSECT, type = rw, define = yes;
BSS: load = BOOTSECT, type = bss, define = yes;
HEAP: load = BOOTSECT, type = bss, optional = yes;
STARTUP: load = BOOTSECT, type = ro, start = $1000;
CODE: load = BOOTSECT, type = ro, start = $105a;
RODATA: load = BOOTSECT, type = ro;
SIGN: load = BOOTSECT, type = ro, start = $11fe;
}