Door Unregistered user
Ambassador (0)

26-03-2023, 20:06
Hello MSX community,
pretty new to this forum I'm a Amstrad CPC user who bought a V9990 Powergraph graphic card for the CPC computer range.
Of course I have already read a lot about the V9990 from your site (V9990) and I was running e.g. a demo (youtube) which is spread around, I'm eager to write own programs using the VDP. But first I have to understand the principles of that card.
I tried this by disassembling the files of the demo. And, of course, it is not as simple as I thought in the very first beginning.
The demo itself is splitted into different parts ([url=https://www.cpcwiki.eu/forum/amstrad-cpc-hardware/using-symbos-with-the-gfx9000-(msx-grapics-card)/msg156979/#msg156979]robot file[/url]).
Where the other parts are simple enough to understand (loading background into VRAM or controlling the sprites) is the the first part of the demo - the file is called "clear" not so "clear". I stumbled over a question which I wasn't able to answer and hopefully one of you might be able to answer?
Disassembling the file showed following steps:
1. Detection of the V9990 (just simple > write a value into VRAM, read it back and compare)
2. Reset the V9990 by IN the register DISPLAY ADJUST > set all ports to 0 (SYSTEM CONTROL Register) > set XTAL1 terminal
(SYSTEM CONTROL Register) > restore DISPLAY ADJUST > disable cursor + select 512kB VRAM > (CONTROL Register)
> reset palette pointer > and set all 64 colours (RGB) to 0
now here comes two parts which I don't understand
As far as I have seen the demo works generally in P1 Mode (two screen which are scrolling parallax) but first in step
3. there is SCREEN MODE Register (#6) set with a Bitmap-Mode (&97) for the sprites (&07F080 address VRAM)
and
4. SCREEN MODE Register (#6,7) is set with P1 Mode set.
Is this possible to set two different modes on the V9990?
I mean, if I delete the first SCREEN MODE Register set then the sprites (of the jumping robot) are missing.
And if I delete the second SCREEN MODE Register set part then the background is missing.
I'm somehow lost and I need some guidance.
You are much more experienced than me!