Skip to content

Instantly share code, notes, and snippets.

@shinyquagsire23
Last active September 22, 2022 07:19
Show Gist options
  • Save shinyquagsire23/91e076ed8b062ee079f8a0ffebc57826 to your computer and use it in GitHub Desktop.
Save shinyquagsire23/91e076ed8b062ee079f8a0ffebc57826 to your computer and use it in GitHub Desktop.
GBA armips
.gba
.open "before.gba","patched.gba",0x08000000
.thumb
.org 0x08123456
some_imaginary_hook:
ldr r0, =addr
bx r0
.pool
.org 0x08800000 ; free space
push {r0-r3}
; etc etc some other code
pop {r0-r3}
ldr r0, =0x08123456+0x10 ;idk some return
bx r0
.Close
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment