[V9990] Q&A Official Thread

Page 13/18
6 | 7 | 8 | 9 | 10 | 11 | 12 | | 14 | 15 | 16 | 17 | 18

By tvalenca

Paladin (719)

tvalenca's picture

14-10-2016, 18:32

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.

By tvalenca

Paladin (719)

tvalenca's picture

01-11-2016, 18:20

on a really old post, tvalenca wrote:

(...)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.

By nitrofurano

Champion (287)

nitrofurano's picture

02-09-2018, 11:01

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?

By hit9918

Prophet (2825)

hit9918's picture

02-09-2018, 19:26

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

By hit9918

Prophet (2825)

hit9918's picture

02-09-2018, 19:45

in one of the programs I wrote register like this

Quote:

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

By nitrofurano

Champion (287)

nitrofurano's picture

02-09-2018, 23:05

thanks! Smile

By nitrofurano

Champion (287)

nitrofurano's picture

03-09-2018, 18:32

just a question: how vpoke works there? (using i/o ports on msxbasic)

By hit9918

Prophet (2825)

hit9918's picture

03-09-2018, 19:57

in the example codes the gosub 10000 sets up the vram address
and then OUT &h60 makes vpokes

By nitrofurano

Champion (287)

nitrofurano's picture

03-09-2018, 20:25

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) )

By hit9918

Prophet (2825)

hit9918's picture

03-09-2018, 20:35

well did you get the demo to run?
the truecolor demo has blits.

Page 13/18
6 | 7 | 8 | 9 | 10 | 11 | 12 | | 14 | 15 | 16 | 17 | 18
My MSX profile