exhirom header !freeSpace = $DE0000 ;location of SPC assembly bank (size: $21A2) !freeSpace2 = $DE8000 ;location of sample bank (size: $7C8C) !freeSpace3 = $DF0000 ;location of map music bank (size: $1495) !freeSpace4 = $DF8000 ;location of level music bank (size: $57F9) !freeSpace5 = $E00000 ;location of ending music bank (size: $2579) macro RATS_start(id) db "STAR" dw RATS_Endcode-RATS_Startcode dw RATS_Endcode-RATS_Startcode^#$FFFF RATS_Startcode: endmacro macro RATS_end(id) RATS_Endcode: endmacro ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; org $C080E9 db !freeSpace+8 ;The RATS tag is at the beginning of the bank, so we need to add 8 to reach the actual start of the data org $C080EE db !freeSpace>>8 ;shift right 8 bits--middle byte of pointer org $C080F3 db !freeSpace>>16 ;shift right 16 bits--high byte of pointer org $C080FE db !freeSpace2+8 org $C08103 db !freeSpace2>>8 org $C08108 db !freeSpace2>>16 org $C0810F db !freeSpace3+8 org $C08114 db !freeSpace3>>8 org $C08119 db !freeSpace3>>16 org $C08149 db !freeSpace4+8 org $C0814E db !freeSpace4>>8 org $C08153 db !freeSpace4>>16 org $C0815A db !freeSpace5+8 org $C0815F db !freeSpace5>>8 org $C08164 db !freeSpace5>>16 ;;;;;;;;; ;removed ;;;;;;;;; org !freeSpace %RATS_start(0) incbin .\smas_spc.bin %RATS_end(0) org !freeSpace2 %RATS_start(1) incbin .\smas_brr.bin %RATS_end(1) org !freeSpace3 %RATS_start(2) incbin .\map.bin %RATS_end(2) org !freeSpace4 %RATS_start(3) incbin .\level.bin %RATS_end(3) org !freeSpace5 %RATS_start(4) incbin .\end.bin %RATS_end(4)