Skip to content

Commit

Permalink
Print debug logs to no$ console
Browse files Browse the repository at this point in the history
  • Loading branch information
jonko0493 committed Oct 10, 2023
1 parent 19829a7 commit f8884a8
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions src/source/dbgPrintEnable_asm.s
@@ -0,0 +1,20 @@
@ Hook into dbg_print20228DC and make it print to the no$ console

ahook_0202293C:
push {r1}
ldr r1, =stringAddress
str r0, [r1]
pop {r1}
add r2, r2, #4
bx lr

ahook_02022944:
push {lr}
ldr r0, =stringAddress
ldr r0, [r0]
bl nocashPrint
pop {lr}
add sp, sp, #0x1000
bx lr

stringAddress: .word 0

0 comments on commit f8884a8

Please sign in to comment.