trying to get the linker script to work

This commit is contained in:
2024-11-21 12:56:54 -05:00
parent cea8a54ebf
commit c9d125203d
5 changed files with 9 additions and 4 deletions

BIN
code/boot/a.out Normal file

Binary file not shown.

View File

@@ -1,3 +1,3 @@
section code load 8000 section code load 8000
pad FFFF pad 8000
section vectors load FFF0 section vectors load 0FFF0

BIN
code/boot/boot.o Normal file

Binary file not shown.

View File

@@ -21,7 +21,7 @@ SCR = UART+7 ; Scratch Register (Not for control just spare RAM)
; SECTION code ; SECTION code
org $8000 ORG $8000
RESET: RESET:
; UART Setup ; UART Setup
@@ -45,7 +45,7 @@ RESET:
; ENDSECTION ; ENDSECTION
; SECTION vectors ; SECTION vectors
org $FFF0 ORG $FFF0
; Reset/Interrupt Vectors ; Reset/Interrupt Vectors
fdb $0000 ; Reserved fdb $0000 ; Reserved
fdb $0000 ; SWI3 fdb $0000 ; SWI3

5
code/boot/map.txt Normal file
View File

@@ -0,0 +1,5 @@
Section: code (boot.o) load at 8000, length 0024
Section: vectors (boot.o) load at FFF0, length 0010
Symbol: \02code (boot.o) = 8000
Symbol: \02vectors (boot.o) = FFF0
Symbol: RESET (boot.o) = 10000