汇编出错your program cause a divide overflow error...
代码:section .text
global main
org 100h
main:
mov ax, cs
mov ds, ax
mov ah, 09H ;9号调用
mov dx,msge
int 21h
JMP READ
MOV AX,0201H ;(用功能号2读1个扇区)
MOV BX,B0 ;把读出的数据放入缓冲区的地址为CS:1000
MOV DX,0080H ;(指定第一物理盘的0磁头)
MOV CX,0001H ;(读0柱面,1扇区)
INT 13H ;读MBR区到内存
MOV AH,09H
MOV DX,B0
INT 21H
MOV AH,4CH
INT 21H
READ: PUSH CS
POP ES
MOV BX,B0
msge:
db "read the message of MBR to the memory!",0ah,0dh,"$"
B0: DB 512,"$"
运行时情况:
谁能告诉我这是怎么回事啊????
[ 本帖最后由 brantyou 于 2009-10-24 10:37 编辑 ]