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

2018-04-06 Thread Eric Rullens
Dear Phillipp, Yes, you are absolutely right: for relocatable symbols things go awry. When attempting my previous tests on a relocatable symbol more issues can be seen: 010050123 _test1: 124 ; test.c: 126: __endasm;

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

2018-04-06 Thread Philipp Klaus Krause
Am 06.04.2018 um 14:12 schrieb Eric Rullens: > Dear Philipp, > > Apologies for bumping into this conversation (and thank you very much for > all the work!), but I think the assembler does what it should do. > > Please consider the following: > > […] > > 124 ;

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

2018-04-06 Thread Eric Rullens
Dear Philipp, Apologies for bumping into this conversation (and thank you very much for all the work!), but I think the assembler does what it should do. Please consider the following: 116 ; Assembler test (r10380): loading 0xhhmmll (high, mid, low) bytes into

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

2018-04-06 Thread Philipp Klaus Krause
Am 02.04.2018 um 14:35 schrieb Maarten Brock: > > In the generated code I see that the lower 16 bits are loaded into x, not > the upper. And the most significant byte is loaded into a by using # but that seems to fail. If you instead use #(sym>>16) it seems alright to > me. > > Maarten