small RAM disk preload fix

This commit is contained in:
FeralChild64 committed 2021-05-22 21:56:37 +02:00
1 parent b5247f8019
commit dd97cc3600
1 file changed
+7 -1
+7 -1
View File
@@ -65,7 +65,7 @@ unit_rd_preload:
; Load the image
lda #$00
lda #$FF
sta RD_MAXTRACK
bra @load_track_check_done
@@ -131,6 +131,8 @@ unit_rd_preload:
plx
cpx #$7F
; XXX debug code
; stx $1000
bne @error_wrong_size ; file empty or file size not multiplicity of 64K
lda RD_MAXTRACK
@@ -162,6 +164,10 @@ unit_rd_preload:
@error_wrong_size:
; XXX debug code
; lda RD_MAXTRACK
l sta $1001
lda #$01
jmp unit_rd_preload_err_common