What to set in V9938 register 9?

Por Sdw

Resident (50)

imagem de Sdw

19-08-2015, 23:32

I want to enable 212 line mode. Simple, I just set the highest bit of VDP register #9, and it works fine.
However, there are a lot of other bits in this register that I'm unsure of. Simultaneous mode? Dot clock?
What am I supposed to set in these registers? As for now, I just set 0 to everything (except PAL mode, I want 50Hz) but is this correct? Is there no way to keep whatever there is, and just modify the bit I want?

Entrar ou registrar-se para comentar

Por Manuel

Ascended (19300)

imagem de Manuel

19-08-2015, 23:35

AFAIK what is written to the VDP registers should be mirrored in part of the system variables. So you could read out the value there and write it with the proper bit set. (And update it there too, or use the BIOS routine to write it, which I assume updates it for you.)

However, I'm not an expert at all, so this could be wrong.

Por madscient

Master (193)

imagem de madscient

20-08-2015, 18:45

You can find the mirror in &HFFE8.

See below:

Por Grauw

Ascended (10707)

imagem de Grauw

20-08-2015, 20:25

Indeed you should read (and update) the mirror value.

See also: http://map.grauw.nl/resources/msxsystemvars.php#RG9SAV