GPL on MegaSDCart

Talk about programming of homebrew games only.
User avatar
Mobsie
Posts: 708
Joined: Fri Jun 13, 2008 10:38 am
Location: Weinheim, Germany

Re: GPL on MegaSDCart

Post by Mobsie » Sat Feb 11, 2023 11:23 am

What a amazing great picture
User avatar
@username@
Posts: 320
Joined: Tue Oct 22, 2013 6:59 pm
Location: Scotland

Re: GPL on MegaSDCart

Post by @username@ » Sun Feb 12, 2023 10:42 pm

Another day, another game working!
cart-014.png
You do not have the required permissions to view the files attached to this post.
User avatar
MADrigal
Site Admin
Posts: 1189
Joined: Sun Sep 15, 2013 1:00 pm
Contact:

Re: GPL on MegaSDCart

Post by MADrigal » Fri Feb 17, 2023 11:09 pm

Hi all - can you please reword/explain how this works?
You load the GPL like it was a normal ROM (such as the Basic interpreter) saved on SD, right?
And then how do you load the games? From cassette tape/audio file?
Or does the ROM contain GPL and the collection of games with an in-game menu to choose the one to execute?
User avatar
@username@
Posts: 320
Joined: Tue Oct 22, 2013 6:59 pm
Location: Scotland

Re: GPL on MegaSDCart

Post by @username@ » Fri Feb 17, 2023 11:54 pm

To use these, just extract the zip file to the root of your SD card - which will create a GPL folder with the required ROMs, patches and cvgpl.bin

Load the cvgpl.bin ROM through MegaSDCart menu.

For now, the CV ROM contains the menu to load and patch each game.

TI99 keys are

E - Up, S - Left, D - Right, X down, Q - fire.

6 - Proceed, 9 - Back

Joystick1 is available where the game uses it.

Tom and Mega are currently testing the TI PEB drive module emulation - which will bring all 12 Scott Adams adventures with progress saving, only on the MegaSDCart.

The "dark mode" Wumpus and Car Wars came from me spending too much time watching Youtube videos of the TMS replacement chip where the users were changing the palette on the chip - which made me think - why not just patch the ROM?
User avatar
MADrigal
Site Admin
Posts: 1189
Joined: Sun Sep 15, 2013 1:00 pm
Contact:

Re: GPL on MegaSDCart

Post by MADrigal » Sat Feb 18, 2023 12:06 am

Thanks for the explanation.
If I run the .bin on emulator instead, it just shows the menu but is unable to load any files. I understand this is different when running on MegaSD, and the bin is able to "hook" the correct files.
It is a very clever system indeed! :)
User avatar
@username@
Posts: 320
Joined: Tue Oct 22, 2013 6:59 pm
Location: Scotland

Re: GPL on MegaSDCart

Post by @username@ » Sat Feb 18, 2023 5:16 pm

Here's a couple of emulator files.

For Salora Manager, run creativision -3 -c wumpus.cas then just type CRUN.

For creatiVision, run creativision -r wumpus.bin -g

Enjoy!
You do not have the required permissions to view the files attached to this post.
User avatar
MADrigal
Site Admin
Posts: 1189
Joined: Sun Sep 15, 2013 1:00 pm
Contact:

Re: GPL on MegaSDCart

Post by MADrigal » Sun Feb 19, 2023 12:02 am

Gosh it works like a charm!!
The gameplay is very similar to Mattel's "Dungeons and Dragons" and "Masters of Universe" handheld - that I simulated back in 2001 ( http://www.madrigaldesign.it/sim/download.php#sect4 )
User avatar
@username@
Posts: 320
Joined: Tue Oct 22, 2013 6:59 pm
Location: Scotland

Re: GPL on MegaSDCart

Post by @username@ » Tue Feb 21, 2023 8:33 pm

BASIC Color Character Sets

I thought it may be worth while to copy a BASIC demo to GPL, just to do a performance comparison.

COLOR 0 is the background colour, VDP register 7.

However BASIC always sets it to foreground Transparent, Background colour.

So COLOR 0,2,2 would give VDP Register 7 == 01

Now the real fun begins!

Chapter 13 shows the character sets as 1 == 01-07, 2 == 8-15, 3 == 16-23 and so on.

This is inline with the VDP colour table documentation.

However BASIC likes to confuse things a little.

COLOR 1,2,2

This would make you expect colour table entry 0 (1 for BASIC) to be set to $11.

So BASIC uses colour codes 1 through 16, which is 4 bits 0 through 15.

The BIG fly in the ointment is that COLOR 1 maps to colour table entry 21!!

BASIC uses the following formula to determine which colour table entry to update.

For COLOR 1,2,2

Take COLOR 1
Decrement
Add 20
And 31

This puts COLOR1 at the 20th entry in the colour table!!

The AND 31 ($1F) just ensures it wraps correctly, when added to colour table base address.

Some investigation shows that BASIC sees ASCII32 as Pattern table entry 192 ($C0).

By subtracting 32 from 192, you get entry 160 - which is colour table entry 21. Subtract 1, as the table in VDP is zero based - and you find the magical 20 :D :D
User avatar
Mobsie
Posts: 708
Joined: Fri Jun 13, 2008 10:38 am
Location: Weinheim, Germany

Re: GPL on MegaSDCart

Post by Mobsie » Wed Feb 22, 2023 11:16 am

This GPL was a cool thing on the TI. I also find the cpu interesting, the changeable workspace, some interesting functions.
User avatar
@username@
Posts: 320
Joined: Tue Oct 22, 2013 6:59 pm
Location: Scotland

Re: GPL on MegaSDCart

Post by @username@ » Wed Feb 22, 2023 7:38 pm

OK - here's a minimal graphics example from http://www.madrigaldesign.it/creativemu ... xample.zip converted to GPL.

A nice little goldfish :D
You do not have the required permissions to view the files attached to this post.
Post Reply