aboutsummaryrefslogtreecommitdiffstats
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
parentMerge pull request #274 from Rangi42/master (diff)
parentDisassemble the BLUEMONS.GB debug ROM (diff)
downloadpokeyellow-d3a01f777d2bbb3bc5ec6822af893d16fda19936.tar.gz
pokeyellow-d3a01f777d2bbb3bc5ec6822af893d16fda19936.tar.xz
pokeyellow-d3a01f777d2bbb3bc5ec6822af893d16fda19936.zip
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