〔汇编〕高手救急啊!帮忙解两道题可以用追加50分!!!!!!
答案:1 悬赏:10 手机版
解决时间 2021-01-31 03:20
- 提问者网友:心牵心
- 2021-01-30 10:06
〔汇编〕高手救急啊!帮忙解两道题可以用追加50分!!!!!!
最佳答案
- 五星知识达人网友:你可爱的野爹
- 2021-01-30 10:42
.model
.stack
.data
score db 70.86.99.45.60,100,....:全班成绩数组
count equ $-score:总人数
scoreE db? ;0-59
scoreD db? ;60-69
scoreC db? ;70-79
scoreB db? ;80-89
scoreA db? ;90-99
.code
.startup
lea ba,score
mov cx,count
again:
mov al,[bx]
loog again
.exit 0
tjrs proc
cmpal,60
jae next 0
inc scoreE
jmp next4
next0:
cmpal,70
jae next 1
inc scoreD
jmp next4
next1:
cmpal,80
jae next 2
inc scoreC
jmp next4
next2:
cmpal,90
jae next 3
inc scoreB
jmp next4
NEXT:inc scoreA
next4:ret
jtjrs endp
end
.stack
.data
score db 70.86.99.45.60,100,....:全班成绩数组
count equ $-score:总人数
scoreE db? ;0-59
scoreD db? ;60-69
scoreC db? ;70-79
scoreB db? ;80-89
scoreA db? ;90-99
.code
.startup
lea ba,score
mov cx,count
again:
mov al,[bx]
loog again
.exit 0
tjrs proc
cmpal,60
jae next 0
inc scoreE
jmp next4
next0:
cmpal,70
jae next 1
inc scoreD
jmp next4
next1:
cmpal,80
jae next 2
inc scoreC
jmp next4
next2:
cmpal,90
jae next 3
inc scoreB
jmp next4
NEXT:inc scoreA
next4:ret
jtjrs endp
end
我要举报
如以上问答信息为低俗、色情、不良、暴力、侵权、涉及违法等信息,可以点下面链接进行举报!
大家都在看
推荐资讯