Fix usage of rIE and rSC constants
This commit is contained in:
@@ -279,9 +279,9 @@ Printer_WaitHandshake:
|
||||
ld [wPrinterOpcode], a
|
||||
ld a, $88
|
||||
ldh [rSB], a
|
||||
ld a, $1
|
||||
ld a, (0 << rSC_ON) | (1 << rSC_CLOCK)
|
||||
ldh [rSC], a
|
||||
ld a, $81
|
||||
ld a, (1 << rSC_ON) | (1 << rSC_CLOCK)
|
||||
ldh [rSC], a
|
||||
ret
|
||||
|
||||
@@ -622,9 +622,9 @@ Printer_Send0x08:
|
||||
|
||||
Printer_SerialSend:
|
||||
ldh [rSB], a
|
||||
ld a, $1 ; switch to internal clock
|
||||
ld a, (0 << rSC_ON) | (1 << rSC_CLOCK)
|
||||
ldh [rSC], a
|
||||
ld a, $81 ; start transfer
|
||||
ld a, (1 << rSC_ON) | (1 << rSC_CLOCK)
|
||||
ldh [rSC], a
|
||||
ret
|
||||
|
||||
|
Reference in New Issue
Block a user