汇编语言作业 实现W=(3X+6Y)*4-8Z,设X=5, Y=3, Z=19

2024-12-14 23:15:54
推荐回答(1个)
回答1:

mov ax,5
mov cx,3
mul cx
mov bx,ax
mov ax,3
mov cx,6
mul cx
add ax,bx
mov cx,4
mul cx
mov bx,ax
mov ax,19
mov cx,8
mul cx
neg ax
add ax,bx
;ax is the final answer right now, ax=0FFECH=-20D