implement fcb search with more efficient segmenting and dta use
This commit is contained in:
parent
7c4b84ecb3
commit
f702006582
3 changed files with 128 additions and 83 deletions
|
@ -9,6 +9,7 @@ banner: db "RDOS KERNEL ", V, 0x0A, 0x0D, '$', 0x1A
|
|||
%include "kernel/char.asm"
|
||||
%include "inc/bpb.asm"
|
||||
%include "kernel/drive.asm"
|
||||
%include "kernel/fcb.asm"
|
||||
|
||||
section .text
|
||||
|
||||
|
@ -18,20 +19,22 @@ init: call rstseg
|
|||
mov dx, banner
|
||||
call puts
|
||||
|
||||
mov byte [testbuf], 5
|
||||
mov dx, testbuf
|
||||
call gets
|
||||
|
||||
mov ax, [testbuf]
|
||||
mov cx, [testbuf+2]
|
||||
mov dx, [testbuf+4]
|
||||
mov bx, [testbuf+6]
|
||||
call rstseg
|
||||
mov dx, testdta
|
||||
call setdta
|
||||
mov dx, testfcb
|
||||
call fndfst
|
||||
|
||||
int 3
|
||||
|
||||
hlt: hlt
|
||||
jmp hlt
|
||||
|
||||
section .data
|
||||
|
||||
testfcb db 0, "HELLO ","COM"
|
||||
times FCBSIZ db 0
|
||||
|
||||
section .bss
|
||||
|
||||
testbuf resb 130
|
||||
testdta resb 128
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue