Ok
out &hfc,0
Ok
? 256-inp(&hfc)
256
Ok
? 256*16
4096
Ok

What this mean? Get different MSX with different Mappers. This formula gives
you how many Kb your mapper have! It works in any case, 128K, 256K, 512K,
even at 4096K!
Use it as well...

How it works:

    The 0FCh port is the controller of mapper for page 0 (I don't remember
if I'm right). When a new page is setup, the Mapper controller put an
inverted number on that port. If you read the port, you will get
(numberofmapperblocks)+actualblock * -1. With the formula upward, you will
get how many mapper you have in your system. Believe me: it works! But you
can test it and try to prove that I'm wrong... At least, it's faster than
switch all blocks of mapper to an slot and count them manually.

Avatar is backing...



****
MSX Mailinglist. To unsubscribe, send an email to [EMAIL PROTECTED] and put
in the body (not subject) "unsubscribe msx [EMAIL PROTECTED]" (without the
quotes :-) Problems? contact [EMAIL PROTECTED] (www.stack.nl/~wiebe/mailinglist/)
****

Reply via email to