summaryrefslogtreecommitdiff
path: root/home/npc_movement.asm
diff options
context:
space:
mode:
authorRangi <35663410+Rangi42@users.noreply.github.com>2020-07-16 08:19:11 -0400
committerGitHub <noreply@github.com>2020-07-16 08:19:11 -0400
commitd3a01f777d2bbb3bc5ec6822af893d16fda19936 (patch)
tree20c078b267b5b35055f30e64e726931e63031166 /home/npc_movement.asm
parent87f24a885d888411d715171d75163bd59a609b41 (diff)
parent4b4ad9894eb165de673346348493e02d83549746 (diff)
Merge pull request #275 from Rangi42/master
Disassemble the BLUEMONS.GB debug ROM
Diffstat (limited to 'home/npc_movement.asm')
-rw-r--r--home/npc_movement.asm12
1 files changed, 11 insertions, 1 deletions
diff --git a/home/npc_movement.asm b/home/npc_movement.asm
index 4914d3df..a3367f9a 100644
--- a/home/npc_movement.asm
+++ b/home/npc_movement.asm
@@ -50,5 +50,15 @@ RunNPCMovementScript::
EndNPCMovementScript::
farjp _EndNPCMovementScript
-EmptyFunc2::
+DebugPressedOrHeldB::
+IF DEF(_DEBUG)
+ ld a, [wd732]
+ bit 1, a
+ ret z
+ ldh a, [hJoyHeld]
+ bit BIT_B_BUTTON, a
+ ret nz
+ ldh a, [hJoyPressed]
+ bit BIT_B_BUTTON, a
+ENDC
ret