CBDOS refactoring

This commit is contained in:
FeralChild64 committed 2021-03-06 20:57:56 +01:00
1 parent 659330c9f1
commit 4234591508
31 files changed
+164 -135

No files matched your search

@@ -0,0 +1,11 @@
;
; Close currently opened file
;
unit_rd_cmd_CLOSE:
; XXX provide implementation
jmp dos_EXIT_SEC
@@ -0,0 +1,17 @@
;
; Open file for reading
;
unit_rd_cmd_OPEN:
; XXX provide implementation
jmp dos_EXIT_SEC
unit_rd_cmd_OPEN_EOI:
; XXX provide implementation
jmp dos_EXIT_CLC
@@ -0,0 +1,12 @@
;
; Read more data into the buffer
;
unit_rd_cmd_READ:
; XXX provide implementation
sec ; mark EOI
rts
+28
View File
@@ -0,0 +1,28 @@
;
; Initializes DOS part of ram disk
;
unit_rd_init:
; Copy status string
ldx #$00
stx RD_STATUS_IDX
stx RD_CMDFN_IDX
stx RD_MODE
stx RD_ACPTR_LEN+0
stx RD_ACPTR_LEN+1
stx RD_ACPTR_PTR+0
stx RD_ACPTR_PTR+1
dex
@1:
inx
lda dos_sts_init_ramdisk,x
sta RD_STATUS_BUF,x
bne @1
; End of initialization
rts