汇编问题,王爽的汇编第八章实验7
assumecs:codesg,es:table,ss:stackdatasegmentdb'1975','1976','1977','1978','1979','198...
assume cs:codesg, es:table, ss:stack
data segment
db '1975', '1976', '1977', '1978', '1979', '1980', '1981', '1982'
db '1983', '1984', '1985', '1986', '1987', '1988', '1989', '1990'
db '1991', '1992', '1993', '1994', '1995'
dd 16, 22, 382, 1356, 2390, 8000, 16000, 24486, 50065, 97479, 140417
dd 197514, 345980, 590827, 803530, 1183000, 1843000, 2759000, 3753000
dd 4649000,5937000
dw 3, 7, 9, 13, 28, 38, 130, 220, 476, 778, 1001, 1442, 2258, 2793
dw 4037, 5635, 8226, 11542, 14430, 15257, 17800
data ends
table segment
db 21 dup ('year summ ne ?? ')
table ends
stack segment
dw 0, 0, 0, 0, 0, 0, 0, 0
stack ends
codesg segment
start:
mov ax,data
mov ds,ax
mov si,0
mov di,0
mov ax,stack
mov ss,ax
mov sp,10h
mov ax,table
mov es,ax
mov bx,0
mov cx,21
s1:
mov ax,ds:[si]
mov es:[bx],ax
mov ax,ds:[si+2]
mov es:[bx+2],ax
mov ax,ds:[si+84]
mov es:[bx+5],ax
mov dx,ds:[si+86]
mov es:[bx+7],dx
push cx
mov cx,ds:[di+168]
mov es:[bx+0ah],cx
div cx
mov es:[bx+0dh],ax
pop cx
add si,4
add di,2
add bx,10h
loop s1
mov ax,4c00h
int 21h
codesg ends
end start怎么回事?只有年份显示了 其他的不对啊!!求解!! 展开
data segment
db '1975', '1976', '1977', '1978', '1979', '1980', '1981', '1982'
db '1983', '1984', '1985', '1986', '1987', '1988', '1989', '1990'
db '1991', '1992', '1993', '1994', '1995'
dd 16, 22, 382, 1356, 2390, 8000, 16000, 24486, 50065, 97479, 140417
dd 197514, 345980, 590827, 803530, 1183000, 1843000, 2759000, 3753000
dd 4649000,5937000
dw 3, 7, 9, 13, 28, 38, 130, 220, 476, 778, 1001, 1442, 2258, 2793
dw 4037, 5635, 8226, 11542, 14430, 15257, 17800
data ends
table segment
db 21 dup ('year summ ne ?? ')
table ends
stack segment
dw 0, 0, 0, 0, 0, 0, 0, 0
stack ends
codesg segment
start:
mov ax,data
mov ds,ax
mov si,0
mov di,0
mov ax,stack
mov ss,ax
mov sp,10h
mov ax,table
mov es,ax
mov bx,0
mov cx,21
s1:
mov ax,ds:[si]
mov es:[bx],ax
mov ax,ds:[si+2]
mov es:[bx+2],ax
mov ax,ds:[si+84]
mov es:[bx+5],ax
mov dx,ds:[si+86]
mov es:[bx+7],dx
push cx
mov cx,ds:[di+168]
mov es:[bx+0ah],cx
div cx
mov es:[bx+0dh],ax
pop cx
add si,4
add di,2
add bx,10h
loop s1
mov ax,4c00h
int 21h
codesg ends
end start怎么回事?只有年份显示了 其他的不对啊!!求解!! 展开
华芯测试
2024-09-01 广告
2024-09-01 广告
电学测试台是深圳市华芯测试科技有限公司的核心设备之一,它集成了高精度测量仪器与自动化控制系统,专为半导体芯片、电子元件及模块的电性能检测而设计。该测试台能够迅速、准确地完成电压、电流、电阻、电容及频率等关键参数的测试,确保产品质量符合行业标...
点击进入详情页
本回答由华芯测试提供
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询