用中文翻译下这个程序prompt1 byte cr,lf,"please input grade1:",0prompt2 byte cr,lf,"please input percent1:",0prompt3 byte cr,lf,"please input grade2:",0prompt4 byte cr,lf,"please input percent2:",0prompt5 byte cr,lf,"please

来源:学生作业帮助网 编辑:作业帮 时间:2024/11/08 19:45:04

用中文翻译下这个程序prompt1 byte cr,lf,"please input grade1:",0prompt2 byte cr,lf,"please input percent1:",0prompt3 byte cr,lf,"please input grade2:",0prompt4 byte cr,lf,"please input percent2:",0prompt5 byte cr,lf,"please
用中文翻译下这个程序
prompt1 byte cr,lf,"please input grade1:",0
prompt2 byte cr,lf,"please input percent1:",0
prompt3 byte cr,lf,"please input grade2:",0
prompt4 byte cr,lf,"please input percent2:",0
prompt5 byte cr,lf,"please input grade3:",0
prompt6 byte cr,lf,"please input percent3:",0
number1 dword ?
number2 dword ?
number3 dword ?
num1 dword ?
num2 dword ?
cent1 dword ?
cent2 dword ?
grade1 byte 20 DUP(?)
grade2 byte 20 DUP(?)
grade3 byte 20 DUP(?)
percent1 byte 20 DUP(?)
percent2 byte 20 DUP(?)
percent3 byte 20 DUP(?)
answer byte cr,lf,"the sorce is :",0
score byte 11 DUP(?),cr,lf,0
.CODE ; start of main program code
_start:
output prompt1
input grade1,20
atod grade1
mov number1,eax
output prompt2
input percent1,20
atod percent1
mov cent1,eax
output prompt3
input grade2,20
atod grade2
mov number2,eax
output prompt4
input percent2,20
atod percent2
mov cent2,eax
output prompt5
input grade3,20
atod grade3
mov number3,eax
output prompt6
input percent3,20
atod percent3
imul eax,number3
mov num1,eax
mov eax,cent2
imul eax,number2
mov num2,eax
mov eax,cent1
imul eax,number1
add eax,num2
add eax,num1
mov ecx,100
cdq
idiv ecx
output answer
dtoa score,eax
output score

用中文翻译下这个程序prompt1 byte cr,lf,"please input grade1:",0prompt2 byte cr,lf,"please input percent1:",0prompt3 byte cr,lf,"please input grade2:",0prompt4 byte cr,lf,"please input percent2:",0prompt5 byte cr,lf,"please
prompt1字节cr,lf",请投入 grade1":0 prompt2字节cr,lf",请投入percent1":0 prompt3字节 cr,lf",请投入grade2":0 prompt4 字节cr,lf",请投入percent2":0 prompt5字节cr,lf",请投入 grade3":0 prompt6字节cr,lf",请投入percent3":0 number1dword吗 number2 dword吗?number3 dword num1 dword吗?num2 dword吗 cent1 dword吗?cent2 dword吗 grade1字节20 DUP(?)grade2字节 20 DUP(?)grade3字节20 DUP(?)percent1字节20 DUP(?)percent2字节20 DUP(?)percent3字节20 DUP(?)回答字节cr lfsorce存在:0得分字节 11开(?),cr,lf,0 .CODE;主要程序代码_start的 出发:输出 prompt1输入 grade1,20 atodgrade1 movnumber1,eax输出 prompt2输入 percent1,20 atodpercent1 movcent1,eax 输出 prompt3输入 grade2,20 atodgrade2 movnumber2,eax输出 prompt4输入 percent2,20 atodpercent2 movcent2,eax 输出 prompt5输入 grade3,20 atodgrade3 movnumber3,eax输出 prompt6输入 percent3,20 atodpercent3 imul eaxnumber3 movnum1 eaxmov eaxcent2 imuleax number2mov num2eax moveax cent1imul eaxnumber1加eax num2加eax num1mov ecx,100cdq idivecx 输出回答dtoa得 分,eax输出得分