diff options
author | PikalaxALT <PikalaxALT@gmail.com> | 2015-11-16 16:01:45 -0500 |
---|---|---|
committer | PikalaxALT <PikalaxALT@gmail.com> | 2015-11-16 16:46:32 -0500 |
commit | 435b0cf686e55bbe60acbce1e6154b0c2450bbac (patch) | |
tree | 23375ad339f07ed9bc5a2a1be7eb98f414e44ea8 /misc/mobile_41.asm | |
parent | 4b5424368f09ff83bfdd2454a4fd06985f5ff54d (diff) |
Options menu, some mobile fns
Diffstat (limited to 'misc/mobile_41.asm')
-rwxr-xr-x | misc/mobile_41.asm | 23 |
1 files changed, 16 insertions, 7 deletions
diff --git a/misc/mobile_41.asm b/misc/mobile_41.asm index 9b2664e6b..69abe1cd2 100755 --- a/misc/mobile_41.asm +++ b/misc/mobile_41.asm @@ -743,7 +743,9 @@ endr ret ; 10630f -Function10630f: ; 10630f +; functions related to the cable club and various NPC scripts referencing mobile communications + +Mobile_DummyReturnFalse: ; 10630f xor a ld [ScriptVar], a ret @@ -766,8 +768,10 @@ MobileFn_106314: mobile ; 106314 Function10632f: ; 10632f or a - mobile + ret +Function106331: ; 106331 - called by Mobile_DummyReturnFalse in Crystal-J + ; check ~[4:b000] == [7:a800] ld a, $4 call GetSRAMBank ld a, [$b000] @@ -781,17 +785,22 @@ Function10632f: ; 10632f call CloseSRAM ld a, c cp b - jr nz, .asm_106359 + jr nz, .nope + + ; check [7:a800] != 0 and a - jr z, .asm_106359 - and $8f + jr z, .nope + + ; check !([7:a800] & %01110000) + and %10001111 cp c - jr nz, .asm_106359 + jr nz, .nope + ld c, a scf ret -.asm_106359 +.nope xor a ld c, a ret |