My Video series on GFA Basic - Suggestions for series 3?

GFA BASIC-related articles in here please

Moderators: simonsunnyboy, Mug UK, Zorro 2, Moderator Team

Post Reply
ASN
Retro freak
Retro freak
Posts: 12
Joined: Tue Mar 16, 2021 3:50 pm

My Video series on GFA Basic - Suggestions for series 3?

Post by ASN »

Hello all.

The past months I've been busy rediscovering GFA Basic and I ended up recording lots of videos on it already. Part 28 concludes series 2 of my GFA BASIC videos. I started preparing for series 3 already, and for that one I want to focus on the slightly more advanced options for moving graphics around.

Note that I am in no way a skilled coder like some other persons on here. I just like documenting my (re-)discovery of this great language and make this stuff as easy to understand as possible for anyone who wants to have a go at GFA.

Subjects I intend to cover are:

- Flicker-free animations using screen swapping
- Direct memory allocation and manipulation
- Uses of the BMOVE command
- Optimise my animation with RC_COPY
- Clipping with RC_INTERSECT
- Smooth full screen movement by pre-shifting
- Use of the BITBLT command
- Use of the built-in sprite support
- Maybe a video about playing music

I will stick to monochrome for this series, but maybe will convert it to colour for a series 4 if I am still motivated by then.

My questions:
1) Does anybody have suggestions for the best platform to share the code for this series for everyone to fool around with?
2) And does anyone have a specific suggestion for a subject to cover?
===============================================

Always remember:
Coding is the best way to create your own favourite toys!

Atari ST Nostalgia:
https://www.youtube.com/channel/UCxqXyl ... vErDeSwKTw

https://github.com/AtariSTNostalgia
Playmobil
Captain Atari
Captain Atari
Posts: 223
Joined: Fri Nov 13, 2015 7:40 pm

Re: My Video series on GFA Basic - Suggestions for series 3?

Post by Playmobil »

Hoooooooooo ! Never seen your youtube channel before for GFA ! For sure I will take a look !

For me I love GEM, but need to see your videos before answering what is missing !
MM41
Obsessive compulsive Atari behavior
Obsessive compulsive Atari behavior
Posts: 141
Joined: Sun Jun 28, 2015 2:36 pm
Location: France

Re: My Video series on GFA Basic - Suggestions for series 3?

Post by MM41 »

Thank you ASN , i see your channel since january , it's great :)
GFA power !

Subjects for series 3 valided !
Last edited by MM41 on Fri Apr 16, 2021 8:06 pm, edited 4 times in total.
nagual
Captain Atari
Captain Atari
Posts: 466
Joined: Mon Sep 11, 2006 10:15 am
Location: Frankfurt am Main, Germany

Re: My Video series on GFA Basic - Suggestions for series 3?

Post by nagual »

Maybe you can make a video about RSC - how to create RSC structures using Interface or any other RSC editor and how call RSC structures from GFA Basic ?
I never understand this part so I really appreciate if you can make such a video :-)

Cheers!
:cheers:
Playmobil
Captain Atari
Captain Atari
Posts: 223
Joined: Fri Nov 13, 2015 7:40 pm

Re: My Video series on GFA Basic - Suggestions for series 3?

Post by Playmobil »

Just take an over fly of your videos... We need some GFA tutorials about Multitasking, Gem, ehanced resolutions, ehanced colors...
ASN
Retro freak
Retro freak
Posts: 12
Joined: Tue Mar 16, 2021 3:50 pm

Re: My Video series on GFA Basic - Suggestions for series 3?

Post by ASN »

Playmobil wrote: Fri Apr 16, 2021 9:46 pm We need some GFA tutorials about Multitasking, Gem, ehanced resolutions, ehanced colors...
Anything other than plain ST is above my head at the moment. But exploring coding GEM-interface based programs is on my re-discovery list.
===============================================

Always remember:
Coding is the best way to create your own favourite toys!

Atari ST Nostalgia:
https://www.youtube.com/channel/UCxqXyl ... vErDeSwKTw

https://github.com/AtariSTNostalgia
ASN
Retro freak
Retro freak
Posts: 12
Joined: Tue Mar 16, 2021 3:50 pm

Re: My Video series on GFA Basic - Suggestions for series 3?

Post by ASN »

nagual wrote: Fri Apr 16, 2021 7:36 pm Maybe you can make a video about RSC - how to create RSC structures using Interface or any other RSC editor and how call RSC structures from GFA Basic ?
I have never done that before, but is sounds like an interesting subject to explore and do videos on. Thnx!
===============================================

Always remember:
Coding is the best way to create your own favourite toys!

Atari ST Nostalgia:
https://www.youtube.com/channel/UCxqXyl ... vErDeSwKTw

https://github.com/AtariSTNostalgia
User avatar
Mug UK
Administrator
Administrator
Posts: 11597
Joined: Thu Apr 29, 2004 7:16 pm
Location: Stockport (UK)
Contact:

Re: My Video series on GFA Basic - Suggestions for series 3?

Post by Mug UK »

My RSC files from my old (old!) projects of yesteryear. Quite a lot were used with Professional Virus Killer v2.x and its associated programs.

Also includes the old RSC creation tool I used to use - there's probably better tools, but this is the one I always used.

https://www.dropbox.com/s/o1zvu2udpu4kw ... S.ZIP?dl=0
My main site: http://www.mug-uk.co.uk - slowly digging up the bits from my past (and re-working a few): Atari ST, Sega 8-bit (game hacks) and NDS (Music ripping guide).

I develop a free Word (for Windows) add-in that's available for Word 2007 upwards. It's a fix-it toolbox that will allow power Word users to fix document errors. You can find it at: http://www.mikestoolbox.co.uk
User avatar
charles
10 GOTO 10
10 GOTO 10
Posts: 2844
Joined: Tue Aug 17, 2004 12:11 am
Location: ont. Canada
Contact:

Re: My Video series on GFA Basic - Suggestions for series 3?

Post by charles »

there also an area I have never seen or had first hand experience,
however many insist with the gfa inner workings
garbage collection command/function apparently violate and resituate addresses of other memory space previously allocated.
id like to see it happen to believe its true ...users should be aware of this
it(mainily with strings)
results in making seemingly normal programs malfunction....
The radioactive half-life : )
Atari is a lifestyle,not a hobby.
HOLD ON ! ! ! Im printing unreadable characters ...!
User avatar
charles
10 GOTO 10
10 GOTO 10
Posts: 2844
Joined: Tue Aug 17, 2004 12:11 am
Location: ont. Canada
Contact:

Re: My Video series on GFA Basic - Suggestions for series 3?

Post by charles »

Code: Select all

RESERVE (4000 DIV 256)*256
DIM a|(900)
a$=SPACE$(900)
PRINT "a$  =";V:a$
PRINT "a|()=";V:a|(0)
a$=SPACE$(4)
~FRE(x)
PRINT "a$  =";V:a$
PRINT "a|()=";V:a|(0)
RESERVE
im not sure maybe somebody else has better experience with this
but this garbage collection seems to only affect string's addresses?
The radioactive half-life : )
Atari is a lifestyle,not a hobby.
HOLD ON ! ! ! Im printing unreadable characters ...!
Yvo
Atariator
Atariator
Posts: 23
Joined: Sun Nov 24, 2019 8:43 am

Re: My Video series on GFA Basic - Suggestions for series 3?

Post by Yvo »

Bonjour,
Pour expliquer comment le gfa gère la mémoire, il y a cet article paru dans le magazine français "ST Magazine". Le Numéro 63, page 60 à 63. Son auteur est "Le féroce lapin". C'est en français.
http://download.abandonware.org/magazin ... %20061.jpg
http://download.abandonware.org/magazin ... %20063.jpg
Sinon, les vidéos sur le GFA sont très bien pour apprendre et aussi s'y remettre.
Les tutoriels demandés par les autres commentaires sont intéressants.
Les articles de ce magazine sur le gem par Claude Attard sont intéressants.
Il y a aussi plein de sources dans le magazine sur disquette Ictari (en anglais).
Un autre truc pas mal, c'est l'interface Zest en Gfa.
Je sais bien que cela n'intéressera que moi, mais en ce moment je m'amuse (c'est lent certes) à réécrire le programme de dépliage de coupes géologiques que j'avais écrit pendant ma thèse. Ces articles m'aident pas mal. À l'époque (avant 1991), ces articles n'étaient même pas sortis et j'avais fait avec les moyens du bord (Gfabasic 2.0). Ce que j'avais sous la main, c'était Gemkit de pressimages (l'éditeur de ST Magazine). J'ai quelques listings sur papier mais c'est dépassé par le Gfa Basic version 3.
Pour l'anglais, comme d'habitude, c'est DeepL qui a fait le travail (Cela a l'air mieux que Google translate, j'ai essayé les deux avant).

Hello,
To explain how the gfa manages the memory, there is this article published in the French magazine "ST Magazine". Number 63, page 60 to 63. Its author is "Le féroce lapin". It is in French.
Otherwise, the videos on GFA are very good to learn and also to get back to it.
The tutorials requested by the other comments are interesting.
The articles in this magazine about the gem by Claude Attard are interesting.
There are also a lot of sources in the magazine on the Ictari diskette (in English).
Another good thing is the Zest interface in Gfa.
I know that this will only interest me, but at the moment I am having fun (it is slow) rewriting the geological section unfolding program that I wrote during my thesis. These articles help me a lot. At the time (before 1991), these articles were not even published and I had done with the means at hand (Gfabasic 2.0). What I had at hand was Gemkit from pressimages (the publisher of ST Magazine). I have some listings on paper but it is outdated by Gfa Basic version 3.
For English, as usual, DeepL did the job (It looks better than Google translate, I tried both before).

Translated with www.DeepL.com/Translator (free version)
charles wrote: Mon Apr 19, 2021 12:27 am

Code: Select all

RESERVE (4000 DIV 256)*256
DIM a|(900)
a$=SPACE$(900)
PRINT "a$  =";V:a$
PRINT "a|()=";V:a|(0)
a$=SPACE$(4)
~FRE(x)
PRINT "a$  =";V:a$
PRINT "a|()=";V:a|(0)
RESERVE
im not sure maybe somebody else has better experience with this
but this garbage collection seems to only affect string's addresses?
ASN
Retro freak
Retro freak
Posts: 12
Joined: Tue Mar 16, 2021 3:50 pm

Re: My Video series on GFA Basic - Suggestions for series 3?

Post by ASN »

I have a video prepared explaining the workings of RESERVE and MALLOC. I like the idea of a "semi-deep-dive". I had some experiences that looked like GFA didn't clean up properly after ending a program.
===============================================

Always remember:
Coding is the best way to create your own favourite toys!

Atari ST Nostalgia:
https://www.youtube.com/channel/UCxqXyl ... vErDeSwKTw

https://github.com/AtariSTNostalgia
User avatar
lp
Fuji Shaped Bastard
Fuji Shaped Bastard
Posts: 2576
Joined: Wed Nov 12, 2003 11:09 pm
Location: GFA Headquarters
Contact:

Re: My Video series on GFA Basic - Suggestions for series 3?

Post by lp »

It's not to complicated. Never rely on string addresses to remain constant. Also ERASE is not wise, should be obvious why.

There's a long standing bug in GFA regarding it's internal garbage collect. Affects all original versions.
User avatar
charles
10 GOTO 10
10 GOTO 10
Posts: 2844
Joined: Tue Aug 17, 2004 12:11 am
Location: ont. Canada
Contact:

Re: My Video series on GFA Basic - Suggestions for series 3?

Post by charles »

maybe CLR and CLEAR DIM and REDIM ERASE FRE() and RESERVE and MALLOC
could all be in one video series under memory management INLINE too?
The radioactive half-life : )
Atari is a lifestyle,not a hobby.
HOLD ON ! ! ! Im printing unreadable characters ...!
ASN
Retro freak
Retro freak
Posts: 12
Joined: Tue Mar 16, 2021 3:50 pm

Re: My Video series on GFA Basic - Suggestions for series 3?

Post by ASN »

Thanks for the answers. They are some really interesting suggestions that I put on my GFA challenges to-do list for after I finish the graphics part. So it might take me a while to get to them, but I got very excited about it.

In the meantime I created a github account at https://github.com/AtariSTNostalgia to store some of my GFA example code.
===============================================

Always remember:
Coding is the best way to create your own favourite toys!

Atari ST Nostalgia:
https://www.youtube.com/channel/UCxqXyl ... vErDeSwKTw

https://github.com/AtariSTNostalgia
Post Reply

Return to “GFA BASIC”