我学习的32位汇编语言程序设计,程度还没有那么深,函数result=x-2y+4z它基本格式不是test。我写了个程序,但结果不理想,计算错误,请指点。它基本格式不是test。是:
.386
.model flat ,stdcall
include \masm32\include\io32.inc
.stack
.data
x byte "Input number x: ",0
y byte "Input number y: ",0
z byte "Input number z: ",0
result byte "the result is: "
.code
start:
WriteString x
ReadSDecDword eax
WriteString y
ReadSDecDword ebx
WriteString z
ReadSDecDword ecx
imul ebx,2
imul ecx,4
neg ebx
add eax,ebx
add eax,ecx
WriteString result
WriteSDecDword eax
ret
end start
但是程序运行结果不理想。请指出错误