Re: [Sdcc-user] How to deal bytewise with 24-bit symbols in asxxx x?

2018-03-29 Thread Eric Rullens
I have to correct myself on the "special case" theory in the linker: when I actually use the full msc51 code (as opposed to just setting the same flags) in the assembler, it looks like the linker generates the right relocations for 24 bit stm8 as well. Eric > -Oorspronkelijk bericht- >

Re: [Sdcc-user] How to deal bytewise with 24-bit symbols in asxxx x?

2018-03-29 Thread Eric Rullens
Dear Philipp and Maarten, I was just checking and got this far: the assembler contains a special case for mcs51 (I think ds390 is essentially the same thing). After making a simple general change in the assembler, the rel files look ok, but the rst file still is broken. So there probably is a

Re: [Sdcc-user] How to deal bytewise with 24-bit symbols in asxxxx?

2018-03-29 Thread Philipp Klaus Krause
Am 29.03.2018 um 13:08 schrieb Maarten Brock: >> Am 24.03.2018 um 20:21 schrieb Philipp Klaus Krause: >>> Am 24.03.2018 um 20:00 schrieb Maarten Brock: How about what the mcs51 back end does: just shift right by 8: ;genAssign movdptr,#___fail_PARM_2

Re: [Sdcc-user] How to deal bytewise with 24-bit symbols in asxxxx?

2018-03-29 Thread Maarten Brock
> Am 24.03.2018 um 20:21 schrieb Philipp Klaus Krause: >> Am 24.03.2018 um 20:00 schrieb Maarten Brock: >>> How about what the mcs51 back end does: just shift right by 8: >>> ;genAssign >>> movdptr,#___fail_PARM_2 >>> mova,#___str_3 >>> movx