This commit is contained in:
Irmen de Jong 2020-02-27 03:57:32 +01:00
parent 323098f645
commit 99942748f9
1 changed files with 2 additions and 0 deletions

View File

@ -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()