Got it. I would still have one pallete for each layer, but I can select each layer's pallete from the four possible.
This probably means that I can change the used pallete on a line interruption. (I read that you got corrupted graphics if you change pallete colors during vertical retrace)
This would allow a nice effect like on Sega Mega Drive's Sonic Labirynth Zone (underwater pallete is different from outside water)
Thanks hit9918 and assembler.
(...)Just to mention: Just managed to load a 3-plane image on Video9000 emulation (back frame=v9958, mid frame P1 layer B and front frame P1 layer A)
Since I'm using plain BASIC, I BLOADed .SC5 files on Screen5, then copied using VPEEK and OUTed it to V9990. SLOW.LIKE.HELL!(...)
I'm not sure if anyone thought that way, but PowerBASIC can BLOAD *.SC5 files on P1. Just BLOAD "filename.sc5",S
on PowerBASIC's SCREEN2 and you're good to go! PowerBASIC fills Pattern Address Table automatically.
a question: where can we find simple examples in pure interpreted msxbasic, without extensions, setting display modes and writing on the display ram area, only using i/o ports directly?
look here
https://www.msx.org/forum/msx-talk/development/v9990-qa-offi...
blit a truecolor pic
there is a nice screenshot
and here is tilemode
https://www.msx.org/forum/msx-talk/hardware/tecnobytes-is-cr...
and a screen wide of sprites
in one of the programs I wrote register like this
12 out (&h64),128+i 'register write mode: 128 + register number
and in other places I did it without adding 128
I got no idea which is the right one
thanks!
just a question: how vpoke works there? (using i/o ports on msxbasic)
in the example codes the gosub 10000 sets up the vram address
and then OUT &h60 makes vpokes
thanks, in theory, and with some experimentation, i had some idea of that
i understood why that was not working, somehow that 256x256 "cls" was destroying it - when i removed that, or changing that to 256x212, the gosub 10000 started to work fine - i have no idea what caused that
now, there are two things i’m interested to know how to do in msxbasic:
- vdp commands - http://msxbanzai.tni.nl/v9990/manual.html#command has some documentation, but it looks confusing - it explains briefly what is used, but not specifically enough, which results quite painful to try to translate that into code (sorry saying that, guyver800, it’s the truth... :S - for now, lmmv, lmmc and lmmm seems the most needed )
- setting screen modes (seems a bit simpler, but i don’t know where to start - i wanted to try all screen modes - the confusing part is that the information at http://msxbanzai.tni.nl/v9990/manual.html#registersettings (using registers 6 and 7, and no idea what P#7 means) doesn’t look coincident with what is in the data lines in the msxbasic codes (using registers 6 and 8) )
well did you get the demo to run?
the truecolor demo has blits.