ASSUME DS:DATA,CS:CODE
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
DD 3753000,4649000,5937000
DW 3,7,9,13,28,38,130,220,476,778,1001,1442,2258,2793,4037
DW 5635,8226,11542,14430,15257,17800
DATA ENDS
TABLE SEGMENT
DB 21 DUP ('year summ ne ?? ')
TABLE ENDS
CODE SEGMENT
START: MOV AX,DATA
MOV DS,AX
MOV AX,TABLE
MOV ES,AX
MOV BX,0
MOV SI,0
MOV DI,0
MOV CX,21
S: MOV AX,[BX]
MOV ES:[DI],AX
MOV AX,[BX+2]
MOV ES:[DI+2],AX
MOV AX,[BX+84]
MOV ES:[DI+5],AX
MOV DX,[BX+86]
MOV ES:[DI+7],DX
MOV AX,[SI+168]
MOV ES:[DI+0AH],AX
MOV AX,ES:[DI+5]
MOV DX,ES:[DI+7]
DIV WORD PTR ES:[DI+0AH]
MOV ES:[DI+0DH],AX
ADD BX,4
ADD SI,2
ADD DI,16
LOOP S
MOV AX,4C00H
INT 21H
CODE ENDS
END START
前八章看了N遍,今天终于可以看第九章了