mirror of https://github.com/irmen/ksim65.git
when
This commit is contained in:
parent
323098f645
commit
99942748f9
|
@ -628,6 +628,8 @@ open class Cpu6502 : BusComponent() {
|
|||
}
|
||||
|
||||
protected open fun dispatchOpcode(opcode: Int): Boolean {
|
||||
// note: this giant when-statement seems to be the fastest way of doing a jump table like this.
|
||||
// experiments with an indexed array with function-pointers proved to be several times slower.
|
||||
return when (opcode) {
|
||||
0x00 -> iBrk()
|
||||
0x01 -> iOra()
|
||||
|
|
Loading…
Reference in New Issue