Content originally posted in LPCWare by rkiryanov on Tue Apr 27 09:02:12 MST 2010
What am I doing wrong?
Quote:
Building file: ../src/OS/os_kernel.cpp
Invoking: MCU C++ Compiler
arm-none-eabi-c++ -DNDEBUG -D__CODE_RED -O3 -Os -g -Wall -c -fmessage-length=0 -fno-builtin -ffunction-sections -fdata-sections -fno-rtti -fno-exceptions -Wa,-ahlnds=os_kernel.asm -mcpu=cortex-m0 -mthumb -D__NEWLIB__ -MMD -MP -MF"src/OS/os_kernel.d" -MT"src/OS/os_kernel.d" -o"src/OS/os_kernel.o" "../src/OS/os_kernel.cpp"
C:\DOCUME~1\user\LOCALS~1\Temp\ccs4Wgyb.s: Assembler messages:
C:\DOCUME~1\user\LOCALS~1\Temp\ccs4Wgyb.s:3676: Error: instruction not supported in Thumb16 mode -- `subs r0,#32'
C:\DOCUME~1\user\LOCALS~1\Temp\ccs4Wgyb.s:3683: Error: instruction not supported in Thumb16 mode -- `subs r0,#32'
DDI0419B_arm_architecture_v6m_reference_manual_errata_markup_2_0.pdf
Quote:
A6.7.65 SUB (immediate)
This instruction subtracts an immediate value from a register value, and writes the result to the destination register. The condition flags are updated based on the result.
Encoding T2 All versions of the Thumb ISA.
SUBS <Rdn>,#<imm8>