div 内存地址的时候报错了,编译不了
assume cs:code, ds:datadata segment
db '2019', '2020', '2021', '2022', '2023'
dd 20000, 30000, 50000, 120000, 1100000
dw 20, 15, 25, 60, 110
dw 5 dup(0)
data ends
code segment
start : mov ax, data
mov ds, ax
mov bx, 0
mov bp, 0
mov si, 20
mov cx, 5
s : mov dx, ds:
mov ax, ds:
div
mov , ax
add bx, 2
add bp, 4
loop s
code ends
end start
div那一行报错了,删除就能编译,加上就不行 div一个word还是div一个byte ?
页:
[1]