[問題] 8051程式的問題...
.MODEL SMALL
.STACK
.DATA
port1 equ 3e0h
port2 equ 3e4h
port3 equ 3e8h
table db 40h,79h,24h,30h,19h,12h,03h,58h,00h
strg1 db 'program normal end',10,13,'$'
strg2 db 'No switch set [ON]',10,13,'$'
[ showstr MACRO buffer <==請問這四行的功用是什麼0.0???
lea dx,buffer
mov ah,09
int 21h ]
ENDM
.CODE
start: mov ax,@data
mov ds,ax
lea bx,table
mov dx,port1
in al,dx
mov cl,8
lp1:
shr al,1
jnc pas1
mov ah,09
sub ah,cl
mov al,ah
xlat table
out dx,al
showstr strg1
jmp exit
pas1:
loop lp1
showstr strg2
exit:
mov ah,4ch
int 21h
end start
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 61.229.194.232
推
06/07 20:39, , 1F
06/07 20:39, 1F
→
06/07 20:48, , 2F
06/07 20:48, 2F
推
06/07 20:57, , 3F
06/07 20:57, 3F
討論串 (同標題文章)
完整討論串 (本文為第 1 之 3 篇):
Programming 近期熱門文章
PTT數位生活區 即時熱門文章