0

Does anyone know what “Error: Instruction using illegal Value.” means? I’m trying to assemble some asm function and I get this error. It doesn’t tell me what line the error is on, but by commenting and uncommenting sections of code, it seems to be “mov a, #31” as the cause of the problem, which doesn’t look illegal to me.

Here is the compiler flags that I’m using:
llvm-rl78/bin/clang.exe –target=rl78 -mcpu=s3 -Og -g -ffunction-sections -fdata-sections -fno-strict-aliasing -Wall -Wextra -Wno-pointer-sign -Wno-sign-compare -x assembler-with-cpp -MMD -MP -MF OUTPUT/printf.d -MT OUTPUT/printf.o -c printf.S -o OUTPUT/printf.o
Error: Instruction using illegal Value.

LLVM for Renesas RL78 17.0.1.202412 (d8f0f7bcd) clang version 17.0.1
Target: rl78-unknown-elf
Thread model: posix
InstalledDir: C:\ProgramData\LLVM for Renesas RL78 17.0.1.202412\bin

Open Source Tools Support answered