mirror of
https://github.com/irmen/prog8.git
synced 2025-01-01 08:30:14 +00:00
memory address assignment codegen
This commit is contained in:
parent
23e954f716
commit
6b59559c65
@ -293,15 +293,15 @@ internal class AssignmentAsmGen(private val program: Program, private val errors
|
||||
val sourceName = asmgen.asmIdentifierName(assign.value as IdentifierReference)
|
||||
TODO("$assign")
|
||||
}
|
||||
is AddressOf -> {
|
||||
TODO("$assign")
|
||||
}
|
||||
is DirectMemoryRead -> {
|
||||
TODO("$assign")
|
||||
val memory = (assign.value as DirectMemoryRead).addressExpression.constValue(program)!!.number.toHex()
|
||||
asmgen.out(" lda $memory | sta $hexAddr")
|
||||
return true
|
||||
}
|
||||
is ArrayIndexedExpression -> {
|
||||
TODO("$assign")
|
||||
}
|
||||
is AddressOf -> throw AssemblyError("can't assign address to byte")
|
||||
else -> {
|
||||
fallbackAssignment(assign)
|
||||
return true
|
||||
|
Loading…
Reference in New Issue
Block a user