aboutsummaryrefslogtreecommitdiffstats
path: root/engine/subtract_paid_money.asm
diff options
context:
space:
mode:
authorxCrystal <rgr.crystal@gmail.com>2017-12-30 01:54:27 +0100
committerxCrystal <rgr.crystal@gmail.com>2017-12-30 01:54:27 +0100
commit237aeb8fbdb204948d611830565d4a00c6b0ab70 (patch)
tree94dea41b4af4a3374a1a1e2f56665cff2ea5baa9 /engine/subtract_paid_money.asm
parentUppercase battle status constants (diff)
downloadpokeyellow-237aeb8fbdb204948d611830565d4a00c6b0ab70.tar.gz
pokeyellow-237aeb8fbdb204948d611830565d4a00c6b0ab70.tar.xz
pokeyellow-237aeb8fbdb204948d611830565d4a00c6b0ab70.zip
Add space between arguments in assembly instructions and remove redundant a in instructions like add a, x
Diffstat (limited to '')
-rw-r--r--engine/subtract_paid_money.asm16
1 files changed, 8 insertions, 8 deletions
diff --git a/engine/subtract_paid_money.asm b/engine/subtract_paid_money.asm
index 2888c3fb..a6a6ec2e 100644
--- a/engine/subtract_paid_money.asm
+++ b/engine/subtract_paid_money.asm
@@ -1,17 +1,17 @@
; subtracts the amount the player paid from their money
; sets carry flag if there is enough money and unsets carry flag if not
SubtractAmountPaidFromMoney_:
- ld de,wPlayerMoney
- ld hl,hMoney ; total price of items
- ld c,3 ; length of money in bytes
+ ld de, wPlayerMoney
+ ld hl, hMoney ; total price of items
+ ld c, 3 ; length of money in bytes
call StringCmp
ret c
- ld de,wPlayerMoney + 2
- ld hl,hMoney + 2 ; total price of items
- ld c,3 ; length of money in bytes
+ ld de, wPlayerMoney + 2
+ ld hl, hMoney + 2 ; total price of items
+ ld c, 3 ; length of money in bytes
predef SubBCDPredef ; subtract total price from money
- ld a,MONEY_BOX
- ld [wTextBoxID],a
+ ld a, MONEY_BOX
+ ld [wTextBoxID], a
call DisplayTextBoxID ; redraw money text box
and a
ret