Add attempt for drive table to kernel
This commit is contained in:
parent
7d7b4a89e6
commit
d23bba5bdd
2 changed files with 59 additions and 7 deletions
|
@ -31,28 +31,30 @@ isr_error:
|
|||
isr_return:
|
||||
iret
|
||||
|
||||
%include "drive.asm"
|
||||
|
||||
init:
|
||||
mov ax, cs
|
||||
mov ds, ax
|
||||
mov es, ax
|
||||
|
||||
mov di, kernel_end
|
||||
call drive_setup
|
||||
|
||||
mov dx, isr_dos_main
|
||||
mov ax, 0x2521
|
||||
pushf
|
||||
push cs
|
||||
call isr_dos_main
|
||||
|
||||
mov cx, WORD [0x80]
|
||||
xor ch, ch
|
||||
mov si, 0x81
|
||||
.loop:
|
||||
lodsb
|
||||
call putc
|
||||
loop .loop
|
||||
mov dl, 0x37
|
||||
mov ah, 0x02
|
||||
int 0x21
|
||||
|
||||
cli
|
||||
.halt:
|
||||
hlt
|
||||
jmp .halt
|
||||
|
||||
|
||||
kernel_end:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue