more file loading fixes

This commit is contained in:
FeralChild64 committed 2021-01-29 20:48:57 +01:00
1 parent 5e8d2205e8
commit 50da4aa2b1
2 files changed
+12 -3

No files matched your search

+3
View File
@@ -6,6 +6,9 @@
zvm_CPMemu:
jsr PRIMM
!pet "DBG: CP1", $0D, 0
ldx REG_C
cpx #$09
beq zvm_CPMemu_09
+9 -3
View File
@@ -74,13 +74,17 @@ ZVM_cputest:
lda #$00
sta BIOS_LOADPTR+1
!addr BIOS_LOADCOUNT = $48 ; 2 bytes - counter used for loading data
; Read data, 512 byte chunks
; Read sectors
lda #$02 ; summy value - 2*256 bytes read
pha
@loop2:
pla
cmp #$02
bne @load_done
; Set I/O buffer pointer to start
lda #$6E
@@ -103,6 +107,8 @@ ZVM_cputest:
ora BIOS_LOADCOUNT+0
beq @load_done
phy ; if 2 - we most likely have something more to read
@loop3:
dew BIOS_LOADCOUNT