While on stm8, I can get the upper byte of a 24-bit address via #(_symbolname >> 16), for z80-related ports that apparently gives the lowest byte, or a sign-extension of the middle byte.

Does anyone rely on the current behavior? How do you handle addresses wider than 16 bits, e.g. for banking? Would it be useful to you if #(_symbolname >> 16) would give the upper byte of a 24-bit address?

Philipp

P.S.: Background: I'm working on __far support for the eZ80, TLCS-90, and Rabbit ports.



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

Reply via email to