1
0
mirror of https://github.com/irmen/ksim65.git synced 2024-06-01 21:41:31 +00:00

speed and size improvement by not using lambdas for all opcodes

This commit is contained in:
Irmen de Jong 2019-09-11 03:00:18 +02:00
parent 50e454fc28
commit 0b7e91fc5c
2 changed files with 613 additions and 387 deletions

File diff suppressed because it is too large Load Diff

View File

@ -42,11 +42,11 @@ class Test6502CpuBasics {
cpu.PC = 0x1000
// warmup
while(cpu.totalCycles<1000000)
while(cpu.totalCycles<5000000)
cpu.clock()
// timing
val cycles = 50000000
val cycles = 100000000
val duration = measureNanoTime {
while (cpu.totalCycles < cycles)
cpu.clock()