diff options
author | yenatch <yenatch@gmail.com> | 2017-12-25 19:01:36 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-12-25 19:01:36 -0500 |
commit | 73db02d3cdaf81a214ec6faa5462195618a80a48 (patch) | |
tree | b4d1a5187fda9da6186c52c03e836a5ff8f4dd90 /engine/printer_serial.asm | |
parent | ec8c9688ce970b9c3b63a5b287a99542f0bc9984 (diff) | |
parent | 29b41068cb0644956494dd2b7b75331a336b8d26 (diff) |
Merge pull request #433 from roukaour/master
More code cleanup
Diffstat (limited to 'engine/printer_serial.asm')
-rwxr-xr-x | engine/printer_serial.asm | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/engine/printer_serial.asm b/engine/printer_serial.asm index 6909a38b2..06891db5b 100755 --- a/engine/printer_serial.asm +++ b/engine/printer_serial.asm @@ -109,9 +109,9 @@ Printer_StartTransmittingTilemap: ; 84099 (21:4099) call Printer_CopyPacket ; prepare to send 40 tiles call Printer_Convert2RowsTo2bpp - ld a, (40 tiles) % $100 + ld a, LOW(40 tiles) ld [wPrinterSendByteCounter], a - ld a, (40 tiles) / $100 + ld a, HIGH(40 tiles) ld [wPrinterSendByteCounter + 1], a ; compute the checksum call Printer_ComputeChecksum @@ -142,9 +142,9 @@ Printer_SignalSendHeader: ; 840de (21:40de) call Printer_CopyPacket ; prepare to send 1 tile call Printer_StageHeaderForSend - ld a, 4 % $100 + ld a, LOW(4) ld [wPrinterSendByteCounter], a - ld a, 4 / $100 + ld a, HIGH(4) ld [wPrinterSendByteCounter + 1], a ; compute the checksum call Printer_ComputeChecksum |