Am 14.04.20 um 14:07 schrieb Vahid Bashiri:
> This is not the assembler.
> For first call generated code is: call #(_func + 0) which is not a valid
> stm8 assembly. For second call sdcc generates call (x) where x contains
> the address of _func which is correct. 
> 

On second look it indeed seems our assembler indeed uses inconsistent
syntax here (by the stm8 manual it would work, as that one uses slightly
more consistent syntax) - consistent with the official inconsistent z80
syntax.
Annoying that I forgot about this aspect of the assembler. Sorry for the
noise.

Either way it is a bug that should be reported so it won't be forgotten.

Philipp


_______________________________________________
Sdcc-user mailing list
Sdcc-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sdcc-user

Reply via email to