safer loading code
This commit is contained in:
1 parent
c6ed0f0d00
commit
a9f3371772
1 file changed
+6
-2
@@ -77,6 +77,8 @@ ZVM_cputest:
|
|||||||
lda #$02 ; value means - 2*256 bytes read
|
lda #$02 ; value means - 2*256 bytes read
|
||||||
pha
|
pha
|
||||||
|
|
||||||
|
ldz #$00 ; in case hypervisor modified it
|
||||||
|
|
||||||
@loop2:
|
@loop2:
|
||||||
|
|
||||||
pla
|
pla
|
||||||
@@ -142,18 +144,20 @@ ZVM_cputest:
|
|||||||
sta BIOS_LOADPTR+1
|
sta BIOS_LOADPTR+1
|
||||||
lda #$05
|
lda #$05
|
||||||
sta BIOS_LOADPTR+0
|
sta BIOS_LOADPTR+0
|
||||||
lda #$76 ; HALT
|
lda #$76 ; HALT
|
||||||
sta [BIOS_LOADPTR],z
|
sta [BIOS_LOADPTR],z
|
||||||
inc BIOS_LOADPTR
|
inc BIOS_LOADPTR
|
||||||
lda #$FF
|
lda #$FF
|
||||||
sta [BIOS_LOADPTR],z ; $FF = CP/M simulation for CPU test
|
sta [BIOS_LOADPTR],z ; $FF = CP/M simulation for CPU test
|
||||||
|
|
||||||
; Run the software
|
; Run the software
|
||||||
|
|
||||||
|
ldz #$00 ; in case hypervisor modified it
|
||||||
jmp ZVM_next
|
jmp ZVM_next
|
||||||
|
|
||||||
@end:
|
@end:
|
||||||
|
|
||||||
|
ldz #$00 ; in case hypervisor modified it
|
||||||
rts
|
rts
|
||||||
|
|
||||||
ZVM_filename_Z80TEST:
|
ZVM_filename_Z80TEST:
|
||||||
|
|||||||
Reference in new issue
Block a user