CODE SEGMENT
ASSUME CS:CODE
INTPORT1 EQU 0FF80H
INTPORT2 EQU 0FF81H
INTQ4 EQU INTREEUP4
INTQ5 EQU INTREEUP5
INTQ6 EQU INTREEUP6
TCONTR0 EQU 0043H
TCON0 EQU 0040H
TCON1 EQU 0041H
IOCONPT EQU 0FF2BH
IOCPT EQU 0FF2AH
IOBPT EQU 0FF29H
IOAPT EQU 0FF28H
PA EQU 0FF20H ;字位口
PB EQU 0FF21H ;字形口
PC EQU 0FF22H ;键入口
ADPORT EQU 0FE00H
ORG 12D0H
START: JMP START0
BUF DB ?,?,?,?,?,?
intcnt db ?
intcnt1 dw ?
intcnt2 dw ?
WEIKONG DB ?
data1 db 0c0h,0f9h,0a4h,0b0h,99h,92h,82h,0f8h,80h,90h,88h,83h,0c6h
db 0a1h,86h,8eh,0ffh,0ch,89h,0deh,0c7h,8ch,0f3h,0bfh,8FH ,0CEH,91H
START0: CLD
CALL WRINTVER
MOV DX ,0FF2BH
MOV AL, 81H
OUT DX, AL ;8255初始化
ASSUME CS:CODE
INTPORT1 EQU 0FF80H
INTPORT2 EQU 0FF81H
INTQ4 EQU INTREEUP4
INTQ5 EQU INTREEUP5
INTQ6 EQU INTREEUP6
TCONTR0 EQU 0043H
TCON0 EQU 0040H
TCON1 EQU 0041H
IOCONPT EQU 0FF2BH
IOCPT EQU 0FF2AH
IOBPT EQU 0FF29H
IOAPT EQU 0FF28H
PA EQU 0FF20H ;字位口
PB EQU 0FF21H ;字形口
PC EQU 0FF22H ;键入口
ADPORT EQU 0FE00H
ORG 12D0H
START: JMP START0
BUF DB ?,?,?,?,?,?
intcnt db ?
intcnt1 dw ?
intcnt2 dw ?
WEIKONG DB ?
data1 db 0c0h,0f9h,0a4h,0b0h,99h,92h,82h,0f8h,80h,90h,88h,83h,0c6h
db 0a1h,86h,8eh,0ffh,0ch,89h,0deh,0c7h,8ch,0f3h,0bfh,8FH ,0CEH,91H
START0: CLD
CALL WRINTVER
MOV DX ,0FF2BH
MOV AL, 81H
OUT DX, AL ;8255初始化