/* cpcfirmware.h */

#define CAS_CATALOG	   0xBC9B
#define CAS_IN_CHAR	   0xBC80
#define CAS_IN_CLOSE	   0xBC7A
#define CAS_IN_DIRECT	0xBC83
#define CAS_IN_OPEN	   0xBC77
#define CAS_NOISY	      0xBC6B
#define CAS_OUT_OPEN	   0xBC8C
#define CAS_OUT_CHAR	   0xBC95
#define CAS_OUT_CLOSE	0xBC8F
#define CAS_OUT_DIRECT	0xBC98
#define CAS_SET_SPEED	0xBC68

#define DSC_FORM_TRACK	0xC652
#define DSC_SETUP_DISC	0xC60D
#define DSC_RD_SECTOR	0xC666
#define DSC_WR_SECTOR	0xC64E

#define GRA_ASK_CURSOR	0xBBC6
#define GRA_LINE_ABS	   0xBBF6
#define GRA_LINE_REL	   0xBBF9
#define GRA_MOVE_ABS	   0xBBC0
#define GRA_MOVE_REL	   0xBBC3
#define GRA_PLOT_ABS	   0xBBEA
#define GRA_PLOT_REL	   0xBBED
#define GRA_SET_PEN	   0xBBDE
#define GRA_TEST_ABS	   0xBBF0
#define GRA_TEST_REL	   0xBBF3
#define GRA_WR_CHAR     0xBBFC

#define KL_ADD_TICKER	0xBCE9
#define KL_CHOKE_OFF	   0xBCC8
#define KL_DEL_TICKER	0xBCEC
#define KL_FIND_COMMAND	0xBCD4
#define KL_INIT_BACK	   0xBCCE
#define KL_INIT_EVENT	0xBCEF
#define KL_LOG_EXT	   0xBCD1
#define KL_LROM_DIS	   0xB909
#define KL_LROM_ENABLE	0xB906
#define KL_ROM_DESEL	   0xB918
#define KL_ROM_SEL	   0xB90F
#define KL_ROM_WALK	   0xBCCB
#define KL_UROM_DIS	   0xB903
#define KL_UROM_ENABLE	0xB900

#define KM_GET_JOY	   0xBB24
#define KM_READ_CHAR	   0xBB09
#define KM_RESET	      0xBB03
#define KM_SET_SHIFT	   0xBB2D
#define KM_SET_TRANS	   0xBB27
#define KM_TEST_KEY	   0xBB1E
#define KM_WAIT_KEY	   0xBB18

#define LOW_RESET_ENTRY	0x0000
#define LOW_FAR_CALL	   0x0018

#define MC_BOOT_PRG	   0xBD13
#define MC_BUSY_PRINTER	0xBD2E
#define MC_INPUT	      0xBD3A
#define MC_PRINT_CHAR	0xBD2B
#define MC_START_PRG	   0xBD16
#define MC_WAIT_FRAME	0xBD19

#define SCR_CHAR_POS	   0xBC1A
#define SCR_CLEAR	      0xBC14
#define SCR_GET_INK	   0xBC35
#define SCR_GET_LOC	   0xBC0B
#define SCR_GET_MODE	   0xBC11
#define SCR_HW_ROLL	   0xBC4D
#define SCR_INITIALISE	0xBBFF
#define SCR_NEXT_BYTE	0xBC20
#define SCR_NEXT_LINE	0xBC26
#define SCR_PREV_BYTE	0xBC23
#define SCR_PREV_LINE	0xBC29
#define SCR_SET_BASE	   0xBC08
#define SCR_SET_BORDER	0xBC38
#define SCR_SET_INK	   0xBC32
#define SCR_SET_MODE	   0xBC0E
#define SCR_SW_ROLL	   0xBC50

#define TXT_CLR_WINDOW	0xBB6C
#define TXT_CUR_DISABLE	0xBB7E
#define TXT_CUR_ENABLE	0xBB7B
#define TXT_CUR_OFF	   0xBB84
#define TXT_CUR_ON	   0xBB81
#define TXT_GET_BACK	   0xBBA2
#define TXT_GET_CURSOR	0xBB78
#define TXT_GET_M_TABLE	0xBBAE
#define TXT_GET_MATRIX	0xBBA5
#define TXT_GET_WINDOW	0xBB69
#define TXT_INITIALISE	0xBB4E
#define TXT_INVERSE	   0xBB9C
#define TXT_OUTPUT	   0xBB5A
#define TXT_PLACE_CUR	0xBB8A
#define TXT_REMOVE_CUR	0xBB8D
#define TXT_SET_PEN	   0xBB90
#define TXT_RD_CHAR	   0xBB60
#define TXT_RESET	      0xBB51
#define TXT_SET_COLUMN	0xBB6F
#define TXT_SET_BACK	   0xBB9F
#define TXT_SET_CURSOR	0xBB75
#define TXT_SET_MATRIX	0xBBA8
#define TXT_SET_M_TABLE	0xBBAB
#define TXT_SET_PAPER	0xBB96
#define TXT_SET_ROW	   0xBB72
#define TXT_STR_SELECT	0xBBB4
#define TXT_WIN_ENABLE	0xBB66
#define TXT_WR_CHAR	   0xBB5D
#define TXT_DRAW_CURSOR 0xBDCD
#define TXT_WRITE_CHAR  0xBDD3
#define TXT_OUT_ACTION  0xBDD9
