一、 补全下面的程序,统计F000:0处32个字节中,大小[32, 128]的数据的个数。
mov ax, 0f000h
mov ds, ax
mov bx, 0
mov dx, 0
mov cx, 32
s: mov al, [bx]
cmp al, 32
__________
cmp al, 128
__________
inc dx
s0: inc bx
loop s
解答
mov ax, 0f000h
mov ds, ax
mov bx, 0
mov dx, 0
mov cx, 32
s: mov al, [bx]
cmp al, 32
jna s0
cmp al, 128
jnb s0
inc dx
s0: inc bx
loop s
二、 补全下面的程序,统计F000:0处32个字节中,大小[32, 128]的数据的个数。
mov ax, 0f000h
mov ds, ax
mov bx, 0
mov dx, 0
mov cx, 32
s: mov al, [bx]
cmp al, 32
__________
cmp al, 128
__________
inc dx
s0: inc bx
loop s
解答
mov ax, 0f000h
mov ds, ax
mov bx, 0
mov dx, 0
mov cx, 32
s: mov al, [bx]
cmp al, 32
ja s0
cmp al, 128
jb s0
inc dx
s0: inc bx
loop s
网友评论