summaryrefslogtreecommitdiff
path: root/engine/printer.asm
diff options
context:
space:
mode:
Diffstat (limited to 'engine/printer.asm')
-rw-r--r--engine/printer.asm30
1 files changed, 15 insertions, 15 deletions
diff --git a/engine/printer.asm b/engine/printer.asm
index d4cc8192..46eb2c59 100644
--- a/engine/printer.asm
+++ b/engine/printer.asm
@@ -11,7 +11,7 @@
INCLUDE "engine/printer/serial.asm"
-PrintPokedexEntry: ; e8b74 (3a:4b74)
+PrintPokedexEntry:
ld a, [wUpdateSpritesEnabled]
push af
xor a
@@ -238,7 +238,7 @@ Func_e8d11:
scf
ret
-PrintPCBox:: ; e8d35 (3a:4e79)
+PrintPCBox::
ld a, [wBoxDataStart]
and a
jp z, Func_e8df4
@@ -359,7 +359,7 @@ PrintFanClubPortrait: ; e8e24
xor a
ld [hCanceledPrinting], a
call Printer_PlayPrinterMusic
- call Func_ea3ea
+ call Printer_GetMonStats
ld a, [rIE]
push af
xor a
@@ -397,7 +397,7 @@ PrintFanClubPortrait: ; e8e24
call Printer_PlayMapMusic
ret
-Func_e8e79: ; e8e79 (3a:4e79)
+PrinterDebug:
push af
push bc
push de
@@ -415,13 +415,13 @@ Func_e8e79: ; e8e79 (3a:4e79)
ld a, $1
ld [H_AUTOBGTRANSFERENABLED], a
call Printer_CopyTileMapToPrinterTileBuffer
- call Func_ea573
+ call PrinterDebug_LoadGFX
.loop
ld a, [wPrinterSendState]
bit 7, a
jr nz, .quit
- call Func_ea5d1
- call Func_ea5b7
+ call PrinterDebug_DoFunction
+ call PrinterDebug_ConvertStatusFlagsToTiles
call DelayFrame
jr .loop
@@ -443,7 +443,7 @@ Func_e8e79: ; e8e79 (3a:4e79)
pop af
ret
-Printer_CheckPressingB: ; e8eca (3a:4eca)
+Printer_CheckPressingB:
ld a, [hJoyHeld]
and B_BUTTON
jr nz, .quit
@@ -476,21 +476,21 @@ Printer_CheckPressingB: ; e8eca (3a:4eca)
scf
ret
-Printer_CopyTileMapToPrinterTileBuffer: ; e8efc (3a:4efc)
+Printer_CopyTileMapToPrinterTileBuffer:
coord hl, 0, 0
coord de, 0, 0, wPrinterTileBuffer
ld bc, SCREEN_HEIGHT * SCREEN_WIDTH
call CopyData
ret
-Printer_CopyTileMapFromPrinterTileBuffer: ; e8f09 (3a:4f09)
+Printer_CopyTileMapFromPrinterTileBuffer:
coord hl, 0, 0, wPrinterTileBuffer
coord de, 0, 0
ld bc, SCREEN_HEIGHT * SCREEN_WIDTH
call CopyData
ret
-Printer_ResetJoypadHRAM: ; e8f16 (3a:4f16)
+Printer_ResetJoypadHRAM:
xor a
ld [hJoyLast], a
ld [hJoyReleased], a
@@ -500,7 +500,7 @@ Printer_ResetJoypadHRAM: ; e8f16 (3a:4f16)
ld [hJoy6], a
ret
-Printer_PlayPrinterMusic: ; e8f24 (3a:4f24)
+Printer_PlayPrinterMusic:
call Printer_FadeOutMusicAndWait
ld a, [wAudioROMBank]
ld [wAudioSavedROMBank], a
@@ -511,12 +511,12 @@ Printer_PlayPrinterMusic: ; e8f24 (3a:4f24)
call PlaySound
ret
-Printer_PlayMapMusic: ; e8f3b (3a:4f3b)
+Printer_PlayMapMusic:
call Printer_FadeOutMusicAndWait
call PlayDefaultMusic
ret
-Printer_FadeOutMusicAndWait: ; e8f42 (3a:4f42)
+Printer_FadeOutMusicAndWait:
ld a, $4
ld [wAudioFadeOutControl], a
call StopAllMusic
@@ -526,7 +526,7 @@ Printer_FadeOutMusicAndWait: ; e8f42 (3a:4f42)
jr nz, .wait_music_stop
ret
-GBPrinter_CheckForErrors: ; e8f51 (3a:4f51)
+GBPrinter_CheckForErrors:
ld a, [wPrinterHandshake]
cp $81
jr z, .check_other_errors