看板 Programming 關於我們 聯絡資訊
.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
costbook:好像不是8051 06/07 20:39
FaXin:是嗎 <囧> 06/07 20:48
final01:這很明顯是x86~那幾行是巨集~功能是可以印出字串 06/07 20:57