xor cx,cx
mov ax,0
cmp cx,50000
jb l2
l2:
inc ax
inc cx
CALL DELAY
MOV AL,00000101B ;PC2置1 (LCD E端=1)
OUT DX, AL
NOP
CALL DELAY
MOV AL, 00000001B ;PC2置0,(LCD E端=0)
OUT DX, AL
NOP
CALL DELAY
RET
DATA_SETUP ENDP
DELAY PROC
PUSH CX
PUSH DX
MOV CX,0FFFH
X1: LOOP X1
POP DX
POP CX
RET
DELAY ENDP
CODE ENDS
END START
补充
data——
ergjklndb
MOV OUT DELET
HOME
TAB