summaryrefslogtreecommitdiff
path: root/src/constants/printer_constants.asm
diff options
context:
space:
mode:
Diffstat (limited to 'src/constants/printer_constants.asm')
-rw-r--r--src/constants/printer_constants.asm24
1 files changed, 16 insertions, 8 deletions
diff --git a/src/constants/printer_constants.asm b/src/constants/printer_constants.asm
index ed6b663..e65eb1b 100644
--- a/src/constants/printer_constants.asm
+++ b/src/constants/printer_constants.asm
@@ -1,9 +1,17 @@
; wPrinterStatus
- const_def 1
- const PRINTER_STATUS_CHECKING
- const PRINTER_STATUS_TRANSMITTING
- const PRINTER_STATUS_PRINTING
- const PRINTER_ERROR_1
- const PRINTER_ERROR_PAPER_JAMMED
- const PRINTER_ERROR_CABLE_PRINTER_SWITCH
- const PRINTER_ERROR_BATTERIES_LOST_CHARGE
+ const_def
+ const PRINTER_ERROR_CHECKSUM ; $0
+ const PRINTER_STATUS_BUSY ; $1
+ const PRINTER_STATUS_IMAGE_FULL ; $2
+ const PRINTER_STATUS_PRINTING ; $3
+ const PRINTER_ERROR_INVALID_PACKET ; $4
+ const PRINTER_ERROR_PAPER_JAMMED ; $5
+ const PRINTER_ERROR_CABLE_PRINTER_SWITCH ; $6
+ const PRINTER_ERROR_BATTERIES_LOST_CHARGE ; $7
+
+; printer packet types
+PRINTERPKT_INIT EQU $01
+PRINTERPKT_PRINT_INSTRUCTION EQU $02
+PRINTERPKT_DATA EQU $04
+PRINTERPKT_BREAK EQU $08
+PRINTERPKT_NUL EQU $0f