马上注册,结交更多好友,享用更多功能^_^
您需要 登录 才可以下载或查看,没有账号?立即注册
x
ASSUME CS:T7,DS:DATA
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,15257,17800
DATA ENDS
TABLE SEGMENT
DB 21 DUP ('0123456789ABCDEF')
TABLE ENDS
T7 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,DS:[BX];YH
MOV ES:[0H],AX
MOV AX,DS:[BX+2];YL
MOV ES:[2H],AX
ADD SI,84
MOV AX,DS:[BX+SI];SH
MOV ES:[5H],AX
MOV AX,DS:[BX+SI+2];SL
MOV ES:[7H],AX
ADD SI,84
MOV AX,DS:[BX+SI];NUM
MOV ES:[0AH],AX
ADD SI,42
MOV AX,DS:[BX+84]
MOV DX,DS:[BX+86]
DIV WORD PTR DS:[BX+168]
MOV ES:[0DH],AX
ADD BX,4
MOV SI,0
LOOP S
MOV AX,4C00H
INT 21H
T7 ENDS
END START
大家觉得代码有错吗?DEBUG结果devide overflow
|