永发信息网

用中文翻译下这个程序prompt1 byte cr,lf,please input grade1:,0prompt2

答案:1  悬赏:50  手机版
解决时间 2021-07-29 15:48
用中文翻译下这个程序
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字节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输出得分


我要举报
如以上问答信息为低俗、色情、不良、暴力、侵权、涉及违法等信息,可以点下面链接进行举报!
大家都在看
帮我算下生辰八字~
我女朋友身材还好要是肚子上面肥,怎么减肚子
灌篮高手全国大赛为莫斯不出劣.1?
空间那个花腾我搞不见在那空间主页那里了。。
茅箭区十堰悟空找房(武当广场店)地址是什么,
有什么P图软件可以把2张不同的照片并列展示?
体育课练蛙跳腿特别疼该怎么办
大明湖新景区在全运结束后还免费开放吗?它的
我闺蜜喜欢一男的,我该怎么做完美的神助攻
1988年9月29日的农历是多少?
电脑这个温度正常吗?
新洲区武汉童院幼儿园地址有谁知道?有点事想
迈克尔杰克逊最好?的专辑是哪一张
一个人不好玩;怎么办了
联想Y450A-IST(H)成本价大概是多少?
推荐资讯
0,3,8,15,x,48,63,…x=多少?
寻仙怎么点亮图标呀
MP4应该选哪个
怎样才能变得有勇气?
I wonder--------------.是 what dothey call
UPNP怎么打开?出口网关静态端口又怎么映射?
有一种地方专门教坏人,但没有一个警察敢对它
如何清洗邓肯TS战靴?
蒸湘区衡阳粉墨登场地址有谁知道?有点事想过
电视剧择天记励志台词,择天记落落妆画法
一个不洞事的人他自认为很懂事。一个懂事的人
三年级期末评语简短,小学生三年级期末评语用
正方形一边上任一点到这个正方形两条对角线的
阴历怎么看 ?