Detecting ONECHIP MSX ou ZEMIX neo from Basic ?

Page 1/2
| 2

By ericb59

Paragon (1098)

ericb59's picture

25-10-2013, 10:02

Hello,

How can I detect a onechip MSX or a ZEMMIX NEO from basic ?

Is there a Peek which give me this information ?

Login or register to post comments

By meits

Scribe (6530)

meits's picture

25-10-2013, 12:37

Can't check, but the previous MSX machines could be checked by peeking &H2D

By Metalion

Paragon (1622)

Metalion's picture

25-10-2013, 17:28

I don't think there is a way of doing that, since they are both full MSX machines.

By hbarcellos

Hero (642)

hbarcellos's picture

25-10-2013, 18:37

What about those asm tricks that try to identify if they're running on an emulator or on a real hardware?
I'm pretty sure there might be a way to do it...

By ericb59

Paragon (1098)

ericb59's picture

25-10-2013, 18:39

the Loader MglOCM can identify if it is running on a onechip...

By hbarcellos

Hero (642)

hbarcellos's picture

25-10-2013, 18:51

this one: http://www.msx.org/downloads/mglocm-v092

How do you know it detects it? It prints something on the screen? Can you post a screenshot?

By ericb59

Paragon (1098)

ericb59's picture

25-10-2013, 18:55

yes it print it detect an OCM on my zemmix neo,
and for example, it detect that a DE1 Board with caro's port of the ocm vhdl code,is not an OCM !

By bore

Master (161)

bore's picture

25-10-2013, 19:10

Does it have to be a quick test? Otherwise you could experiment with looping "ld r, a" for a couple of seconds. Without proper refreshing, segments of the dram should deteriorate if it is a real MSX.
On MSX2 it might be possible to toggle direction of the color-bus or something but I don't really know how that works.

Both alternatives will pretty much have undefined behavior so it might not be reliable.

By KdL

Paragon (1450)

KdL's picture

26-10-2013, 05:23

yes from v3.2 rc5...

-- $4C ID212 [MSB] 4-bit free & machine type (0-15) [LSB] => read only
-- "XXXX0000" is 1chipMSX; "XXXX0001" is Zemmix Neo (others: "XXXX0010" is Altera DE0; "XXXX0011" is Altera DE1; ...)
"0000" & "000" & ZemmixNeo          when( (adr(3 downto 0) = "1100") and (io40_n = "00101011") )else

By Manuel

Ascended (19273)

Manuel's picture

26-10-2013, 09:59

Why do you need such a test?

By ericb59

Paragon (1098)

ericb59's picture

26-10-2013, 10:28

Thank you KDL, I will try using this informations.

@Manuel : I want to be able to identify OCM or ZEMMIX to include some extra features for this particular Hardware in my next production !

Page 1/2
| 2