mirror of
https://github.com/irmen/prog8.git
synced 2025-01-11 13:29:45 +00:00
just added missing FAC2 assign possibility
This commit is contained in:
parent
42fe052f9f
commit
66d5490702
@ -879,7 +879,7 @@ class AsmGen(private val program: Program,
|
|||||||
RegisterOrPair.XY,
|
RegisterOrPair.XY,
|
||||||
in Cx16VirtualRegisters -> assignmentAsmGen.assignRegisterpairWord(target, reg)
|
in Cx16VirtualRegisters -> assignmentAsmGen.assignRegisterpairWord(target, reg)
|
||||||
RegisterOrPair.FAC1 -> assignmentAsmGen.assignFAC1float(target)
|
RegisterOrPair.FAC1 -> assignmentAsmGen.assignFAC1float(target)
|
||||||
RegisterOrPair.FAC2 -> TODO("no support yet to assign FAC2 directly to something")
|
RegisterOrPair.FAC2 -> assignmentAsmGen.assignFAC2float(target)
|
||||||
else -> throw AssemblyError("invalid register")
|
else -> throw AssemblyError("invalid register")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1101,6 +1101,11 @@ internal class AssignmentAsmGen(private val program: Program, private val asmgen
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
internal fun assignFAC2float(target: AsmAssignTarget) {
|
||||||
|
asmgen.out(" jsr floats.MOVFA") // fac2 -> fac1
|
||||||
|
assignFAC1float(target)
|
||||||
|
}
|
||||||
|
|
||||||
internal fun assignFAC1float(target: AsmAssignTarget) {
|
internal fun assignFAC1float(target: AsmAssignTarget) {
|
||||||
when(target.kind) {
|
when(target.kind) {
|
||||||
TargetStorageKind.VARIABLE -> {
|
TargetStorageKind.VARIABLE -> {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user