汇编程序24:检测点9.3
1 assume cs:code 2 3 code segment 4 start: 5 mov ax,2000h 6 mov ds,ax 7 mov bx,0 8 s: 9 mov cl,[bx] 10 mov ch,0 11 inc cx 12 inc bx 13 loop s 14 ok: 15 dec bx 16 mov dx,bx 17 mov ax,4c00h 18 int 21h 19 code ends 20 21 end
1 assume cs:code 2 3 code segment 4 start: 5 mov ax,2000h 6 mov ds,ax 7 mov bx,0 8 s: 9 mov cl,[bx] 10 mov ch,0 11 inc cx 12 inc bx 13 loop s 14 ok: 15 dec bx 16 mov dx,bx 17 mov ax,4c00h 18 int 21h 19 code ends 20 21 end