start on making uncompressed rodata.bin

Former-commit-id: e108acab9d0f0263bf246c3d159cb69cef483527 [formerly a1695ad2d6fb83b192a7b0282d10cb98dbaa12e7]
Former-commit-id: 45b497755f8f57d6ca1f0d9db3ea455512f54624
This commit is contained in:
Larry
2017-05-06 16:54:53 -05:00
parent 6aa683f613
commit d45bf7c745
7 changed files with 123 additions and 15 deletions
+58 -12
View File
@@ -1,20 +1,66 @@
//arch n64.cpu
//endian msb
//output "rodata.bin", create
arch n64.cpu
endian msb
output "rodata.bin", create
base origin()
rodata_rom_offset:
include "code.inc"
base $80020D90
rodata_start:
//insert rsp.bin, "rsp.bin"
//compressed binary for now
//will probably have to make rodata itself a project
//then have a tool to parse symtable into rodata.inc and matching rodata.rz
insert rodata_rz, "021990.rz"
rspcode_start:
insert rsp.bin, "rsp.bin"
rspcode_end:
dword_80023040:
dw $00
dword_80023044:
dw $02
cart_hw_address:
dw $10000000
debug_handler_table:
dw sp_boot, aBoot
dw sp_rmon, aRmon
dw sp_idle, aIdle
dw sp_shed, aShed
dw sp_main, aMain
dw sp_audi, aAudi
insert rodata.bin_filler, "021990.bin", origin(), ($800283D0 - $8002307C)
base $800283D0
aBoot:
db "boot"
dw $00
//base $800283D8
aRmon:
db "rmon"
dw $00
//base $800283E0
aIdle:
db "idle"
dw $00
//base $800283E8
aShed:
db "shed"
dw $00
//base $800283F0
aMain:
db "main"
dw $00
//base $800283F8
aAudi:
db "audi"
dw $00
insert rodata.bin_raw, "021990.bin", origin()
base $8005D2E0
rodata_end:
insert padding,"pad_to_33590"