Load the MBR to 7C00h and then jump over.
I ran it under DOS but it failed. Is there any expert who can tell me why?
.model tiny
.code
org 100h
start: jmp begin
begin:
CLI
xor ax,ax
mov ss,ax
MOV SP,7C00h
MOV SI,SP
PUSH AX
POP ES
PUSH AX
POP DS
STI
CLD
mov bx,7C00h
mov ah,02h
mov al,01h
mov cx,1
mov dl,80h
mov dh,0
int 13h
;JMP cs:7c00h
db 0EAH,0,7CH,0,0
end start
I ran it under DOS but it failed. Is there any expert who can tell me why?
.model tiny
.code
org 100h
start: jmp begin
begin:
CLI
xor ax,ax
mov ss,ax
MOV SP,7C00h
MOV SI,SP
PUSH AX
POP ES
PUSH AX
POP DS
STI
CLD
mov bx,7C00h
mov ah,02h
mov al,01h
mov cx,1
mov dl,80h
mov dh,0
int 13h
;JMP cs:7c00h
db 0EAH,0,7CH,0,0
end start
http://beiyu.bokee.com
