Hi,
I've noticed something strange in SDCC's output.
 
The following code:
 
data at 0x20 byte flags0;
data at 0x21 byte flags1;
data at 0x22 word flags2;
assembles as:
 
.globl _key_row   ----->some other variable...
.globl _flags0    -------->flags0 defined as global
;--------------------------------------------------------
; special function registers
;--------------------------------------------------------
_P0 = 0x0080  --------> etc. etc.
 
My question is, Why is only flags0 defined as global? Why not also flags1 & flags2?
 
By the way, the code works fine.
 
Thanks,
--Royce.