2021-09-14 02:34 AM
hello sir
can someone, help me with that "SUB SP,#$9 " ,with is mentioned in the LATEST PROGRAMMING MANUAL OF STM8S PAGE 151.
if you write that in an even very 1line program, you have an error
Can't match Addressing mode ' SUB SP,#$9'
is there a n error of me, or is the manual example not correct
thanks for the help
2021-09-23 03:11 AM
The manual looks okay to me.
I guess you are using an assembler that uses a different syntax for hex immediates.
You should tell us which assembler you use. E.g. in sdasstm8 (the assembler that comes with SDCC), the syntax would be sub sp, #0x09.
2022-07-01 09:05 AM
Unfortunately ST's participation on the STM8 forum is rather lackluster
2022-07-01 09:15 AM
"3.1 ASM limitations 3.1.1 Limitations for STM8 assembler �? The mnemonics of the following STM8 instructions: ADD SP,#byte SUB SP,#byte have been replaced by: ADDW SP,#byte SUBW SP,#byte"
2022-07-01 08:42 PM
hello sir
thanks for youre answer,thats it,its works now
a nice day