gtBASIC

Using, learning, programming and modding the Gigatron and anything related.
Forum rules
Be nice. No drama.
at67
Posts: 433
Joined: 14 May 2018, 08:29

Re: gtBASIC

Post by at67 »

There is no UPPER$, use LCASE$() and UCASE$().
wbushby
Posts: 82
Joined: 16 Jul 2021, 10:59

Re: gtBASIC

Post by wbushby »

Great. Thank you.
I had forgotten about that version of the command in basic.
I must say that the version of GTBasic you sent me recently has corrected a lot of issues i had.
I am able to move forward with some of my older projects
wbushby
Posts: 82
Joined: 16 Jul 2021, 10:59

Re: gtBASIC

Post by wbushby »

I have an issue with trying to create an empty string.

XXX$ = "TEST"
PRINT "1 - ";XXX$
XXX$ = ""
PRINT "2 - ";XXX$

This results in
1 - TEST
2 - TEST
at67
Posts: 433
Joined: 14 May 2018, 08:29

Re: gtBASIC

Post by at67 »

You found another bug, good stuff!

For now erase the string by doing the following:

Code: Select all

doke @XXX$, &h0000
This sets the string length to 0 followed by a zero terminator.
wbushby
Posts: 82
Joined: 16 Jul 2021, 10:59

Re: gtBASIC

Post by wbushby »

Thanks. My inexperience shows. I forgot about DOKE.

I had set it to 1 blank and modified the tests to suit
bmwtcu
Posts: 70
Joined: 01 Nov 2018, 12:02

Re: gtBASIC

Post by bmwtcu »

Frankly Wayne, next to the guy that actually wrote it, you probably have exercised gtBASIC more than most on the forum! Thanks for all your efforts!
wbushby
Posts: 82
Joined: 16 Jul 2021, 10:59

Re: gtBASIC

Post by wbushby »

Here is my beta version of Scott Adams Pirate Adventure. The game plays properly to completion but I haven't tested all potential paths through the adventure.
If you are a fan of the genre give it a try and report any issues back through this forum. I will eventually release the source code for the engine when I have debugged it.
I will now port another adventure.
Attachments
pirateadventure64k.gt1
Game executable
(19.74 KiB) Downloaded 17 times
Hans61
Posts: 54
Joined: 29 Dec 2020, 16:15
Location: Saxonia
Contact:

Re: gtBASIC

Post by Hans61 »

Thanks for the great work. My first time in the genre was Masquerade (Apple II). It keeps the Gigatron alive.
walter
Site Admin
Posts: 134
Joined: 13 May 2018, 08:00

Re: gtBASIC

Post by walter »

Nice product placement in the flyer :-)

I've made https://gigatron.io/emu-dev/ have 64kB so you can run it from there.
wbushby
Posts: 82
Joined: 16 Jul 2021, 10:59

Re: gtBASIC

Post by wbushby »

I can compile it smaller than 64k as it doesn't need it. I will submit a version for normal 32k

Too many strings it seems. Failed to compile all the arrays used.
I will look into compiling them smaller on my next use of the GigaScott engine
Post Reply