PWORDIN, PVAROUT, PBITOUT_WORD MACRO PWORDIN, PWORDOUT @ B PWORDIN +1 PWORDIN +1, W @ B PWORDOUT +1 PWORDOUT +1 _BYTE PWORDIN, PWORDOUT_DWORD MACRO PWORDIN, PDWORDOUT @ B PDWORDOUT +3 PDWORDOUT +3 @ B PDWORDOUT +2 PDWORDOUT +2 _BYTE PWORDIN +1, PDWORDOUT +1 _BYTE PWORDIN, PDWORDOUT_BYTE MACRO PBYTEIN, PBYTEOUT @ B PBYTEINPBYTEIN, W @ B PBYTEOUTPBYTEOUT @ B_WORD MACRO PBYTEIN, PWORDOUT @ B PWORDOUT +1 PWORDOUT +1 _BYTE PBYTEIN, PWORDOUT_DWORD MACRO PBYTEIN, PDWORDOUT @ B PDWORDOUT +3 PDWORDOUT + 3 @ B PDWORDOUT +2 PDWORDOUT +2 @ B PDWORDOUT +1 PDWORDOUT +1 _BYTE PBYTEIN, PDWORDOUT_BIT MACRO PBYTEIN, PVAROUT, PBITOUT ((PBYTEIN & 65408) == (PVAROUT & 65408)) @ B PBYTEINPBYTEIN, 0PVAROUT, PBITOUTPBYTEIN, 0PVAROUT, PBITOUT @ B PBYTEINPBYTEIN, W @ B PVAROUTPVAROUT, PBITOUTPVAROUT, PBITOUT @ B_WREG MACRO PDWORDIN_WREG PDWORDIN_BYTE MACRO PDWORDIN, PBYTEOUT_BYTE PDWORDIN, PBYTEOUT_WORD MACRO PDWORDIN, PWORDOUT @ B PDWORDIN +1 PDWORDIN +1, W @ B PWORDOUT +1 PWORDOUT +1 _BYTE PDWORDIN, PWORDOUT_DWORD MACRO PDWORDIN , PDWORDOUT_BYTE PDWORDIN +3, PDWORDOUT +3 _BYTE PDWORDIN +2, PDWORDOUT +2 _BYTE PDWORDIN +1, PDWORDOUT +1 _BYTE PDWORDIN, PDWORDOUT_BIT MACRO PDWORDIN, PVAROUT, PBITOUT_BIT PDWORDIN, PVAROUT, PBITOUTCURRENT @ PAGE = 0PDESTINATION @ PAGE = 0 @ PAGE MACRO PLABELINCURRENT_ADDR = $ DEST_ADDR = PLABELIN ((CURRENT_ADDR> = 0X1800) && (CURRENT_ADDR <= 0X2000)) @ PAGE = 3 ((CURRENT_ADDR> = 0X1000) && (CURRENT_ADDR <= 0X1800)) @ PAGE = 2 ((CURRENT_ADDR> = 0X0800) && (CURRENT_ADDR <= 0X1000)) @ PAGE = 1 ((CURRENT_ADDR> = 0) && (CURRENT_ADDR <= 0X0800)) @ PAGE = 0 ((DEST_ADDR> = 0X1800) && (DEST_ADDR <= 0X2000)) @ PAGE = 3 ((DEST_ADDR> = 0X1000) && (DEST_ADDR <= 0X1800)) @ PAGE = 2 (( DEST_ADDR> = 0X0800) && (DEST_ADDR <= 0X1000)) @ PAGE = 1 ((DEST_ADDR> = 0) && (DEST_ADDR <= 0X0800)) @ PAGE = 0_FSR MACRO PNUMIN_BYTE PNUMIN, FSR (((PNUMIN>> 8) & 255) == 1) STATUS, 7STATUS, 7_WORD MACRO PLABELIN, PWORDOUTLOW (PLABELIN) @ B PWORDOUTPWORDOUTHIGH (PLABELIN) @ B PWORDOUTPWORDOUT +1 @ BH = 32 = 33H = 34 = 35 # VAR0 = 36 = 37H = 38 = 39H = 40 = 41H = 42 = 43H = 44 # P9 = 45 = 46KEYPASS # 0 = 46, KEYPASS # 1 = 47, KEYPASS # 2 = 48 = 49MKEY # 0 = 49 , MKEY # 1 = 50, MKEY # 2 = 51
_B # VR1 = 52 = 53 = 54
_I = 55
# DEFINE RAW1 PORTA, 0
# DEFINE RAW2 PORTA, 1
# DEFINE RAW3 PORTA, 2
# DEFINE RAW4 PORTA, 3
# DEFINE COL1 PORTA, 4
# DEFINE COL2 PORTA, 5
# DEFINE COL3 PORTC, 0
# DEFINE LED1 PORTC, 4
# DEFINE LED2 PORTC, 5
# DEFINE LEDPOD PORTC, 3
# DEFINE FLAG _B # VR1, 0
# DEFINE FLAG1 _B # VR1, 1 # CODE # START0PROTON # MAIN # START @ GTB38 @ GTW40 @ GT391 @ ST3540, W38, W $ + - 1156, PP_WREN155, FI @ NT @ MS40 @ W3...