mirror of
https://github.com/irmen/ksim65.git
synced 2024-09-27 07:54:29 +00:00
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 {
|
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) {
|
return when (opcode) {
|
||||||
0x00 -> iBrk()
|
0x00 -> iBrk()
|
||||||
0x01 -> iOra()
|
0x01 -> iOra()
|
||||||
|
Loading…
Reference in New Issue
Block a user