From 67084c9d261c5ab88c52b2dd99c8a767be831805 Mon Sep 17 00:00:00 2001 From: Rangi42 Date: Mon, 16 Dec 2024 10:35:55 -0500 Subject: Remove redundant parentheses --- home/serial.asm | 6 +++--- home/vcopy.asm | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) (limited to 'home') 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] diff --git a/home/vcopy.asm b/home/vcopy.asm index 93c035eb..1b742817 100644 --- a/home/vcopy.asm +++ b/home/vcopy.asm @@ -140,7 +140,7 @@ AutoBgMapTransfer:: ld h, a ldh a, [hAutoBGTransferDest] ld l, a - ld de, (12 * 32) + ld de, 12 * 32 add hl, de xor a ; TRANSFERTOP jr .doTransfer @@ -160,7 +160,7 @@ AutoBgMapTransfer:: ld h, a ldh a, [hAutoBGTransferDest] ld l, a - ld de, (6 * 32) + ld de, 6 * 32 add hl, de ld a, TRANSFERBOTTOM .doTransfer -- cgit v1.3.1-sl0p