mirror of https://github.com/pret/pokecrystal.git
adc a, 0 → adc 0; fix comments
This commit is contained in:
parent
9afacc7842
commit
846e3e65de
|
@ -1775,7 +1775,7 @@ Music_Vibrato: ; e8882
|
||||||
swap a
|
swap a
|
||||||
srl a ; halve
|
srl a ; halve
|
||||||
ld e, a
|
ld e, a
|
||||||
adc a, 0; round up
|
adc 0 ; round up
|
||||||
swap a
|
swap a
|
||||||
or e
|
or e
|
||||||
ld [hl], a
|
ld [hl], a
|
||||||
|
|
|
@ -96,9 +96,9 @@ _BillsPC: ; e3fd
|
||||||
dw BillsPC_SeeYa
|
dw BillsPC_SeeYa
|
||||||
|
|
||||||
.items ; e4c4
|
.items ; e4c4
|
||||||
db 5
|
db 5 ; # items
|
||||||
db 0 ; WITHDRAW
|
db 0 ; WITHDRAW
|
||||||
db 1; DEPOSIT
|
db 1 ; DEPOSIT
|
||||||
db 2 ; CHANGE BOX
|
db 2 ; CHANGE BOX
|
||||||
db 3 ; MOVE PKMN
|
db 3 ; MOVE PKMN
|
||||||
db 4 ; SEE YA!
|
db 4 ; SEE YA!
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
CopyBytes:: ; 0x3026
|
CopyBytes:: ; 0x3026
|
||||||
; copy bc bytes from hl to de
|
; copy bc bytes from hl to de
|
||||||
inc b ; we bail the moment b hits 0, so include the last run
|
inc b ; we bail the moment b hits 0, so include the last run
|
||||||
inc c ; same thing; include last byte
|
inc c ; same thing; include last byte
|
||||||
jr .HandleLoop
|
jr .HandleLoop
|
||||||
.CopyByte:
|
.CopyByte:
|
||||||
ld a, [hli]
|
ld a, [hli]
|
||||||
|
@ -39,8 +39,8 @@ SwapBytes:: ; 0x3034
|
||||||
|
|
||||||
ByteFill:: ; 0x3041
|
ByteFill:: ; 0x3041
|
||||||
; fill bc bytes with the value of a, starting at hl
|
; fill bc bytes with the value of a, starting at hl
|
||||||
inc b ; we bail the moment b hits 0, so include the last run
|
inc b ; we bail the moment b hits 0, so include the last run
|
||||||
inc c ; same thing; include last byte
|
inc c ; same thing; include last byte
|
||||||
jr .HandleLoop
|
jr .HandleLoop
|
||||||
.PutByte:
|
.PutByte:
|
||||||
ld [hli], a
|
ld [hli], a
|
||||||
|
|
Loading…
Reference in New Issue