Z*) speed optimizations
This commit is contained in:
1 parent
047e7dd56a
commit
2b7de74935
10 files changed
+337
-288
No files matched your search
+13
-8
@@ -7,10 +7,14 @@ ZVM_entry:
|
||||
|
||||
jsr ZVM_init
|
||||
; XXX fetch BDOS and Command Processor
|
||||
jmp ZVM_run
|
||||
jmp ZVM_next
|
||||
|
||||
ZVM_init:
|
||||
|
||||
; .Z is required to be 0 all the time
|
||||
|
||||
ldz #$00
|
||||
|
||||
; Reset all the registers
|
||||
|
||||
lda #$00
|
||||
@@ -24,9 +28,14 @@ ZVM_init:
|
||||
; XXX what is the initial SP value?
|
||||
; XXX clean memory
|
||||
|
||||
jmp ZVM_set_bank_0
|
||||
|
||||
ZVM_run:
|
||||
jmp ZVM_set_bank_1
|
||||
|
||||
|
||||
ZVM_store_next:
|
||||
|
||||
sta [PTR_DATA],z
|
||||
|
||||
ZVM_next: ; fetch and execute next opcode
|
||||
|
||||
; CPU main loop
|
||||
|
||||
@@ -85,10 +94,6 @@ ZVM_run:
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user