Fixed disk handling

This commit is contained in:
Lucia Ceionia
2023-01-04 19:36:29 -06:00
parent 9aa56cdce2
commit 43e902e83c
7 changed files with 29 additions and 7 deletions

View File

@@ -26,6 +26,7 @@ call real_hexprint
mov ax, dx
call real_hexprint
ret
global v86Test
v86Test:
mov ax, 0xb814
@@ -45,18 +46,21 @@ int 3
int 3
int 0x30 ; exit
jmp $
global v86GfxMode
v86GfxMode:
mov ax, 0x13
int 0x10
int 0x30
jmp $
global v86TextMode
v86TextMode:
mov ax, 0x3
int 0x10
int 0x30
jmp $
global v86DiskRead
v86DiskRead:
xor ax, ax ; TODO fix assuming we're in first 64k
@@ -73,6 +77,7 @@ db 0x10, 0x00 ; size, reserved
dw 0x1 ; blocks
dd 0x23000000 ; transfer buffer 0x23000
dq 0x1 ; start block
[BITS 32]
; extern void enter_v86(uint32_t ss, uint32_t esp, uint32_t cs, uint32_t eip);
global enter_v86