mirror of
https://github.com/thornAvery/kep-hack.git
synced 2025-09-16 18:30:50 +12:00
Merge pull request #246 from Akatsuki-py/SubtractAmountPaidFromMoney
fix SubtractAmountPaidFromMoney comment
This commit is contained in:
commit
9dc71c771e
|
@ -1,5 +1,5 @@
|
||||||
; subtracts the amount the player paid from their money
|
; subtracts the amount the player paid from their money
|
||||||
; sets carry flag if there is enough money and unsets carry flag if not
|
; OUTPUT: carry = 0(success) or 1(fail because there is not enough money)
|
||||||
SubtractAmountPaidFromMoney_:
|
SubtractAmountPaidFromMoney_:
|
||||||
ld de, wPlayerMoney
|
ld de, wPlayerMoney
|
||||||
ld hl, hMoney ; total price of items
|
ld hl, hMoney ; total price of items
|
||||||
|
|
2
home.asm
2
home.asm
|
@ -1307,7 +1307,7 @@ CountSetBits::
|
||||||
ret
|
ret
|
||||||
|
|
||||||
; subtracts the amount the player paid from their money
|
; subtracts the amount the player paid from their money
|
||||||
; sets carry flag if there is enough money and unsets carry flag if not
|
; OUTPUT: carry = 0(success) or 1(fail because there is not enough money)
|
||||||
SubtractAmountPaidFromMoney::
|
SubtractAmountPaidFromMoney::
|
||||||
jpba SubtractAmountPaidFromMoney_
|
jpba SubtractAmountPaidFromMoney_
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue