work towards directory reading in CBDOS

This commit is contained in:
FeralChild64 committed 2021-02-14 12:07:10 +01:00
1 parent 61e2c7f5e5
commit 578be0bcc8
17 files changed
+277 -10

No files matched your search

+2 -2
View File
@@ -9,7 +9,7 @@
dos_err_init_sdcard:
!pet "73,m65 dos sdcard,00,00", 0
!pet "73,m65 dos sd card,00,00", 0
dos_err_init_floppy:
@@ -25,7 +25,7 @@ dos_err_init_ramdisk:
dos_err_00: ; not an error
!pet "ok", 0
!pet " ok", 0
dos_err_01: ; not an error
+33
View File
@@ -0,0 +1,33 @@
;
; Data used to generate directory in CBM BASIC format
;
dir_hdr: ; 32 bytes - header
!byte $01, $08 ; program location
!byte $01, $01 ; link to the next line - dummy, will be regenerated by BASIC
!byte $00, $00 ; line number 0
!byte $12, $22 ; reverse mode, quote
!pet " " ; space for disk/directory name
!byte $22, $20 ; quote, space
!pet "00 2a" ; default ID, disk format
!byte $00 ; end of the line
dir_hdr_sd: ; 32 bytes - header
!byte $01, $08 ; program location
!byte $01, $01 ; link to the next line - dummy, will be regenerated by BASIC
!byte $00, $00 ; line number 0
!byte $12, $22 ; reverse mode, quote
!pet "SD CARD " ; space for disk/directory name
!byte $22, $20 ; quote, space
!pet "fat32" ; filesystem
!byte $00 ; end of the line
dir_end: ; 19 bytes
!byte $01, $01 ; link to the next line - dummy, will be regenerated by BASIC
!byte $00, $00 ; line number 0
!pet "blocks free."
!byte $00, $00, $00 ; end of the line, end of program marker