;*****************************************************************************
;       KR.INC - DEFINITION OF SYMBOLIC NAMES FOR THE I/O REGISTERS
;                OF THE 8XC196KR
;
;                These symbols correspond with the register names
;                as defined in the 8XC196KR User's Manual.
;
;                Copyright INTEL Corporation 1991
;*****************************************************************************

ZERO_REG        EQU     00H:WORD
WATCHDOG        EQU     0AH:BYTE
WSR             EQU     14H:BYTE
SP              EQU     18H:WORD

USFR            EQU     1FF6H:BYTE

P0_PIN          EQU     1FDAH:BYTE

P1_PIN          EQU     1FD6H:BYTE
P1_REG          EQU     1FD4H:BYTE
P1_DIR          EQU     1FD2H:BYTE
P1_MODE         EQU     1FD0H:BYTE

P2_PIN          EQU     1FCFH:BYTE
P2_REG          EQU     1FCDH:BYTE
P2_DIR          EQU     1FCBH:BYTE
P2_MODE         EQU     1FC9H:BYTE

P3_PIN          EQU     1FFEH:BYTE
P3_REG          EQU     1FFCH:BYTE

P4_PIN          EQU     1FFFH:BYTE
P4_REG          EQU     1FFDH:BYTE

P5_PIN          EQU     1FF7H:BYTE
P5_REG          EQU     1FF5H:BYTE
P5_DIR          EQU     1FF3H:BYTE
P5_MODE         EQU     1FF1H:BYTE

P6_PIN          EQU     1FD7H:BYTE
P6_REG          EQU     1FD5H:BYTE
P6_DIR          EQU     1FD3H:BYTE
P6_MODE         EQU     1FD1H:BYTE

PTSSEL          EQU     04H:WORD
PTSSRV          EQU     06H:WORD

INT_MASK        EQU     08H:BYTE
INT_PEND        EQU     09H:BYTE
INT_PEND1       EQU     12H:BYTE
INT_MASK1       EQU     13H:BYTE

EPAIPV          EQU     1FA8H:BYTE
EPA_PEND        EQU     1FA2H:WORD
EPA_PEND1       EQU     1FA6H:BYTE      ; BUG... must write to pend1 as a word
EPA_MASK        EQU     1FA0H:WORD
EPA_MASK1       EQU     1FA4H:WORD      ; BUG... must write to mask1 as a word

EPA9_TIME       EQU     1F86H:WORD
EPA9_CON        EQU     1F84H:BYTE
EPA8_TIME       EQU     1F82H:WORD
EPA8_CON        EQU     1F80H:BYTE
EPA7_TIME       EQU     1F7EH:WORD
EPA7_CON        EQU     1F7CH:BYTE
EPA6_TIME       EQU     1F7AH:WORD
EPA6_CON        EQU     1F78H:BYTE
EPA5_TIME       EQU     1F76H:WORD
EPA5_CON        EQU     1F74H:BYTE
EPA4_TIME       EQU     1F72H:WORD
EPA4_CON        EQU     1F70H:BYTE
EPA3_TIME       EQU     1F6EH:WORD
EPA3_CON        EQU     1F6CH:WORD
EPA2_TIME       EQU     1F6AH:WORD
EPA2_CON        EQU     1F68H:BYTE
EPA1_TIME       EQU     1F66H:WORD
EPA1_CON        EQU     1F64H:WORD
EPA0_TIME       EQU     1F62H:WORD
EPA0_CON        EQU     1F60H:BYTE

COMP1_TIME      EQU     1F8EH:WORD
COMP1_CON       EQU     1F8CH:BYTE
COMP0_TIME      EQU     1F8AH:WORD
COMP0_CON       EQU     1F88H:BYTE

TIMER1          EQU     1F9AH:WORD
TIMER2          EQU     1F9EH:WORD
T1CONTROL       EQU     1F98H:BYTE
T2CONTROL       EQU     1F9CH:BYTE

AD_TIME         EQU     1FAFH:BYTE
AD_TEST         EQU     1FAEH:BYTE
AD_COMMAND      EQU     1FACH:WORD
AD_RESULT       EQU     1FAAH:WORD

SP_CON          EQU     1FBBH:BYTE
SP_BAUD         EQU     1FBCH:WORD
SP_STATUS       EQU     1FB9H:BYTE
SBUF_TX         EQU     1FBAH:BYTE
SBUF_RX         EQU     1FB8H:BYTE

SSIO_BAUD       EQU     1FB4H:BYTE
SSIO1_CON       EQU     1FB3H:BYTE
SSIO1_BUF       EQU     1FB2H:BYTE
SSIO0_CON       EQU     1FB1H:BYTE
SSIO0_BUF       EQU     1FB0H:BYTE

SLP_CON         EQU     1FFBH:BYTE
SLP_CMD         EQU     1FFAH:BYTE
SLP_STAT        EQU     1FF8H:BYTE
