mirror of
https://github.com/thornAvery/kep-hack.git
synced 2025-11-12 00:04:48 +13:00
Remove the last "\@"s on local labels.
This commit is contained in:
parent
463b95b6b5
commit
5e692b30db
26
main.asm
26
main.asm
|
|
@ -30243,7 +30243,7 @@ StatusScreen2: ; 12b57 (4:6b57)
|
||||||
call PlaceString
|
call PlaceString
|
||||||
ld a, [$cfb9] ; level
|
ld a, [$cfb9] ; level
|
||||||
push af
|
push af
|
||||||
cp $64
|
cp 100
|
||||||
jr z, .Level100 ; 0x12c20 $4
|
jr z, .Level100 ; 0x12c20 $4
|
||||||
inc a
|
inc a
|
||||||
ld [$cfb9], a ; Increase temporarily if not 100
|
ld [$cfb9], a ; Increase temporarily if not 100
|
||||||
|
|
@ -102263,7 +102263,7 @@ SendSGBPacket: ; 71feb (1c:5feb)
|
||||||
ret z
|
ret z
|
||||||
; store number of packets in B
|
; store number of packets in B
|
||||||
ld b,a
|
ld b,a
|
||||||
.loop2\@
|
.loop2
|
||||||
; save B for later use
|
; save B for later use
|
||||||
push bc
|
push bc
|
||||||
; load a non-zero value in $fff9 to disable the routine that checks actual
|
; load a non-zero value in $fff9 to disable the routine that checks actual
|
||||||
|
|
@ -102279,20 +102279,20 @@ SendSGBPacket: ; 71feb (1c:5feb)
|
||||||
ld [$ff00],a
|
ld [$ff00],a
|
||||||
;load length of packets (16 bytes)
|
;load length of packets (16 bytes)
|
||||||
ld b,$10
|
ld b,$10
|
||||||
.nextByte\@
|
.nextByte
|
||||||
;set bit counter (8 bits per byte)
|
;set bit counter (8 bits per byte)
|
||||||
ld e,$08
|
ld e,$08
|
||||||
; get next byte in the packet
|
; get next byte in the packet
|
||||||
ld a,[hli]
|
ld a,[hli]
|
||||||
ld d,a
|
ld d,a
|
||||||
.nextBit0\@
|
.nextBit0
|
||||||
bit 0,d
|
bit 0,d
|
||||||
; if 0th bit is not zero set P14=HIGH,P15=LOW (send bit 1)
|
; if 0th bit is not zero set P14=HIGH,P15=LOW (send bit 1)
|
||||||
ld a,$10
|
ld a,$10
|
||||||
jr nz,.next0\@
|
jr nz,.next0
|
||||||
; else (if 0th bit is zero) set P14=LOW,P15=HIGH (send bit 0)
|
; else (if 0th bit is zero) set P14=LOW,P15=HIGH (send bit 0)
|
||||||
ld a,$20
|
ld a,$20
|
||||||
.next0\@
|
.next0
|
||||||
ld [$ff00],a
|
ld [$ff00],a
|
||||||
; must set P14=HIGH,P15=HIGH between each "pulse"
|
; must set P14=HIGH,P15=HIGH between each "pulse"
|
||||||
ld a,$30
|
ld a,$30
|
||||||
|
|
@ -102302,9 +102302,9 @@ SendSGBPacket: ; 71feb (1c:5feb)
|
||||||
rr d
|
rr d
|
||||||
; decrease bit counter so we know when we have sent all 8 bits of current byte
|
; decrease bit counter so we know when we have sent all 8 bits of current byte
|
||||||
dec e
|
dec e
|
||||||
jr nz,.nextBit0\@
|
jr nz,.nextBit0
|
||||||
dec b
|
dec b
|
||||||
jr nz,.nextByte\@
|
jr nz,.nextByte
|
||||||
; send bit 1 as a "stop bit" (end of parameter data)
|
; send bit 1 as a "stop bit" (end of parameter data)
|
||||||
ld a,$20
|
ld a,$20
|
||||||
ld [$ff00],a
|
ld [$ff00],a
|
||||||
|
|
@ -102321,7 +102321,7 @@ SendSGBPacket: ; 71feb (1c:5feb)
|
||||||
; return if there are no more packets
|
; return if there are no more packets
|
||||||
ret z
|
ret z
|
||||||
; else send 16 more bytes
|
; else send 16 more bytes
|
||||||
jr .loop2\@
|
jr .loop2
|
||||||
|
|
||||||
Func_7202b: ; 7202b (1c:602b)
|
Func_7202b: ; 7202b (1c:602b)
|
||||||
xor a
|
xor a
|
||||||
|
|
@ -102483,15 +102483,15 @@ Func_7210b: ; 7210b (1c:610b)
|
||||||
Wait7000: ; 7214a (1c:614a)
|
Wait7000: ; 7214a (1c:614a)
|
||||||
; each loop takes about 10 cycles so this routine actually loops through 70000
|
; each loop takes about 10 cycles so this routine actually loops through 70000
|
||||||
; cycles.
|
; cycles.
|
||||||
ld de,$1b58 ; = 7000
|
ld de, 7000
|
||||||
.loop\@
|
.loop
|
||||||
nop
|
nop
|
||||||
nop
|
nop
|
||||||
nop
|
nop
|
||||||
dec de
|
dec de
|
||||||
ld a,d
|
ld a, d
|
||||||
or e
|
or e
|
||||||
jr nz,.loop\@
|
jr nz, .loop
|
||||||
ret
|
ret
|
||||||
|
|
||||||
Func_72156: ; 72156 (1c:6156)
|
Func_72156: ; 72156 (1c:6156)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue