[QUOTE=xnihilo;62476]I need to work with 24 bits addresses for a 1024 bits memory[quote]
24 address bits get you 16,777,216 bytes of memory ( 2 ^ 24)

of address, last byte of the memory will be at $01FFFF.
Last byte with 24 bits should be $FFFFFF

256 bytes make a PAGE and 256 PAGES make a SECTOR and there are 2 SECTORS.
If we're still talking about the same thing, you should have 256 'SECTOR's

What are you dealing with exactly? Seems like there is some disconnect between point A and point B here...