Advertisement
Guest User

Untitled

a guest
Oct 8th, 2015
122
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
ARM 0.88 KB | None | 0 0
  1. ; creates a copy of unhacked.rom named hacked.rom to edit,
  2. ; then assigns a header of $0.
  3. .open unhacked.rom, hacked.rom, $0
  4.  
  5. ; sets it up for GBA mode.
  6. ; Might be unnecessary for text editing?
  7. .gba
  8. .thumb
  9.     ; load a table for the assembler to use when compiling
  10.     ; strings.
  11.     .loadtable "ascii.tbl"
  12.  
  13. ; point the assembler to free space.
  14. .org $300000
  15. ; label to use as a pointer.
  16. NewText:
  17.     ; generic placeholder string
  18.     .string "This is a test!"
  19. NewText2:
  20.     ; generic placeholder string
  21.     .string "This is another test!"
  22.  
  23.  
  24. ; pointer to the text.
  25. .org $dd73c
  26.     ; writes the pointer to new text.
  27.     ; subtract $DC0000 because that's how it's done
  28.     ; in the ROM.
  29.     .word NewText - $DC0000
  30.     ; this puts the pointer immediately after the previous one,
  31.     ; so it would get written at $dd740 ($dd73c + 4).
  32.     .word NewText2 - $DC0000
  33.  
  34. ; everything that is opened must be closed.
  35. .close
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement