GadgetUK, on Sat Aug 4, 2012 5:30 PM, said:
Its starting to sink in now but unsure how the Lynx knows to treat the card as 128K, 256K, or 512K....
Not at all. There is no way to detect the layout automatically.(*)
The layout has to be known to the "software".
If you have a ROM with 128 blocks and blocksize 1k the layout will differ from 256 blocks and 512 bytes blocksize even so the final size is the same.
GadgetUK, on Sat Aug 4, 2012 5:30 PM, said:
Does the Lynx detect usage of pins A9 and A10, A9 seems to be used for cart size > 128K, and A10 for cart size > 256K.
no. seen above.
GadgetUK, on Sat Aug 4, 2012 5:30 PM, said:
Ive just thought about it again now and wondering if A12 is the answer.... 512 byte blocks for 128K, 1024 byte blocks for 256K, and 2048 byte blocks for 512K... A12 operates the same for any of the 3 EPROM sizes, it just increases sector size.
no. seen above.
GadgetUK, on Sat Aug 4, 2012 5:30 PM, said:
My head is telling me that despite all of the above, a card wired for a 27c020, will map a 27c010 correctly as theres one less address line and its just the byte layout on the cart thats the problem - or am I wrong?
again. it depends if you keep the blocksize constant.
(*)
actually, the rom layout can be detected by reading the amximum blocksize and then detect doubled data which tell you which lines are not used.
same can be archieved to detect if you have 64, 128 and 256 blocks.
Maybe you should search the forum, i think we had this discussions here already.