|
From: Erik P. <epe...@iv...> - 2018-03-31 08:58:08
|
On Thu, 29 Mar 2018, Philipp Klaus Krause wrote: >>> Full support for function pointers would need: >>> 1) A way to get individual bytes of 24-bit symbols >>> 2) A way to get the upper 16 bits of 24-bit symbols >>> >>> Philipp >> >> If that is true, then the ds390 target is totally broken and the huge >> model for mcs51 is broken as well. I'm sure this used to work. >> >> ISTR that the assembler has support for every odd kind of number of bits >> per address word, including 24 bit. Is the address size maybe set up >> incorrectly? >> >> Maarten > > I had also tested with ds390, and it seemed to work there. Maybe there > is some functionality in the ds390 assembler that would have to be > ported to the stm8 one. > > Philipp I have enabled the assembler to emit 24-bit addresses in the relocation records for stm8 like it does for ds390 and mcs51 (even though mcs51 is only using 16-bit addresses). So this should allow you to reference the individual bytes of the 24-bit address. However, I think additional work will still be needed to reference the upper 16 bits of a 24-bit address. Erik |