mirror of
https://github.com/ksherlock/minix.fst.git
synced 2024-09-28 09:54:25 +00:00
remove device because it causes too much confusion. Just use driver's dev_num (is that safe?)
This commit is contained in:
parent
51f637d4a4
commit
b993499aa0
2
fst.equ
2
fst.equ
@ -10,7 +10,7 @@ my_fcr ds.l 1
|
|||||||
call_class ds.w 1
|
call_class ds.w 1
|
||||||
|
|
||||||
|
|
||||||
device ds.w 1 ; device for id_disk.
|
;device ds.w 1 ; device for id_disk.
|
||||||
tool_error ds.w 1
|
tool_error ds.w 1
|
||||||
|
|
||||||
|
|
||||||
|
@ -230,8 +230,9 @@ init proc
|
|||||||
|
|
||||||
with fst_parms,dp,data
|
with fst_parms,dp,data
|
||||||
|
|
||||||
lda device
|
; must be set up before hand.
|
||||||
sta dev_parms.dev_num
|
;lda device
|
||||||
|
;sta dev_parms.dev_num
|
||||||
|
|
||||||
; directory entry (and inode lookup) should be cached.
|
; directory entry (and inode lookup) should be cached.
|
||||||
lda #in_cache
|
lda #in_cache
|
||||||
|
@ -168,8 +168,9 @@ load_inode procname export
|
|||||||
sta dev_req_cnt
|
sta dev_req_cnt
|
||||||
sta dev_blk_size
|
sta dev_blk_size
|
||||||
|
|
||||||
lda device
|
; dev_num must already be set up.
|
||||||
sta dev_num
|
;lda device ;;;;
|
||||||
|
;sta dev_num
|
||||||
|
|
||||||
jsr device_read
|
jsr device_read
|
||||||
bcc ok
|
bcc ok
|
||||||
@ -266,7 +267,7 @@ no_path
|
|||||||
|
|
||||||
lda dev_num
|
lda dev_num
|
||||||
beq bps
|
beq bps
|
||||||
sta device
|
;sta device
|
||||||
jmp id_disk
|
jmp id_disk
|
||||||
; returns
|
; returns
|
||||||
bps
|
bps
|
||||||
@ -296,7 +297,7 @@ check_path
|
|||||||
|
|
||||||
lda dev_num
|
lda dev_num
|
||||||
beq bps
|
beq bps
|
||||||
sta device
|
;sta device
|
||||||
jsr id_disk
|
jsr id_disk
|
||||||
bcs exit
|
bcs exit
|
||||||
lda #2
|
lda #2
|
||||||
@ -547,6 +548,8 @@ no_vcr
|
|||||||
@error
|
@error
|
||||||
sec
|
sec
|
||||||
rts
|
rts
|
||||||
|
device
|
||||||
|
ds.w 1
|
||||||
endp
|
endp
|
||||||
|
|
||||||
vstrcmp procname
|
vstrcmp procname
|
||||||
|
@ -158,7 +158,8 @@ build_vcr procname
|
|||||||
and #vcr_swapped_in
|
and #vcr_swapped_in
|
||||||
sta [my_vcr],y
|
sta [my_vcr],y
|
||||||
|
|
||||||
lda device
|
;lda device
|
||||||
|
lda dev_parms.dev_num
|
||||||
ldy #vcr.device
|
ldy #vcr.device
|
||||||
sta [my_vcr],y
|
sta [my_vcr],y
|
||||||
|
|
||||||
|
4
main.aii
4
main.aii
@ -222,7 +222,7 @@ app_entry procname
|
|||||||
sta dev_parms.dev_fst_num
|
sta dev_parms.dev_fst_num
|
||||||
|
|
||||||
stz <tool_error
|
stz <tool_error
|
||||||
stz <device
|
;stz <device
|
||||||
|
|
||||||
; fake an rtl address for sys_exit
|
; fake an rtl address for sys_exit
|
||||||
; otherwise, would need to jml sys_exit from functions.
|
; otherwise, would need to jml sys_exit from functions.
|
||||||
@ -349,7 +349,7 @@ init_vcr proc export
|
|||||||
|
|
||||||
ldy #vcr.device
|
ldy #vcr.device
|
||||||
lda [my_vcr]
|
lda [my_vcr]
|
||||||
sta device ; should probably just store in the dev_num.
|
;sta device ; should probably just store in the dev_num.
|
||||||
sta dev_parms.dev_num
|
sta dev_parms.dev_num
|
||||||
|
|
||||||
clc
|
clc
|
||||||
|
Loading…
Reference in New Issue
Block a user