code harmonization
This commit is contained in:
1 parent
0618d38cdd
commit
fad9333e59
2 files changed
+11
-17
No files matched your search
@@ -5,5 +5,4 @@
|
|||||||
|
|
||||||
ramdisk_filename:
|
ramdisk_filename:
|
||||||
|
|
||||||
!pet "ramdisk.dnp"
|
!pet "ramdisk.dnp", 0
|
||||||
!byte $00
|
|
||||||
@@ -25,35 +25,31 @@ unit_rd_init:
|
|||||||
|
|
||||||
; End of initialization, now try to load the initial RAM disk; first set file name
|
; End of initialization, now try to load the initial RAM disk; first set file name
|
||||||
|
|
||||||
ldx #<ramdisk_filename
|
|
||||||
ldy #>ramdisk_filename
|
ldy #>ramdisk_filename
|
||||||
|
ldx #<ramdisk_filename
|
||||||
lda #$2E ; dos_setname
|
lda #$2E ; dos_setname
|
||||||
sta HTRAP00
|
sta HTRAP00
|
||||||
+nop
|
+nop
|
||||||
|
bcc @error_not_found
|
||||||
|
|
||||||
; Try to find the file
|
; Try to find the file
|
||||||
|
|
||||||
jsr fs_vfs_direntmem_prepare
|
lda #$34 ; dos_findfile
|
||||||
|
|
||||||
ldy #>FS_HVSR_DIRENT ; XXX is it needed?
|
|
||||||
|
|
||||||
lda #$30 ; dos_findfirst
|
|
||||||
sta HTRAP00
|
sta HTRAP00
|
||||||
+nop
|
+nop
|
||||||
|
|
||||||
bcc @error_not_found ; branch if file not found XXX why it can't find the file?
|
bcc @error_not_found ; branch if file not found XXX why it can't find the file?
|
||||||
|
|
||||||
; XXX load the file
|
; XXX load the file
|
||||||
|
|
||||||
|
|
||||||
|
;@x:
|
||||||
|
; inc $D020
|
||||||
|
; bra @x
|
||||||
|
|
||||||
|
|
||||||
lda #$20 ; dos_closefile
|
; lda #$20 ; dos_closefile
|
||||||
sta HTRAP00
|
; sta HTRAP00
|
||||||
+nop
|
; +nop
|
||||||
|
|
||||||
jsr fs_vfs_direntmem_restore
|
|
||||||
|
|
||||||
; End of initialization
|
; End of initialization
|
||||||
|
|
||||||
@@ -62,7 +58,6 @@ unit_rd_init:
|
|||||||
|
|
||||||
@error_not_found:
|
@error_not_found:
|
||||||
|
|
||||||
|
|
||||||
; XXX set information about file not found
|
; XXX set information about file not found
|
||||||
|
|
||||||
jmp fs_vfs_direntmem_restore
|
rts
|
||||||
Reference in new issue
Block a user