diff --git a/src/dos_m65/assets/dos_ramdisk_filename.s b/src/dos_m65/assets/dos_ramdisk_filename.s index 92a82aa7..7faeec1d 100644 --- a/src/dos_m65/assets/dos_ramdisk_filename.s +++ b/src/dos_m65/assets/dos_ramdisk_filename.s @@ -5,5 +5,4 @@ ramdisk_filename: - !pet "ramdisk.dnp" - !byte $00 + !pet "ramdisk.dnp", 0 diff --git a/src/dos_m65/unit_ramdisk/unit_rd_init.s b/src/dos_m65/unit_ramdisk/unit_rd_init.s index 0f798b3f..bff58927 100644 --- a/src/dos_m65/unit_ramdisk/unit_rd_init.s +++ b/src/dos_m65/unit_ramdisk/unit_rd_init.s @@ -25,35 +25,31 @@ unit_rd_init: ; End of initialization, now try to load the initial RAM disk; first set file name - ldx #ramdisk_filename - + ldx #FS_HVSR_DIRENT ; XXX is it needed? - - lda #$30 ; dos_findfirst + lda #$34 ; dos_findfile sta HTRAP00 +nop - bcc @error_not_found ; branch if file not found XXX why it can't find the file? ; XXX load the file +;@x: +; inc $D020 +; bra @x - lda #$20 ; dos_closefile - sta HTRAP00 - +nop - - jsr fs_vfs_direntmem_restore + ; lda #$20 ; dos_closefile + ; sta HTRAP00 + ; +nop ; End of initialization @@ -62,7 +58,6 @@ unit_rd_init: @error_not_found: - ; XXX set information about file not found - jmp fs_vfs_direntmem_restore + rts