diff options
author | xeons <xeons@xeons.net> | 2012-03-30 21:55:29 -0500 |
---|---|---|
committer | xeons <xeons@xeons.net> | 2012-03-30 21:55:29 -0500 |
commit | 18f52b7cdcf957ff7c7eab902a8e90d7cf0935e9 (patch) | |
tree | 6789c06214ae885d1e906f59f6cec28b1febb19b | |
parent | 17d6c0d0f7de10572f15a99323d834c2ab4af6ff (diff) |
fix a few things I did wrong
hg-commit-id: 919adffe4381
-rw-r--r-- | extras/gbz80disasm.py | 3 | ||||
-rw-r--r-- | main.asm | 24 |
2 files changed, 13 insertions, 14 deletions
diff --git a/extras/gbz80disasm.py b/extras/gbz80disasm.py index ae8f0f6f..80d169e5 100644 --- a/extras/gbz80disasm.py +++ b/extras/gbz80disasm.py @@ -604,8 +604,7 @@ def output_bank_opcodes(original_offset, max_byte_count=0x4000): bank_id = 0 if original_offset > 0x8000: bank_id = original_offset / 0x4000 - #print "bank id is: " + str(bank_id) - print "Function{0:x}:".format(original_offset); + print "bank id is: " + str(bank_id) last_hl_address = None #for when we're scanning the main map script last_a_address = None @@ -10810,35 +10810,35 @@ CheckForceBikeOrSurf: ; C38B ld hl, $D732 bit 5, [hl] ret nz - ld hl, ForcedBikeSurfMaps + ld hl, ForcedBikeOrSurfMaps ld a, [W_YCOORD] ld b, a ld a, [W_XCOORD] ld c, a ld a, [W_CURMAP] ld d, a -.loop\0 +.loop\@ ld a, [hli] cp $ff ret z ;if we reach FF then it's not part of the list cp d ;compare to current map - jr nz, .incorrectMap\0 + jr nz, .incorrectMap\@ ld a, [hli] cp b ;compare y-coord - jr nz, .incorrectY\0 + jr nz, .incorrectY\@ ld a, [hli] cp c ;compare x-coord - jr nz, .loop\0 ; incorrect x-coord, check next item + jr nz, .loop\@ ; incorrect x-coord, check next item ld a, [W_CURMAP] cp SEAFOAM_ISLANDS_4 ld a, $2 ld [$d666], a - jr z, .forceSurfing\0 + jr z, .forceSurfing\@ ld a, [$d35e] cp SEAFOAM_ISLANDS_5 ld a, $2 ld [$d668], a - jr z, .forceSurfing\0 + jr z, .forceSurfing\@ ;force bike riding ld hl, $d732 set 5, [hl] @@ -10846,19 +10846,19 @@ CheckForceBikeOrSurf: ; C38B ld [$d700], a ld [$d11a], a jp ForceBikeOrSurf -.incorrectMap\0 +.incorrectMap\@ inc hl -.incorrectY\0 +.incorrectY\@ inc hl - jr .loop\0 -.forceSurfing\0 + jr .loop\@ +.forceSurfing\@ ld a, $2 ld [$d700], a ld [$d11a], a jp ForceBikeOrSurf ; 0xc3e6 -ForcedBikeSurfMaps: ;C3e6 +ForcedBikeOrSurfMaps: ;C3e6 ; map id, y, x db ROUTE_16,$0A,$11 db ROUTE_16,$0B,$11 |