Skip to content

Instantly share code, notes, and snippets.

@profi200
Created November 15, 2021 01:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save profi200/697348d0f8f9b334968edf3fb4a7eed8 to your computer and use it in GitHub Desktop.
Save profi200/697348d0f8f9b334968edf3fb4a7eed8 to your computer and use it in GitHub Desktop.
@ u32 pcTest(void)
@ Expected result is pc + 8 but it's pc + 10 on ARM7.
BEGIN_ASM_FUNC pcTest
ldr pc, =pcTest_mov + 2
pcTest_mov:
mov r0, pc
bx lr
END_ASM_FUNC
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment