assume cs:codesg,ds:datasgdatasg segmentdb '1975','1976','1977','1978','1979','1980','1981','1982','1983'db '1984','1985','1986','1987','1988','1989','1990','1991','1992'db '1993','1994','1995';以上是表示21年的21个字符串dd 16,22,382,1356,2390,8000,16000,24486,50065,97479,140417,197514dd 345980,590827,803530,1183000,1843000,2759000,3753000,4649000,5937000;以上是表示21年公司总收入的21个dword型数据dw 3,7,9,13,28,38,130,220,476,778,1001,1442,2258,2793,4037,5635,8226dw 11542,14430,15257,17800;以上是表示21年公司雇员认输的21个word型数据datasg endstable segmentdb 21 dup('year summ ne ?? ')table endscodesg segmentstart:mov ax,datasg mov ds,ax mov ax,table mov es,ax mov bx,0000h mov si,0000h mov di,0000h mov cx,0015h s: mov al,[bx] mov es:[di],al mov al,[bx+1] mov es:[di+1],al mov al,[bx+2] mov es:[di+2],al mov al,[bx+3] mov es:[di+3],al ;以上8句的作用是存放年份 mov ax,[bx+54h] ;第一个'年收入'的段基址为54H mov dx,[bx+56h] mov es:[di+05h],ax mov es:[di+07h],dx ;以上4句的作用是存放公司总收入 mov ax,[si+0a8h] ;第一个'人数'的段基址为0A8H mov es:[di+0ah],ax ;以上2句是存放公司的人数 mov ax,[bx+54h] div word ptr ds:[si+0a8h] mov es:[di+0dh],ax ;以上3句是存放人均收入 add bx,0004h add si,0002h add di,0010h ;以上3句是为下一次循环时存放数据做准备 loop s mov ax,4c00hint 21hcodesg endsend start