未命名文档 - ZhouYetao

未命名文档

学号-姓名-区队-开题报告的撰写-实训报告.doc

CODE SEGMENT
ASSUME CS:CODE
START:
CLI
MOV AL,00010011B
MOV DX,208H
OUT DX,AL
MOV AL,80H
MOV DX,209H
OUT DX,AL
MOV AL,00000001B
MOV DX,209H
OUT DX,AL
MOV AX,0
MOV DS,AX
MOV AX,OFFSET P1
MOV SI,0200H
MOV [SI],AX
MOV AX,SEG P1
ADD SI,2
MOV [SI],AX
MOV AX,OFFSET P2
ADD SI,2
MOV [SI],AX
MOV AX,SEG P2
ADD SI,2
MOV [SI],AX
MOV AX,10000000B
MOV DX,203H
OUT DX,AL
STI
MOV AL,10000000B
K: MOV DX,200H
OUT DX,AL
MOV CX,0FFH
KK: LOOP KK
ROR AL,1
JMP K

P1:MOV AL,11110000B
MOV DX,200H
OUT DX,AL
MOV CX,0FFH
MM:LOOP MM
MOV AL,00100000B
MOV DX,208H
OUT DX,AL
IRET

P2:MOV AL,1101111B
MOV DX,221H
OUT DX,AL
MOV CX,0FFH
MM1:LOOP MM1
MOV AL,00100000B
MOV DX,208H
OUT DX,AL
IRET
CODE ENDS
END START

Leave a Comment

@author:ZhouYetao
© 2020 Copyright.  | Power by Mijiu                                                                                               
本站已安全运行 902 天