如何·使用db ,dd,dw?
程序代码:
assume cs:codesg data segment db '1975','1976','1977','1978','1979','1980','1981','1982','1983' db '1984','1985','1986','1987','1988','1989','1990','1991','1992' db '1993','1994','1995' dd 16,22,382,1356,2390,8000,16000,24486,50065,97479,140417,197514 dd 345980,590827,803530,1183000,1843000,2759000,3753000,4649000,5937000 dw 3,7,9,13,28,38,130,220,476,778,1001,1442,2258,2793,4037,5635,8226 dw 11542,14430,45257,17800 data ends table segment db 21 dup('year summ ne ?? ') table ends static segment dw 8 dup(8) static ends codesg segment start: mov ax,static mov ss,ax mov sp,16 mov ax,data mov ds,ax mov ax,table mov es,ax mov bx,0 mov si,0 mov di,0 mov cx,21 s0: push cx mov al,[bx+si] mov es:[bx+0],al inc si mov al,[bx+si] mov es:[bx+1],al inc si mov al,[bx+si] mov es:[bx+2],al inc si mov al,[bx+si] mov es:[bx+3],al inc si mov al,' ' mov es:[bx+4],al sub si,4 mov ax,[bx+84+si] mov es:[bx+5],ax add si,2 mov dx,[bx+84+si] mov es:[bx+7],ax add si,2 div word ptr [bx+di+168] mov es:[bx+13],ax mov al,' ' mov es:[bx+9],al mov ax,[bx+di+168] mov es:[bx+10],ax add dx,2 mov al,' ' mov es:[bx+12],al pop cx add bx,16 sub si,16 sub di,16 loop s0 codesg ends end start
为什么看了在内存在只有第一个哪21个年份的数据后面的dd和dw怎么木有啊,难道语法问题?
[ 本帖最后由 清微御宇 于 2012-10-20 15:34 编辑 ]