Remove all address comments

This commit is contained in:
mid-kid
2018-06-24 16:09:41 +02:00
parent 131875d3e3
commit 1d9a68dbdd
616 changed files with 12133 additions and 20380 deletions

View File

@@ -1,6 +1,6 @@
PRINTPARTY_HP EQUS "\"◀\"" ; $71
PrintPage1: ; 1dc1b0
PrintPage1:
hlcoord 0, 0
decoord 0, 0, wPrinterTileMapBuffer
ld bc, 17 * SCREEN_WIDTH
@@ -50,9 +50,8 @@ PrintPage1: ; 1dc1b0
jr nz, .column_loop
ld [hl], $3a
ret
; 1dc213
PrintPage2: ; 1dc213
PrintPage2:
hlcoord 0, 0, wPrinterTileMapBuffer
ld bc, 8 * SCREEN_WIDTH
ld a, " "
@@ -89,9 +88,8 @@ PrintPage2: ; 1dc213
ld a, b
call nz, FarString
ret
; 1dc26a
.FillColumn: ; 1dc26a
.FillColumn:
push de
ld de, SCREEN_WIDTH
.column_loop
@@ -101,7 +99,6 @@ PrintPage2: ; 1dc213
jr nz, .column_loop
pop de
ret
; 1dc275
GBPrinterStrings: ; used only for BANK(GBPrinterStrings)
GBPrinterString_Null: db "@"
@@ -132,9 +129,8 @@ GBPrinterString_PrinterError4:
next "Check the Game Boy"
next "Printer Manual."
db "@"
; 1dc381
PrintPartyMonPage1: ; 1dc381
PrintPartyMonPage1:
call ClearBGPalettes
call ClearTileMap
call ClearSprites
@@ -232,9 +228,8 @@ PrintPartyMonPage1: ; 1dc381
call GetSGBLayout
call SetPalettes
ret
; 1dc47b
PrintPartyMonPage2: ; 1dc47b
PrintPartyMonPage2:
call ClearBGPalettes
call ClearTileMap
call ClearSprites
@@ -284,24 +279,21 @@ PrintPartyMonPage2: ; 1dc47b
call GetSGBLayout
call SetPalettes
ret
; 1dc507
.PrintTempMonStats: ; 1dc507
.PrintTempMonStats:
lb bc, 2, 3
call PrintNum
ret
; 1dc50e
Function1dc50e: ; 1dc50e
Function1dc50e:
ld bc, NAME_LENGTH
ld a, [wCurPartyMon]
call AddNTimes
ld e, l
ld d, h
ret
; 1dc51a
Function1dc51a: ; 1dc51a
Function1dc51a:
and a
jr z, .no_move
@@ -315,9 +307,8 @@ Function1dc51a: ; 1dc51a
.got_string
call PlaceString
ret
; 1dc52c
Function1dc52c: ; 1dc52c
Function1dc52c:
farcall GetGender
ld a, " "
jr c, .got_gender
@@ -334,18 +325,17 @@ Function1dc52c: ; 1dc52c
hlcoord 18, 2
ld [hl], "⁂"
ret
; 1dc550
String1dc550: ; 1dc550
String1dc550:
db "OT/@"
String1dc554: ; 1dc554
String1dc554:
db "MOVE@"
String1dc559: ; 1dc559
String1dc559:
db "<ID>№.@"
String1dc55d: ; 1dc55d
String1dc55d:
db "ATTACK"
next "DEFENSE"
next "SPCL.ATK"
@@ -353,12 +343,11 @@ String1dc55d: ; 1dc55d
next "SPEED"
db "@"
String1dc584: ; 1dc584
String1dc584:
db "------------@"
; 1dc591
GBPrinterHPIcon: ; 1dc591
GBPrinterHPIcon:
INCBIN "gfx/printer/hp.1bpp"
GBPrinterLvIcon: ; 1dc599
GBPrinterLvIcon:
INCBIN "gfx/printer/lv.1bpp"

View File

@@ -1,6 +1,6 @@
INCLUDE "engine/printer/printer_serial.asm"
SendScreenToPrinter: ; 843f0
SendScreenToPrinter:
.loop
call JoyTextDelay
call CheckCancelPrint
@@ -21,31 +21,27 @@ SendScreenToPrinter: ; 843f0
.cancel
scf
ret
; 84411
Printer_CleanUpAfterSend: ; 84411
Printer_CleanUpAfterSend:
xor a
ld [wPrinterConnectionOpen], a
ld [wPrinterOpcode], a
ret
; 84419
Printer_PrepareTileMapForPrint: ; 84419
Printer_PrepareTileMapForPrint:
push af
call Printer_StartTransmission
pop af
ld [wcbfa], a
call Printer_CopyTileMapToBuffer
ret
; 84425
Printer_ExitPrinter: ; 84425
Printer_ExitPrinter:
call ReturnToMapFromSubmenu
call Printer_RestartMapMusic
ret
; 8442c
PrintDexEntry: ; 8442c
PrintDexEntry:
ld a, [wPrinterQueueLength]
push af
@@ -121,9 +117,8 @@ PrintDexEntry: ; 8442c
pop af
ld [wPrinterQueueLength], a
ret
; 844bc
PrintPCBox: ; 844bc (21:44bc)
PrintPCBox:
ld a, [wPrinterQueueLength]
push af
ld a, 18 / 2
@@ -211,12 +206,12 @@ PrintPCBox: ; 844bc (21:44bc)
ld [wPrinterQueueLength], a
ret
Printer_ResetRegistersAndStartDataSend: ; 84559 (21:4559)
Printer_ResetRegistersAndStartDataSend:
call Printer_ResetJoypadRegisters
call SendScreenToPrinter
ret
PrintUnownStamp: ; 84560
PrintUnownStamp:
ld a, [wPrinterQueueLength]
push af
xor a
@@ -274,15 +269,13 @@ PrintUnownStamp: ; 84560
pop af
ld [wPrinterQueueLength], a
ret
; 845d4
PrintMail: ; 845d4
PrintMail:
call PrintMail_
call Printer_ExitPrinter
ret
; 845db
PrintMail_: ; 845db
PrintMail_:
ld a, [wPrinterQueueLength]
push af
xor a
@@ -323,9 +316,8 @@ PrintMail_: ; 845db
pop af
ld [wPrinterQueueLength], a
ret
; 8461a
PrintPartymon: ; 8461a
PrintPartymon:
ld a, [wPrinterQueueLength]
push af
xor a
@@ -385,9 +377,8 @@ PrintPartymon: ; 8461a
pop af
ld [wPrinterQueueLength], a
ret
; 84688
_PrintDiploma: ; 84688
_PrintDiploma:
ld a, [wPrinterQueueLength]
push af
@@ -449,9 +440,8 @@ _PrintDiploma: ; 84688
pop af
ld [wPrinterQueueLength], a
ret
; 846f6
CheckCancelPrint: ; 846f6
CheckCancelPrint:
ld a, [hJoyDown]
and B_BUTTON
jr nz, .pressed_b
@@ -484,45 +474,39 @@ CheckCancelPrint: ; 846f6
ld [hPrinter], a
scf
ret
; 84728
Printer_CopyTileMapToBuffer: ; 84728
Printer_CopyTileMapToBuffer:
hlcoord 0, 0
ld de, wPrinterTileMapBuffer
ld bc, SCREEN_WIDTH * SCREEN_HEIGHT
call CopyBytes
ret
; 84735
Printer_CopyBufferToTileMap: ; 84735
Printer_CopyBufferToTileMap:
ld hl, wPrinterTileMapBuffer
decoord 0, 0
ld bc, SCREEN_WIDTH * SCREEN_HEIGHT
call CopyBytes
ret
; 84742
Printer_ResetJoypadRegisters: ; 84742
Printer_ResetJoypadRegisters:
xor a
ld [hJoyReleased], a
ld [hJoyPressed], a
ld [hJoyDown], a
ld [hJoyLast], a
ret
; 8474c
Printer_PlayMusic: ; 8474c
Printer_PlayMusic:
ld de, MUSIC_PRINTER
call PlayMusic2
ret
; 84753
Printer_RestartMapMusic: ; 84753
Printer_RestartMapMusic:
call RestartMapMusic
ret
; 84757
CheckPrinterStatus: ; 84757
CheckPrinterStatus:
; Check for printer errors
; If [ca88] == -1, we're disconnected
ld a, [wPrinterHandshake]
@@ -561,9 +545,8 @@ CheckPrinterStatus: ; 84757
.load_text_index
ld [wPrinterStatus], a
ret
; 84785
PlacePrinterStatusString: ; 84785
PlacePrinterStatusString:
; Print nonzero printer status
ld a, [wPrinterStatus]
and a
@@ -594,9 +577,8 @@ PlacePrinterStatusString: ; 84785
xor a
ld [wPrinterStatus], a
ret
; 847bd
Unreferenced_Function847bd: ; 847bd
Unreferenced_Function847bd:
ld a, [wPrinterStatus]
and a
ret z
@@ -626,13 +608,11 @@ Unreferenced_Function847bd: ; 847bd
xor a
ld [wPrinterStatus], a
ret
; 847f5
String_PressBToCancel:
db "Press B to Cancel@"
; 84807
PrinterStatusStringPointers: ; 84807
PrinterStatusStringPointers:
dw GBPrinterString_Null ; @
dw GBPrinterString_CheckingLink ; CHECKING LINK
dw GBPrinterString_Transmitting ; TRANSMITTING
@@ -641,9 +621,8 @@ PrinterStatusStringPointers: ; 84807
dw GBPrinterString_PrinterError2 ; error 2
dw GBPrinterString_PrinterError3 ; error 3
dw GBPrinterString_PrinterError4 ; error 4
; 84817
PrintPCBox_Page1: ; 84817 (21:4817)
PrintPCBox_Page1:
xor a
ld [wWhichBoxMonToPrint], a
hlcoord 0, 0
@@ -678,13 +657,11 @@ PrintPCBox_Page1: ; 84817 (21:4817)
ld c, 3
call Printer_PrintBoxListSegment
ret
; 84865 (21:4865)
.String_PokemonList:
db "#MON LIST@"
; 8486f
PrintPCBox_Page2: ; 8486f (21:486f)
PrintPCBox_Page2:
hlcoord 0, 0
ld bc, SCREEN_HEIGHT * SCREEN_WIDTH
ld a, " "
@@ -701,7 +678,7 @@ PrintPCBox_Page2: ; 8486f (21:486f)
call Printer_PrintBoxListSegment
ret
PrintPCBox_Page3: ; 84893 (21:4893)
PrintPCBox_Page3:
hlcoord 0, 0
ld bc, SCREEN_HEIGHT * SCREEN_WIDTH
ld a, " "
@@ -718,7 +695,7 @@ PrintPCBox_Page3: ; 84893 (21:4893)
call Printer_PrintBoxListSegment
ret
PrintPCBox_Page4: ; 848b7 (21:48b7)
PrintPCBox_Page4:
hlcoord 0, 0
ld bc, SCREEN_HEIGHT * SCREEN_WIDTH
ld a, " "
@@ -739,7 +716,7 @@ PrintPCBox_Page4: ; 848b7 (21:48b7)
call Printer_PrintBoxListSegment
ret
Printer_PrintBoxListSegment: ; 848e7 (21:48e7)
Printer_PrintBoxListSegment:
ld a, [wBankOfBoxToPrint]
call GetSRAMBank
.loop
@@ -839,7 +816,7 @@ Printer_PrintBoxListSegment: ; 848e7 (21:48e7)
call CloseSRAM
ret
Printer_GetMonGender: ; 8498a (21:498a)
Printer_GetMonGender:
push hl
ld a, [wAddrOfBoxToPrint]
ld l, a
@@ -871,7 +848,7 @@ Printer_GetMonGender: ; 8498a (21:498a)
ld [hli], a
ret
Printer_GetBoxMonSpecies: ; 849c6 (21:49c6)
Printer_GetBoxMonSpecies:
push hl
ld e, a
ld d, $0
@@ -885,7 +862,7 @@ Printer_GetBoxMonSpecies: ; 849c6 (21:49c6)
pop hl
ret
Printer_PlaceTopBorder: ; 849d7 (21:49d7)
Printer_PlaceTopBorder:
hlcoord 0, 0
ld a, "┌"
ld [hli], a
@@ -899,7 +876,7 @@ Printer_PlaceTopBorder: ; 849d7 (21:49d7)
ld [hl], a
ret
Printer_PlaceSideBorders: ; 849e9 (21:49e9)
Printer_PlaceSideBorders:
hlcoord 0, 0
ld de, SCREEN_WIDTH - 1
ld c, SCREEN_HEIGHT
@@ -913,7 +890,7 @@ Printer_PlaceSideBorders: ; 849e9 (21:49e9)
jr nz, .loop
ret
Printer_PlaceBottomBorders: ; 849fc (21:49fc)
Printer_PlaceBottomBorders:
hlcoord 0, 17
ld a, "└"
ld [hli], a
@@ -927,7 +904,7 @@ Printer_PlaceBottomBorders: ; 849fc (21:49fc)
ld [hl], a
ret
Printer_PlaceEmptyBoxSlotString: ; 84a0e (21:4a0e)
Printer_PlaceEmptyBoxSlotString:
hlcoord 2, 0
ld c, $6
.loop
@@ -942,8 +919,6 @@ Printer_PlaceEmptyBoxSlotString: ; 84a0e (21:4a0e)
dec c
jr nz, .loop
ret
; 84a25 (21:4a25)
String84a25: ; 84a25
String84a25:
db " ------@"
; 84a2e

View File

@@ -1,4 +1,4 @@
Printer_StartTransmission: ; 84000
Printer_StartTransmission:
ld hl, wGameboyPrinterRAM
ld bc, wGameboyPrinterRAMEnd - wGameboyPrinterRAM
xor a
@@ -14,9 +14,8 @@ Printer_StartTransmission: ; 84000
xor a
ld [wJumptableIndex], a
ret
; 84022
PrinterJumptableIteration: ; 84022
PrinterJumptableIteration:
ld a, [wJumptableIndex]
ld e, a
ld d, 0
@@ -27,7 +26,6 @@ PrinterJumptableIteration: ; 84022
ld h, [hl]
ld l, a
jp hl
; 84031
.Jumptable: ; 84031 (21:4031)
dw Print_InitPrinterHandshake ; 00
@@ -53,33 +51,33 @@ PrinterJumptableIteration: ; 84022
dw Printer_WaitLoopBack ; 12
dw Printer_WaitLoopBack_ ; 13
Printer_NextSection: ; 84059 (21:4059)
Printer_NextSection:
ld hl, wJumptableIndex
inc [hl]
ret
Printer_PrevSection: ; 8405e (21:405e)
Printer_PrevSection:
ld hl, wJumptableIndex
dec [hl]
ret
Printer_Quit: ; 84063 (21:4063)
Printer_Quit:
xor a
ld [wPrinterStatusFlags], a
ld hl, wJumptableIndex
set 7, [hl]
ret
Printer_NextSection_: ; 8406d (21:406d)
Printer_NextSection_:
call Printer_NextSection
ret
Printer_SectionOne: ; 84071 (21:4071)
Printer_SectionOne:
ld a, $1
ld [wJumptableIndex], a
ret
Print_InitPrinterHandshake: ; 84077 (21:4077)
Print_InitPrinterHandshake:
call Printer_ResetData
ld hl, PrinterDataPacket1
call Printer_CopyPacket
@@ -94,7 +92,7 @@ Print_InitPrinterHandshake: ; 84077 (21:4077)
ld [wPrinterStatus], a
ret
Printer_StartTransmittingTilemap: ; 84099 (21:4099)
Printer_StartTransmittingTilemap:
call Printer_ResetData
; check ???
ld hl, wPrinterRowIndex
@@ -118,7 +116,7 @@ Printer_StartTransmittingTilemap: ; 84099 (21:4099)
ld [wPrinterStatus], a
ret
Printer_EndTilemapTransmission: ; 840c5 (21:40c5)
Printer_EndTilemapTransmission:
; ensure that we go from here to routine 7
ld a, $6
ld [wJumptableIndex], a
@@ -133,7 +131,7 @@ Printer_EndTilemapTransmission: ; 840c5 (21:40c5)
call Printer_WaitHandshake
ret
Printer_SignalSendHeader: ; 840de (21:40de)
Printer_SignalSendHeader:
call Printer_ResetData
ld hl, PrinterDataPacket2 ; signal request print
call Printer_CopyPacket
@@ -151,7 +149,7 @@ Printer_SignalSendHeader: ; 840de (21:40de)
ld [wPrinterStatus], a
ret
Printer_SignalLoopBack: ; 84103 (21:4103)
Printer_SignalLoopBack:
call Printer_ResetData
; send packet 1
ld hl, PrinterDataPacket1 ; signal no transmission
@@ -166,7 +164,7 @@ Printer_SignalLoopBack: ; 84103 (21:4103)
call Printer_WaitHandshake
ret
Printer_WaitSerial: ; 84120 (21:4120)
Printer_WaitSerial:
ld hl, wPrinterSerialFrameDelay
inc [hl]
ld a, [hl]
@@ -177,7 +175,7 @@ Printer_WaitSerial: ; 84120 (21:4120)
call Printer_NextSection
ret
Printer_WaitSerialAndLoopBack2: ; 8412e (21:412e)
Printer_WaitSerialAndLoopBack2:
ld hl, wPrinterSerialFrameDelay
inc [hl]
ld a, [hl]
@@ -191,7 +189,7 @@ Printer_WaitSerialAndLoopBack2: ; 8412e (21:412e)
call Printer_PrevSection
ret
Printer_CheckConnectionStatus: ; 84143 (21:4143)
Printer_CheckConnectionStatus:
ld a, [wPrinterOpcode]
and a
ret nz
@@ -224,7 +222,7 @@ Printer_CheckConnectionStatus: ; 84143 (21:4143)
ld [wJumptableIndex], a
ret
Printer_TransmissionLoop: ; 84180 (21:4180)
Printer_TransmissionLoop:
ld a, [wPrinterOpcode]
and a
ret nz
@@ -246,7 +244,7 @@ Printer_TransmissionLoop: ; 84180 (21:4180)
ld [wJumptableIndex], a
ret
Printer_WaitUntilFinished: ; 841a1 (21:41a1)
Printer_WaitUntilFinished:
ld a, [wPrinterOpcode]
and a
ret nz
@@ -256,9 +254,9 @@ Printer_WaitUntilFinished: ; 841a1 (21:41a1)
call Printer_NextSection
ret
Printer_WaitLoopBack: ; 841b0 (21:41b0)
Printer_WaitLoopBack:
call Printer_NextSection
Printer_WaitLoopBack_: ; 841b3 (21:41b3)
Printer_WaitLoopBack_:
ld a, [wPrinterOpcode]
and a
ret nz
@@ -269,7 +267,7 @@ Printer_WaitLoopBack_: ; 841b3 (21:41b3)
ld [wJumptableIndex], a
ret
Printer_WaitHandshake: ; 841c3 (21:41c3)
Printer_WaitHandshake:
.loop
ld a, [wPrinterOpcode]
and a
@@ -287,7 +285,7 @@ Printer_WaitHandshake: ; 841c3 (21:41c3)
ld [rSC], a
ret
Printer_CopyPacket: ; 841e2 (21:41e2)
Printer_CopyPacket:
ld a, [hli]
ld [wPrinterData], a
ld a, [hli]
@@ -302,7 +300,7 @@ Printer_CopyPacket: ; 841e2 (21:41e2)
ld [wPrinterChecksum + 1], a
ret
Printer_ResetData: ; 841fb (21:41fb)
Printer_ResetData:
xor a
ld hl, wPrinterData
ld [hli], a
@@ -320,7 +318,7 @@ Printer_ResetData: ; 841fb (21:41fb)
call Printer_ByteFill
ret
Printer_ComputeChecksum: ; 84219 (21:4219)
Printer_ComputeChecksum:
ld hl, 0
ld bc, 4
ld de, wPrinterData
@@ -337,7 +335,7 @@ Printer_ComputeChecksum: ; 84219 (21:4219)
ld [wPrinterChecksum + 1], a
ret
.ComputeChecksum: ; 8423c (21:423c)
.ComputeChecksum:
.loop
ld a, [de]
inc de
@@ -352,7 +350,7 @@ Printer_ComputeChecksum: ; 84219 (21:4219)
jr nz, .loop
ret
Printer_StageHeaderForSend: ; 84249 (21:4249)
Printer_StageHeaderForSend:
ld a, $1
ld [wGameboyPrinter2bppSource + 0], a
ld a, [wcbfa]
@@ -363,7 +361,7 @@ Printer_StageHeaderForSend: ; 84249 (21:4249)
ld [wGameboyPrinter2bppSource + 3], a
ret
Printer_Convert2RowsTo2bpp: ; 84260 (21:4260)
Printer_Convert2RowsTo2bpp:
; de = wPrinterTileMapBuffer + 2 * SCREEN_WIDTH * ([wPrinterQueueLength] - [wPrinterRowIndex])
ld a, [wPrinterRowIndex]
xor $ff
@@ -420,7 +418,7 @@ Printer_Convert2RowsTo2bpp: ; 84260 (21:4260)
jr nz, .loop2
ret
Printer_ByteFill: ; 842ab
Printer_ByteFill:
push de
ld e, a
.loop
@@ -433,7 +431,6 @@ Printer_ByteFill: ; 842ab
ld a, e
pop de
ret
; 842b7
PrinterDataPacket1:
db 1, 0, $00, 0
@@ -453,9 +450,8 @@ PrinterDataPacket5: ; unused
PrinterDataPacket6: ; unused
db 15, 0, $00, 0
dw 15
; 842db
_PrinterReceive:: ; 842db
_PrinterReceive::
ld a, [wPrinterOpcode]
add a
ld e, a
@@ -466,9 +462,8 @@ _PrinterReceive:: ; 842db
ld h, [hl]
ld l, a
jp hl
; 842ea
.Jumptable: ; 842ea (21:42ea)
.Jumptable:
dw Printer_DoNothing ; 00
dw Printer_Send0x33 ; 01
@@ -505,45 +500,45 @@ _PrinterReceive:: ; 842db
dw Printer_ReceiveTowPrinterHandshakeAndSend0x00 ; 1e
dw Printer_ReceiveTowPrinterStatusFlagsAndExitSendLoop ; 1f
Printer_NextInstruction: ; 8432a (21:432a)
Printer_NextInstruction:
ld hl, wPrinterOpcode
inc [hl]
ret
Printer_DoNothing: ; 8432f (21:432f)
Printer_DoNothing:
ret
Printer_Send0x33: ; 84330 (21:4330)
Printer_Send0x33:
ld a, $33
call Printer_SerialSend
call Printer_NextInstruction
ret
Printer_SendPrinterData1: ; 84339 (21:4339)
Printer_SendPrinterData1:
ld a, [wPrinterData]
call Printer_SerialSend
call Printer_NextInstruction
ret
Printer_SendPrinterData2: ; 84343 (21:4343)
Printer_SendPrinterData2:
ld a, [wPrinterData + 1]
call Printer_SerialSend
call Printer_NextInstruction
ret
Printer_SendPrinterData3: ; 8434d (21:434d)
Printer_SendPrinterData3:
ld a, [wPrinterData + 2]
call Printer_SerialSend
call Printer_NextInstruction
ret
Printer_SendPrinterData4: ; 84357 (21:4357)
Printer_SendPrinterData4:
ld a, [wPrinterData + 3]
call Printer_SerialSend
call Printer_NextInstruction
ret
Printer_SendNextByte: ; 84361 (21:4361)
Printer_SendNextByte:
; decrement 16-bit counter
ld hl, wPrinterSendByteCounter
ld a, [hli]
@@ -573,25 +568,25 @@ Printer_SendNextByte: ; 84361 (21:4361)
.done
call Printer_NextInstruction
Printer_SendwPrinterChecksumLo: ; 8438b (21:438b)
Printer_SendwPrinterChecksumLo:
ld a, [wPrinterChecksum]
call Printer_SerialSend
call Printer_NextInstruction
ret
Printer_SendwPrinterChecksumHi: ; 84395 (21:4395)
Printer_SendwPrinterChecksumHi:
ld a, [wPrinterChecksum + 1]
call Printer_SerialSend
call Printer_NextInstruction
ret
Printer_Send0x00: ; 8439f (21:439f)
Printer_Send0x00:
ld a, $0
call Printer_SerialSend
call Printer_NextInstruction
ret
Printer_ReceiveTowPrinterHandshakeAndSend0x00: ; 843a8 (21:43a8)
Printer_ReceiveTowPrinterHandshakeAndSend0x00:
ld a, [rSB]
ld [wPrinterHandshake], a
ld a, $0
@@ -599,32 +594,32 @@ Printer_ReceiveTowPrinterHandshakeAndSend0x00: ; 843a8 (21:43a8)
call Printer_NextInstruction
ret
Printer_ReceiveTowPrinterStatusFlagsAndExitSendLoop: ; 843b6 (21:43b6)
Printer_ReceiveTowPrinterStatusFlagsAndExitSendLoop:
ld a, [rSB]
ld [wPrinterStatusFlags], a
xor a
ld [wPrinterOpcode], a
ret
Printer_Send0x0f: ; 843c0 (21:43c0)
Printer_Send0x0f:
ld a, $f
call Printer_SerialSend
call Printer_NextInstruction
ret
Printer_Send0x00_: ; 843c9 (21:43c9)
Printer_Send0x00_:
ld a, $0
call Printer_SerialSend
call Printer_NextInstruction
ret
Printer_Send0x08: ; 843d2 (21:43d2)
Printer_Send0x08:
ld a, $8
call Printer_SerialSend
call Printer_NextInstruction
ret
Printer_SerialSend: ; 843db (21:43db)
Printer_SerialSend:
ld [rSB], a
ld a, $1 ; switch to internal clock
ld [rSC], a
@@ -632,7 +627,7 @@ Printer_SerialSend: ; 843db (21:43db)
ld [rSC], a
ret
Printer_ReceiveTowPrinterStatusFlagsAndExitSendLoop_: ; 843e6 (21:43e6)
Printer_ReceiveTowPrinterStatusFlagsAndExitSendLoop_:
ld a, [rSB]
ld [wPrinterStatusFlags], a
xor a