loading from D81 image works now on MEGA65

This commit is contained in:
FeralChild64 committed 2021-03-25 19:39:57 +01:00
1 parent 8effc8d3e0
commit 5ae7f19f83
12 files changed
+19 -5

No files matched your search

+2 -2
View File
@@ -91,8 +91,8 @@
; --- Built-in DOS configuration
;; #CONFIG# UNIT_SDCARD 28
;; #CONFIG# UNIT_FLOPPY 29 ; work in progress
;; #CONFIG# UNIT_RAMDISK 0 ; do not change, DOS is not implemented yet
;; #CONFIG# UNIT_FLOPPY 29
;; #CONFIG# UNIT_RAMDISK 0 ; do not change, ram disk is not implemented yet
; --- Debug options
@@ -29,13 +29,17 @@ fs_cbm_nextfileblock:
@common_chk:
bne @common_load
bne fs_cbm_nextfileblock_common_load
; FALLTROUGH
fs_cbm_nextfileblock_eof:
lda #$00 ; end of file
sec
rts
@common_load:
fs_cbm_nextfileblock_common_load:
sta PAR_TRACK
stx PAR_SECTOR
@@ -87,10 +91,14 @@ fs_cbm_nextfileblock_got_ts:
; Less than a full sector is used
lda SHARED_BUF_1+$100+0
lda SHARED_BUF_1+$100+1
@not_full_buf:
dec
cmp #$FF
beq fs_cbm_nextfileblock_eof
sta FD_ACPTR_LEN+0
; FALLTROUGH