mirror of
https://github.com/irmen/prog8.git
synced 2024-11-23 22:33:12 +00:00
fix certain corruption of A register argument on asm sub call
This commit is contained in:
parent
bd7f75c130
commit
f14dda4eca
@ -182,12 +182,13 @@ internal class FunctionCallAsmGen(private val program: Program, private val asmg
|
||||
is IdentifierReference -> {
|
||||
val sourceName = asmgen.asmIdentifierName(value)
|
||||
asmgen.out("""
|
||||
pha
|
||||
lda $sourceName
|
||||
beq +
|
||||
sec
|
||||
bcs ++
|
||||
+ clc
|
||||
+
|
||||
+ pla
|
||||
""")
|
||||
}
|
||||
else -> {
|
||||
|
Loading…
Reference in New Issue
Block a user