Hi!
As the subject says, I have a problem porting "ST #immediate, Smem" from C54x to C55x.
==== Code example ====
.cpl_on ; Tell compiler CPL=1
ST #0, 0 ; Store #0 at (SP + 0)
==== Compiler output ====
"example.asm", REMARK at line 2: [R5010] C54x and C55x interrupt enable/flag
registers and bit mapping are
different. Replace with native C55x
mnemonic.
ST #0, 0 ; Store #0 at (SP + 0)
"example.asm", ERROR! at line 2: [E0003] This address mode is invalid in CPL=1
mode
ST #0, 0 ; Store #0 at (SP + 0)
====
R5010: Why does the compiler think I'm trying to modify IER0? I've clearly told it on the row above that I want to direct memory addressing relative to SP. The stack is setup in another source file.
E0003: What address mode? Isn't "ST #immediate, Smem" valid when CPL=1 ? If so, why isn't this mentioned in SPRU429 - C54x-to-C55x Code Migration
Reference Guide?