Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- org 7C00h
- use16
- cli
- mov ax, 0
- mov es, ax
- mov ds, ax
- mov ss, ax
- mov sp, 7C00h
- sti
- mov ax, 0003h
- int 10h
- mov ax, 1301h
- mov bp, stroka
- mov dx, 0000h
- mov cx, 21
- mov bx, 000eh
- int 10h
- mov ah, 42h
- mov si, lba
- mov dl, 80h
- int 13h
- jc error
- jmp 0000:7E00h
- error:
- mov ax, 1301h
- mov bp, err0
- mov dx, 0100h
- mov cx, 6
- mov bx, 000eh
- int 10h
- jmp $
- err0 db 'Error!'
- stroka db 'Ok, MBR loaded again!'
- lba:
- db 10h
- db 00h
- dw 0001h
- dd 00007e00h
- dq 0000000000000001h
- dq 0000000000000000h
- times 510 - ($ - $$) db 0
- db 0x55,0xAA
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement