Workstate on disk I/O rework

This commit is contained in:
Nero 2021-12-16 12:27:23 +00:00
parent 79a86bad49
commit e26adff688
2 changed files with 88 additions and 82 deletions

View file

@ -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