MODE equ 80h PORTA equ 0ffd8h ;8255 并行口 A PCTL equ 0ffdbh ;8255 控制字
code segment assume cs:code
org 1000h
Start: mov dx,PCTL mov al,MODE out dx,al
mov dx,PORTA
Play: mov al,0 out dx,al call Delay
mov al,255 out dx,al call Delay
jmp Play
Delay: mov cx,100 loop $ ret
code ends end Start |