Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ; creates a copy of unhacked.rom named hacked.rom to edit,
- ; then assigns a header of $0.
- .open unhacked.rom, hacked.rom, $0
- ; sets it up for GBA mode.
- ; Might be unnecessary for text editing?
- .gba
- .thumb
- ; load a table for the assembler to use when compiling
- ; strings.
- .loadtable "ascii.tbl"
- ; point the assembler to free space.
- .org $300000
- ; label to use as a pointer.
- NewText:
- ; generic placeholder string
- .string "This is a test!"
- NewText2:
- ; generic placeholder string
- .string "This is another test!"
- ; pointer to the text.
- .org $dd73c
- ; writes the pointer to new text.
- ; subtract $DC0000 because that's how it's done
- ; in the ROM.
- .word NewText - $DC0000
- ; this puts the pointer immediately after the previous one,
- ; so it would get written at $dd740 ($dd73c + 4).
- .word NewText2 - $DC0000
- ; everything that is opened must be closed.
- .close
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement