aboutsummaryrefslogtreecommitdiffstats
path: root/home/serial.asm
diff options
context:
space:
mode:
authorRangi42 <sylvie.oukaour+rangi42@gmail.com>2024-12-16 10:35:55 -0500
committerRangi42 <sylvie.oukaour+rangi42@gmail.com>2024-12-16 10:35:55 -0500
commit67084c9d261c5ab88c52b2dd99c8a767be831805 (patch)
treeac60df11741ef7e8a101982ae6860690f4eafb08 /home/serial.asm
parentUse "gray", not "grey" (diff)
downloadpokeyellow-67084c9d261c5ab88c52b2dd99c8a767be831805.tar.gz
pokeyellow-67084c9d261c5ab88c52b2dd99c8a767be831805.tar.xz
pokeyellow-67084c9d261c5ab88c52b2dd99c8a767be831805.zip
Remove redundant parentheses
Diffstat (limited to 'home/serial.asm')
-rw-r--r--home/serial.asm6
1 files changed, 3 insertions, 3 deletions
diff --git a/home/serial.asm b/home/serial.asm
index 58111de6..bfec707b 100644
--- a/home/serial.asm
+++ b/home/serial.asm
@@ -118,7 +118,7 @@ Serial_ExchangeByte::
.doNotIncrementUnknownCounter
ldh a, [rIE]
and (1 << SERIAL) | (1 << TIMER) | (1 << LCD_STAT) | (1 << VBLANK)
- cp (1 << SERIAL)
+ cp 1 << SERIAL
jr nz, .loop
ld a, [wUnknownSerialCounter2]
dec a
@@ -140,7 +140,7 @@ Serial_ExchangeByte::
ldh [hSerialReceivedNewData], a
ldh a, [rIE]
and (1 << SERIAL) | (1 << TIMER) | (1 << LCD_STAT) | (1 << VBLANK)
- sub (1 << SERIAL)
+ sub 1 << SERIAL
jr nz, .skipReloadingUnknownCounter2
ld [wUnknownSerialCounter2], a
ld a, $50
@@ -166,7 +166,7 @@ Serial_ExchangeByte::
.done
ldh a, [rIE]
and (1 << SERIAL) | (1 << TIMER) | (1 << LCD_STAT) | (1 << VBLANK)
- cp (1 << SERIAL)
+ cp 1 << SERIAL
ld a, SERIAL_NO_DATA_BYTE
ret z
ld a, [hl]