Z80TEST.COM loading bugfixes

This commit is contained in:
FeralChild64 committed 2021-01-29 19:39:22 +01:00
1 parent af7fb6b5fa
commit eef13f4cfe
3 files changed
+9 -4

No files matched your search

+1 -1
View File
@@ -13,7 +13,7 @@ Z80_reset:
@1:
sta z80_cpustate__start, y
iny
cmp #(z80_cpustate__end - z80_cpustate__start + 1)
cpy #(z80_cpustate__end - z80_cpustate__start + 1)
bne @1
dew REG_AF ; AF and SP have $FFFF value at start
+2 -2
View File
@@ -7,7 +7,7 @@
Z80_table_gen:
jsr PRIMM
!pet $0D, "Generating CPU tables... "
!pet $0D, "Generating CPU tables"
!byte 0
;
@@ -23,7 +23,7 @@ Z80_table_gen:
;
jsr PRIMM
!pet "done", $0D, $0D
!pet " done", $0D, $0D
!byte 0
rts
+6 -1
View File
@@ -36,7 +36,7 @@ ZVM_cputest:
+bcc @end
jsr PRIMM
!pet "Loading 'Z80TEST.COM'... ", 0
!pet "Loading Z80TEST.COM", 0
; Open the file
@@ -105,6 +105,8 @@ ZVM_cputest:
@loop3:
inc $D020
dew BIOS_LOADCOUNT
bmi @loop2
@@ -118,6 +120,9 @@ ZVM_cputest:
@load_done:
jsr PRIMM
!pet " done", $0D, $0D, 0
; At this moment we have Z80TEST.COM loaded into memory
; Install a virtual CP/M, set PC to $0100, and run it!