Implement file descriptor table and CON as file descriptor

This commit is contained in:
Nero 2020-06-28 19:00:49 +02:00
parent 65564b78af
commit f9b180ea57
3 changed files with 63 additions and 6 deletions

View file

@ -2,8 +2,10 @@
org 0x500
jmp 0:(init+0x7C00-$$)
%include "inc/bpb.asm"
%include "inc/mbr.asm"
%include "kernel/fd.asm"
%include "kernel/con.asm"
%include "inc/bpb.asm"
%include "inc/mbr.asm"
; Far call via interrupt vector
%macro intcall 1
@ -217,10 +219,11 @@ intlp: movsw
stosw
loop intlp
; print banner to indicate we are booted
mov si, banner
mov ah, 9
int 0x21
; print banner
mov dx, banner
mov cx, 13
mov bx, 0
call con_write
call dnconv
mov al, dl