trying to get the linker script to work
This commit is contained in:
BIN
code/boot/a.out
Normal file
BIN
code/boot/a.out
Normal file
Binary file not shown.
@@ -1,3 +1,3 @@
|
||||
section code load 8000
|
||||
pad FFFF
|
||||
section vectors load FFF0
|
||||
pad 8000
|
||||
section vectors load 0FFF0
|
||||
|
BIN
code/boot/boot.o
Normal file
BIN
code/boot/boot.o
Normal file
Binary file not shown.
@@ -21,7 +21,7 @@ SCR = UART+7 ; Scratch Register (Not for control just spare RAM)
|
||||
|
||||
; SECTION code
|
||||
|
||||
org $8000
|
||||
ORG $8000
|
||||
|
||||
RESET:
|
||||
; UART Setup
|
||||
@@ -45,7 +45,7 @@ RESET:
|
||||
; ENDSECTION
|
||||
|
||||
; SECTION vectors
|
||||
org $FFF0
|
||||
ORG $FFF0
|
||||
; Reset/Interrupt Vectors
|
||||
fdb $0000 ; Reserved
|
||||
fdb $0000 ; SWI3
|
||||
|
5
code/boot/map.txt
Normal file
5
code/boot/map.txt
Normal 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
|
Reference in New Issue
Block a user