remove last trace of getTempVar (arry index expression)

tiny optimization
This commit is contained in:
Irmen de Jong
2023-10-26 22:28:07 +02:00
parent 32becdbced
commit 0904712a00
9 changed files with 265 additions and 315 deletions
@@ -76,6 +76,13 @@ enum class RegisterOrPair {
companion object {
val names by lazy { values().map { it.toString()} }
fun fromCpuRegister(cpu: CpuRegister): RegisterOrPair {
return when(cpu) {
CpuRegister.A -> A
CpuRegister.X -> X
CpuRegister.Y -> Y
}
}
}
fun asCpuRegister(): CpuRegister = when(this) {