|
马上注册,结交更多好友,享用更多功能^_^
您需要 登录 才可以下载或查看,没有账号?立即注册
x
- (1)补全下面的程序,统计 F000:0 处 32 个字节中,大小在[32,128]的数据个数。
- assume cs:code
- code segment
- start: mov ax,0f000h
- mov ds,ax
-
- mov bx,0
- mov dx,0
- mov cx,32
- s: mov al,[bx]
- cmp al,32
- jb s0 ;[32,128]是闭区间,包括两端点的值
- cmp al,128
- ja s0
- inc dx
- s0: inc bx
- loop s
- code ends
- (2)补全下面的程序,统计 F000:0 处 32 个字节中,大小在(32,128)的数据个数。
- assume cs:code
- code segment
- start: mov ax,0f000h
- mov ds,ax
-
- mov bx,0
- mov dx,0
- mov cx,32
- s: mov al,[bx]
- cmp al,32
- jna s0 ;(32,128)是开区间,不包括两端点的值
- cmp al,128
- jnb s0
- inc dx
- s0: inc bx
- loop s
- code ends
- end start
复制代码 |
|