Implement file search in directory
This commit is contained in:
parent
4530866130
commit
ebd356ed8e
3 changed files with 100 additions and 43 deletions
|
@ -35,13 +35,9 @@ relinit: ; print banner
|
|||
push word [version+2]
|
||||
call printf
|
||||
db "RDOS ",2,2, 0x0A, 0x0D, 0
|
||||
|
||||
push dx
|
||||
push ds
|
||||
; initialize the disk i/o
|
||||
call dinit
|
||||
pop ds
|
||||
pop dx
|
||||
|
||||
; init 21h vector
|
||||
mov word [0x21*4], int21
|
||||
mov word [0x21*4+2], cs
|
||||
; set current PSP, directly after us
|
||||
|
@ -49,15 +45,19 @@ relinit: ; print banner
|
|||
mov cl, 4
|
||||
shr ax, cl
|
||||
mov word [curpsp], ax
|
||||
; also the DTA
|
||||
mov bx, dta
|
||||
call setdta
|
||||
; set current drive to boot drive
|
||||
mov al, dl
|
||||
rol al, 1
|
||||
rol al, 1
|
||||
or dl, al
|
||||
and dl, 3
|
||||
call setdd
|
||||
|
||||
cmp dl, 0x80
|
||||
jc .k
|
||||
sub dl, (0x80-2)
|
||||
.k: call setdd
|
||||
|
||||
mov dx, testfcb
|
||||
mov ah, 0xF
|
||||
int 0x21
|
||||
mov bx, testfcb
|
||||
call fndfst
|
||||
|
||||
restart:
|
||||
hlt: hlt
|
||||
|
@ -70,6 +70,10 @@ hlt: hlt
|
|||
%include "kernel/drive.asm"
|
||||
%include "kernel/printf.asm"
|
||||
|
||||
section .bss
|
||||
|
||||
dta: resb 128
|
||||
|
||||
section .data
|
||||
|
||||
testfcb: db 0
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue