Workstate on disk I/O rework
This commit is contained in:
parent
79a86bad49
commit
e26adff688
2 changed files with 88 additions and 82 deletions
19
boot/mbr.asm
19
boot/mbr.asm
|
@ -1,6 +1,7 @@
|
|||
cpu 8086
|
||||
|
||||
%define seg 0x060
|
||||
%define seg 0
|
||||
%define off 0x700
|
||||
|
||||
org 0x7C00 - (seg << 4)
|
||||
|
||||
|
@ -16,24 +17,12 @@ init: cli
|
|||
.retry: mov ax, 0x0208
|
||||
mov cx, 2
|
||||
mov dh, 0
|
||||
mov bx, 0x100
|
||||
mov bx, off
|
||||
|
||||
int 0x13
|
||||
jc .retry
|
||||
|
||||
xor di, di
|
||||
mov ax, 0x18CD
|
||||
stosw
|
||||
int 0x12
|
||||
mov cl, 6
|
||||
shl ax, cl
|
||||
stosw
|
||||
mov al, 2
|
||||
stosb
|
||||
mov ax, 0x18CD
|
||||
stosw
|
||||
|
||||
jmp seg:0x100
|
||||
jmp seg:off
|
||||
|
||||
times (0x1BE - ($-$$)) db 0
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue