more file loading fixes
This commit is contained in:
1 parent
5e8d2205e8
commit
50da4aa2b1
2 files changed
+12
-3
No files matched your search
@@ -6,6 +6,9 @@
|
|||||||
|
|
||||||
zvm_CPMemu:
|
zvm_CPMemu:
|
||||||
|
|
||||||
|
jsr PRIMM
|
||||||
|
!pet "DBG: CP1", $0D, 0
|
||||||
|
|
||||||
ldx REG_C
|
ldx REG_C
|
||||||
cpx #$09
|
cpx #$09
|
||||||
beq zvm_CPMemu_09
|
beq zvm_CPMemu_09
|
||||||
|
|||||||
@@ -74,13 +74,17 @@ ZVM_cputest:
|
|||||||
lda #$00
|
lda #$00
|
||||||
sta BIOS_LOADPTR+1
|
sta BIOS_LOADPTR+1
|
||||||
|
|
||||||
!addr BIOS_LOADCOUNT = $48 ; 2 bytes - counter used for loading data
|
; Read data, 512 byte chunks
|
||||||
|
|
||||||
|
lda #$02 ; summy value - 2*256 bytes read
|
||||||
; Read sectors
|
pha
|
||||||
|
|
||||||
@loop2:
|
@loop2:
|
||||||
|
|
||||||
|
pla
|
||||||
|
cmp #$02
|
||||||
|
bne @load_done
|
||||||
|
|
||||||
; Set I/O buffer pointer to start
|
; Set I/O buffer pointer to start
|
||||||
|
|
||||||
lda #$6E
|
lda #$6E
|
||||||
@@ -103,6 +107,8 @@ ZVM_cputest:
|
|||||||
ora BIOS_LOADCOUNT+0
|
ora BIOS_LOADCOUNT+0
|
||||||
beq @load_done
|
beq @load_done
|
||||||
|
|
||||||
|
phy ; if 2 - we most likely have something more to read
|
||||||
|
|
||||||
@loop3:
|
@loop3:
|
||||||
|
|
||||||
dew BIOS_LOADCOUNT
|
dew BIOS_LOADCOUNT
|
||||||
|
|||||||
Reference in new issue
Block a user