; /*
if 0
*/

U16 write_str(U16);
U16 SendHexWord(U16);
U16 SendHexByte(U16);
U16 cmp_str(U8*);

#define S_LOGO     0
#define S_ESC      1
#define S_CR       2
#define S_BACK     3
#define S_ERR_CMD  4
#define S_HELP     5
#define S_LEAVE    6
#define S_XLX      7
#define S_CMD      8
#define S_RPT      9
#define S_BYTE     10
#define S_BIT      11

#define C_RESET    1
#define C_HELP     2
#define C_XLX      3
#define C_CTRL     4
#define C_PORT     5
#define C_KEYB     6
#define C_SREG     7
#define C_JRST     8
#define C_JCMD     9
#define C_JDATA    10
#define C_SRPT     11
#define C_ABORT    126
#define C_PREV     127

;
#if 0
endif
;

str_table          dw      str_0,str_1,str_2,Str_3
                   dw      str_4,str_5,str_6,str_7
                   dw      str_8,str_9,str_10,str_11
str_table_size     equ     ($-str_table)/2
str_0              db      'MICEpack-J 603E',13,10,0
str_1              db      '/'
str_2              db      13,10,0
str_3              db      8,' ',8,0
str_4              db      'illegal command, type HELP for on-line help',13,10,0
str_5              db      'RESET - F/W reset ',13,10
                   db      'HELP  - get this message',13,10
                   db      'XLX   - get FPGA status',13,10
                   db      'CTRL  - FPGA control port',13,10
                   db      'PORT  - JTAG output port',13,10
                   db      'SREG  - Shift register',13,10
                   db      'JRST  - Reset JTAG port',13,10
                   db      'JCMD  - send JTAG command',13,10
                   db      'KEYB  - test key board',13,10
                   db      0
str_6              db      'WROM DBUG TEST',13,10,0
str_7              db      'XLX=',0
str_8              db      'cmd?',0
str_9              db      'rpt?',0
str_10             db      'BYTE',0
str_11             db      'BIT',0
cmd_table          dw      0
                   dw      cmd_1,cmd_2,cmd_3,cmd_4
                   dw      cmd_5,cmd_6,cmd_7,cmd_8
                   dw      cmd_9,cmd_10,cmd_11
cmd_table_size     equ     $-cmd_table
cmd_1              db      'RESET',0
cmd_2              db      'HELP',0
cmd_3              db      'XLX',0
cmd_4              db      'CTRL',0
cmd_5              db      'PORT',0
cmd_6              db      'KEYB',0
cmd_7              db      'SREG',0
cmd_8              db      'JRST',0
cmd_9              db      'JCMD',0
cmd_10             db      'JCMD DATA',0
cmd_11             db      'SREG RPT',0

if 0
#endif
; /*
endif
; */
