在PC中用汇编实现:a>b&&c=d,结果放在bool中
答案:1 悬赏:40 手机版
解决时间 2021-05-06 13:00
- 提问者网友:且恨且铭记
- 2021-05-05 14:37
在PC中用汇编实现:a>b&&c=d,结果放在bool中
最佳答案
- 五星知识达人网友:纵马山川剑自提
- 2021-05-05 14:51
assume cs:code, ds:datas
datas segment
a dw 5
b dw 2
c dw 3
d dw 4
bool db ?
datas ends
code segment
start:
mov ax, datas
mov ds, ax
xor ax, ax
mov bx, a
cmp bx, b
db 0fh,9fh,0c4h
mov bx, c
cmp bx, d
db 0fh,94h,0c0h
and ah, al
mov bool, ah
mov ax, 4c00h
int 21h
code ends
end start
datas segment
a dw 5
b dw 2
c dw 3
d dw 4
bool db ?
datas ends
code segment
start:
mov ax, datas
mov ds, ax
xor ax, ax
mov bx, a
cmp bx, b
db 0fh,9fh,0c4h
mov bx, c
cmp bx, d
db 0fh,94h,0c0h
and ah, al
mov bool, ah
mov ax, 4c00h
int 21h
code ends
end start
我要举报
如以上回答内容为低俗、色情、不良、暴力、侵权、涉及违法等信息,可以点下面链接进行举报!
点此我要举报以上问答信息
大家都在看
推荐资讯