[V9990] Q&A Official Thread

Page 1/18
| 2 | 3 | 4 | 5 | 6

By tvalenca

Paladin (705)

tvalenca's picture

01-03-2016, 17:26

Following the trend, Lets use this thread to discuss about V9990 (GFX-9000/Video9000/Powergraph) programming.

Login or register to post comments

By JohnHassink

Ambassador (5358)

JohnHassink's picture

01-03-2016, 18:04

I often considered to give it a try, as there is supposed to be a powerful form of BASIC to command it? Still, I never crossed the barrier, if you know what I mean. I think that a nice tutorial would inspire people to try something with it. Maybe such a thing already exists and I missed it?

By Daemos

Paragon (1668)

Daemos's picture

01-03-2016, 18:17

Like +1

By Kai Magazine

Paragon (1241)

Kai Magazine's picture

01-03-2016, 18:44

Yes JohnHassink, the powerful form of Basic is called Powerbasic (ironically) and right now is only useful on turbo-R since the msx2 version is not stable.

You can find the powerbasic files here:

http://www.msx.ch/sunformsx/

You can see a description of the commands here:

http://msxbanzai.tni.nl/v9990/powerbasic.html

You can find technical documentation here:

http://www.faq.msxnet.org/gfx9000.html

I am using this video as a tutorial to learn powerbasic:

https://www.youtube.com/watch?v=LNyfkCnyQXg

Unfortunatelly, I have to copy the code from the video itself since I do not have the demo itself.
I see Manuel was the one who posted this video, so perhaps manuel has the demo and can share it with us?

By JohnHassink

Ambassador (5358)

JohnHassink's picture

01-03-2016, 19:04

Thanks for the precious information, Kai Magazine!

By Kai Magazine

Paragon (1241)

Kai Magazine's picture

01-03-2016, 19:35

You are welcome Smile

By the way, I just discovered 10 minutes ago, that gbasic (another gfx9000 basic, but without turbo basic (AKA xbasic or basic kun), so it is extremelly slow, but msx2 compatible) can coexist with the regular version of turbobasic!!
Offcourse regular turbobasic cannot handle the gfx9000 sintaxis (or anything gfx9000 related) but this means that we can handle the main gfx9000 operations easily outside of the turboblock, and we can handle the graphic operations within the turbo block using vdp commands, out, vpoke...
Now we have to find what set of vdp, out and vpoke to use to do the regular graphic operations we want to use inside a turbo block: copy, put sprite, set scroll, set page.

With only this 4 instructions we can start working big time, so things are looking better!

By tvalenca

Paladin (705)

tvalenca's picture

01-03-2016, 20:29

@Kai, Did you tried GBASIC + "plain" XBASIC?

By Kai Magazine

Paragon (1241)

Kai Magazine's picture

01-03-2016, 20:30

I did not try until a copule of hours ago. I did not know those 2 can coexist together.

By Kai Magazine

Paragon (1241)

Kai Magazine's picture

01-03-2016, 20:49

My plan was to use xbasic + normal basic + outs to initialize the gfx9000 and do all the graphic operations because I assumed gbasic and xbasic would not be compatible, but since gbasic does not use Call commands, there are no conflicts. Amazing. This simplifies the developement for z80 + gfx9000

By Kai Magazine

Paragon (1241)

Kai Magazine's picture

01-03-2016, 20:46

After this, I offcourse attempted to load xbasic gfx9000 version (just the xbasic.bin, without the other 2 files) but the computer resets, probably because that xbasic is designed to be loaded just the way it is used in the LDR file attached, but that way only works on Turbo-r.
I wonder if it would be too difficult to modify that gfx9000 xbasic so it can be loaded as the regular xbasic?
This way, we could have a gfx9000 xbasic within gbasic. Perfect for z80!

By Kai Magazine

Paragon (1241)

Kai Magazine's picture

01-03-2016, 20:49

I also see that, loading the full powerbasic on a turbo-r leaves 18k free of basic memory.
But loading gbasic and regular xbasic leaves 25k of free basic!
so it would be EVEN BETTER to be able to use gbasic + xbasic GFX9K instead of powerbasic since those 7 k are very much needed when coding in xbasic...

Page 1/18
| 2 | 3 | 4 | 5 | 6
My MSX profile