; $Header:   C:/LAM2.FW/IO.DEV   1.0   23 Jun 1992 17:37:08   Joseph Hsin  $
;
; $Log:   C:/LAM2.FW/IO.DEV  $
;
;   Rev 1.0   23 Jun 1992 17:37:08   Joseph Hsin
;Initial revision.
;
IO      SEGMENT COMMON 'IO'
        PUBLIC  PIOCS,OUT_PORT,MONTRCS,TIM2CNT_REG,TIM2CNTL_REG
        PUBLIC  SCCAC_R,SCCAC_W,SCCAD,SCCBC_R,SCCBC_W,SCCBD
        PUBLIC  TPRLDH,TPRLDL
        PUBLIC  HS2A,HS3A,HS4A,HCNTL,HS1A,HMOSD
        PUBLIC  HSPNAH,HSPNAL,HMIOCS0,HMIOCS1,HMIOCS2,HMIOCS3
        PUBLIC  S2AP,S3AP,S4AP,MIOCS0,MIOCS1,WRPRTP,S1AP,ENEMMP
        PUBLIC  MIOCS2,MIOCS3
        PUBLIC  IOCS0,IOCS1,AMHP,AHHP,ALLP,AMLP,TRIGP,SPAFG
        PUBLIC  IOCS2,IOCS3,RAMCS,ENPIN1,ENPIN2,PCNTAB,PCNTCD,PDLY
        PUBLIC  IOCS4,IOCS5,DMHP,DLLP,DMLP,TMLP,TMHP,COVD
        PUBLIC  IOCS6,IOCS7,ENPIN3,ENPIN4,ENPIN5,ENPIN6,ENPIN7,ENPIN8
        PUBLIC  IOCS10,E123TC0,E123TC1,E123TC2
        PUBLIC  IOCS12,E4DLTC0,E4DLTC1,E4DLTC2
        PUBLIC  IOCS14,TIMTC0,TIMTC1,TIMTC2
        PUBLIC  CP82550,CP82551,CNTRL0A,CNTRL1A,CNTRL0B,CNTRL1B
        PUBLIC  CNTRL0C,CNTRL1C,CP82552,CP82553,SPOONDL,SPOONDH
        PUBLIC  SPOONAL,SPOONAH,MONITOR,MONITOR1
        ORG     0000H
OUT_PORT DW     ?       ;CPM OUTPUT PORT ADDRESS 0F000H
        ORG     0020H   ;CPM SERIAL I/O
SCCBC_R DB      0H              ;
        ORG     0020H
SCCBC_W DB      0H                      ;SCC channel B   DATA  port: 0F020H
                DB      0H
SCCBD   DB      0H                      ;SCC channel B COMMAND port: 0F022H
;
        ORG     0030H
SCCAC_R DB      0H
        ORG     0030H
SCCAC_W DB      0H                      ;SCC channel A   DATA  port: 0F030H
                DB      0H
SCCAD   DB      0H                      ;SCC channel A COMMAND port: 0F032H
        ORG     0040H
PIOCS   DB      ?       ;CPM PARALLEL I/O
        ORG     0060H
MONTRCS DB      ?       ;0F060H
;--------------------------------------------------------------
; EPM CP82550 & CP82551 CONTROL CODE
;--------------------------------------------------------------
        ORG     0106H
CP82550 DB      ?       ;CP82550 CONTROL PORT ADDRESS 0F106H
CP82551 DB      ?       ;CP82551 CONTROL PORT ADDRESS 0F107H
        ;
        ORG     0100H
CNTRL0A DB      ?       ;CP82550 PORT A ADDRESS 0F100H
CNTRL1A DB      ?       ;CP82551 PORT A ADDRESS 0F101H
CNTRL0B DB      ?       ;CP82550 PORT B ADDRESS 0F102H
CNTRL1B DB      ?       ;CP82551 PORT B ADDRESS 0F103H
CNTRL0C DB      ?       ;CP82550 PORT C ADDRESS 0F104H
CNTRL1C DB      ?       ;CP82551 PORT C ADDRESS 0F105H
;********************************************************************************
;*      -------- EPM CP82552 --> CP82553 PORT DEFINITION --------               *
;*              CP82552: 0F10EH ----> CP82552 CONTROL PORT ADDRESS              *
;*              SPOONDL: 0F108H ----> CP82552 PORT A ADDRESS                    *
;*              SPOONAL: 0F10AH ----> CP82552 PORT B ADDRESS                    *
;*              MONITOR: 0F10CH ----> CP82552 PORT C ADDRESS                    *
;*              CP82553: 0F10FH ----> CP82553 CONTROL PORT ADDRESS              *
;*              SPOONDH: 0F109H ----> CP82553 PORT A ADDRESS                    *
;*              SPOONAH: 0F10BH ----> CP82553 PORT B ADDRESS                    *
;*              MONITOR1: 0F10DH ----> CP82553 PORT C ADDRESS                   *
;********************************************************************************
        ORG     010EH
;-------------------------------------------------
; CP82552 & CP82553 CONTROL CODE
;-------------------------------------------------
CP82552 DB      ?       ;CP82552 CONTROL PORT ADDRESS 0F10EH
CP82553 DB      ?       ;CP82553 CONTROL PORT ADDRESS 0F10FH
        ;
        ORG     0108H
SPOONDL DB      ?       ;CP82552 PORT A ADDRESS 0F108H
SPOONDH DB      ?       ;CP82553 PORT A ADDRESS 0F109H
SPOONAL DB      ?       ;CP82552 PORT B ADDRESS 0F10AH
SPOONAH DB      ?       ;CP82553 PORT B ADDRESS 0F10BH
        ;
MONITOR DB      ?       ;CP82552 PORT C ADDRESS 0F10CH
MONITOR1        DB      ?       ;CP82553 PORT C ADDRESS 0F10DH
                        ;MONITOR1 USE IN FUTURE
;------------------------------------------------------
        ORG     0180H   ;EMM I/O PORT
S2AP    DW      ?       ;F180H - [S2A31-S2A16]
S3AP    DW      ?       ;F182H - [S3A31-S3A16]
S4AP    DW      ?       ;F184H - [S4A31-S4A16]
MIOCS0  DB      ?       ;F186H
MIOCS1  DB      ?       ;F187H
WRPRTP  DW      ?       ;F188H
S1AP    DW      ?       ;F18AH
ENEMMP  DW      ?       ;F18CH
MIOCS2  DB      ?       ;F18EH
MIOCS3  DB      ?       ;F18FH
;------------------------------------------------------
        ORG     0180H   ;HEMM I/O PORT
HS2A    DW      ?       ;F180H - [S2A31_S2A18]
HS3A    DW      ?       ;F182H - [S3A31-S3A18]
HS4A    DW      ?       ;F184H - [S4A31-S4A18]
HMIOCS0  DB      ?       ;F186H
HMIOCS1  DB      ?       ;F187H
HS1A    DW      ?       ;F188H
HSPNAH  DB      ?       ;F18AH
HSPNAL  DB      ?       ;F18BH
HCNTL   DB      ?       ;F18CH
HMOSD   DB      ?       ;F18DH
HMIOCS2  DB      ?       ;F18EH
HMIOCS3  DB      ?       ;F18FH
    ORG 0200H   ;LAM I/O PORT
AMHP     DB      ?       ;F200H - [A23A-A16A].
AHHP     DB      ?       ;F201H - [A31A-A24A]
ALLP     DB      ?       ;F202H - [ A7A -A0A]
AMLP     DB      ?       ;F203H - [A15A -A8A]
TRIGP    DB      ?       ;F204H - [ TRIG1:5,NEBP_E,TRACEND,NSTOPEP]
SPAFG    DB      ?       ;F205H - [SPA FLG,TMOVER,OVER,RBWFG,TMPHASE]
IOCS0    DB      ?       ;F206H
IOCS1    DB      ?       ;F207H
;
RAMCS   DB      ?       ;F208H - [ RAMCS0:7]
ENPIN1  DB      ?       ;F209H - CONTROL PINS
PCNTAB  DB      ?       ;F20AH - [PCNTA(0:3),PCNTB(0:3)]
PCNTCD  DB      ?       ;F20BH - [PCNTC(0:3),PCNTD(0:3)]
PDLY    DB      ?       ;F20CH - [PDLY(0:3)]
ENPIN2  DB      ?       ;F20DH - CONTROL PINS
IOCS2   DB      ?       ;F20EH
IOCS3   DB      ?       ;F20FH
;
DLLP    DB      ?       ;F210H - [D7D-D0D]
DMLP    DB      ?       ;F211H - [D15D-D8D]
TPRLDL  EQU     TMLP    ;PRELOAD LOW
TMLP    DB      ?       ;F212H - [TM0-7]
TPRLDH  EQU     TMHP    ;PRELOAD HIGH
TMHP    DB      ?       ;F213H - [TM8-15]
DMHP    DB      ?       ;F214H - [D23D -D16D]
COVD    DB      ?       ;F215H - [WD0-3]
IOCS4   DB      ?       ;F216H
IOCS5   DB      ?       ;F217H
;
ENPIN3  DB      ?       ;F218H - CONTROL PINS.
ENPIN4  DB      ?       ;F219H - CONTROL PINS
ENPIN7  DB      ?       ;F21AH - CONTROL PINS
ENPIN5  DB      ?       ;F21BH - CONTROL PINS
ENPIN8  DB      ?       ;F21CH -
ENPIN6  DB      ?       ;F21DH - CONTROL PINS
IOCS6   DB      ?       ;F21EH
IOCS7   DB      ?       ;F21FH
;
        DB      ?       ;F220H -
        DB      ?       ;F221H -
        DB      ?       ;F222H -
        DB      ?       ;F223H -
        DB      ?       ;F224H -
        DB      ?       ;F225H -
        DB      ?       ;F226H -
        DB      ?       ;F227H -
;
E123TC0 DB      ?       ;F228H - 8254 T/C 0.
        DB      ?       ;F229H -
E123TC1 DB      ?       ;F22AH - 8254 T/C 1.
        DB      ?       ;F22BH -
E123TC2 DB      ?       ;F22CH - 8254 T/C 2.
        DB      ?       ;F22DH -
IOCS10  DB      ?       ;F22EH - 8254 MODE CNTL.
        DB      ?       ;F22FH -
;
E4DLTC0 DB      ?       ;F230H - 8254 T/C 0.
        DB      ?       ;F231H -
E4DLTC1 DB      ?       ;F232H - 8254 T/C 1.
        DB      ?       ;F233H -
E4DLTC2 DB      ?       ;F234H - 8254 T/C 2.
        DB      ?       ;F235H -
IOCS12  DB      ?       ;F236H - 8254 MODE CNTL.
        DB      ?       ;F237H -
;
TIMTC0  DB      ?       ;F238H - 8254 T/C 0.
        DB      ?       ;F239H -
TIMTC1  DB      ?       ;F23AH - 8254 T/C 1.
        DB      ?       ;F23BH -
TIMTC2  DB      ?       ;F23CH - 8254 T/C 2.
        DB      ?       ;F23DH -
IOCS14  DB      ?       ;F23EH - 8254 MODE CNTL.
        DB      ?       ;F23FH -
;
;
IO      ENDS
