Author Topic: GFA Anyone?  (Read 14920 times)

0 Members and 1 Guest are viewing this topic.

Offline Architect_414

  • C= 64
  • **
  • Posts: 53
  • Karma: 2
    • View Profile
GFA Anyone?
« on: October 08, 2007 »
If anyone here remembers GFA Basic for Atari ST?

Well thats the main language currently for ones-self
Just started a few weeks ago, got a few textscrollers going, wonder if anyone knows how to do some tricks in GFA?
Post here please if you do, id like to learn some new stuff  :)

EDIT: Ooops, i think i posted this in the wrong place! Sorry! Move if need be  ::)
« Last Edit: October 08, 2007 by Architect_414 »

Offline Hotshot

  • DBF Aficionado
  • ******
  • Posts: 2114
  • Karma: 91
    • View Profile
Re: GFA Anyone?
« Reply #1 on: October 08, 2007 »
If anyone here remembers GFA Basic for Atari ST? 

nope I couldnt remmy these but I am sure people out there can help you.

I think you should learn freebasic(they are free to download) as it can do anythings that you want to do on pc such as demo coding.

There is Freebasic forum and also tutorial too.

 :cheers:

Offline p01

  • Atari ST
  • ***
  • Posts: 158
  • Karma: 51
    • View Profile
    • www.p01.org
Re: GFA Anyone?
« Reply #2 on: October 08, 2007 »
I used to be a GFA coder. And a fan of dots and synchronized effects.

What kind of things have you done, want to do ?

Once you reach a certain level, you end up generating massive .LST with a zillion of CARD{foo}=bar and so on. :p

Hotshot: Do not under estimate GFA basic. It is 2-5x slower than ASM but impressive things can be done. The last effect I worked on, back in the days, was an 800 dots curve in fullscreen, 100% in GFA basic. On Atari ST, doing a fullscreen requires that ALL the code is synchronized and the frequency of the screen is changed 4x per scanline. ... BTW one VBL is 40,000 NOP on Atari ST ;)

Offline Shockwave

  • good/evil
  • Founder Member
  • DBF Aficionado
  • ********
  • Posts: 17414
  • Karma: 498
  • evil/good
    • View Profile
    • My Homepage
Re: GFA Anyone?
« Reply #3 on: October 08, 2007 »
Hotshot: Do not under estimate GFA basic. It is 2-5x slower than ASM but impressive things can be done. The last effect I worked on, back in the days, was an 800 dots curve in fullscreen, 100% in GFA basic. On Atari ST, doing a fullscreen requires that ALL the code is synchronized and the frequency of the screen is changed 4x per scanline.

Amen to that.

I don't think any language should be bashed and if you're happy with it keep it going, I would also be really interested to see your scrollers :)
Shockwave ^ Codigos
Challenge Trophies Won:

Offline Architect_414

  • C= 64
  • **
  • Posts: 53
  • Karma: 2
    • View Profile
Re: GFA Anyone?
« Reply #4 on: October 08, 2007 »
If anyone here remembers GFA Basic for Atari ST? 

nope I couldnt remmy these but I am sure people out there can help you.

I think you should learn freebasic(they are free to download) as it can do anythings that you want to do on pc such as demo coding.

There is Freebasic forum and also tutorial too.

 :cheers:
Heh, for PC i use c++ (even though im not good at it!)  ;D

I used to be a GFA coder. And a fan of dots and synchronized effects.

What kind of things have you done, want to do ?

Once you reach a certain level, you end up generating massive .LST with a zillion of CARD{foo}=bar and so on. :p

Well ive mainly just done text scrollers  :-[
But im really interested in raster bars, i must say they are one of my favorite oldskool demo tricks  :)

Offline Architect_414

  • C= 64
  • **
  • Posts: 53
  • Karma: 2
    • View Profile
Re: GFA Anyone?
« Reply #5 on: October 08, 2007 »
Hotshot: Do not under estimate GFA basic. It is 2-5x slower than ASM but impressive things can be done. The last effect I worked on, back in the days, was an 800 dots curve in fullscreen, 100% in GFA basic. On Atari ST, doing a fullscreen requires that ALL the code is synchronized and the frequency of the screen is changed 4x per scanline.

Amen to that.

I don't think any language should be bashed and if you're happy with it keep it going, I would also be really interested to see your scrollers :)
Hehe, im really sure you wouldnt want to see my scrollers, their Extremely simple ones, but nevertheless, im proud of them  :D
« Last Edit: October 08, 2007 by Architect_414 »

Offline Hotshot

  • DBF Aficionado
  • ******
  • Posts: 2114
  • Karma: 91
    • View Profile
Re: GFA Anyone?
« Reply #6 on: October 08, 2007 »
Quote
I don't think any language should be bashed and if you're happy with it keep it going,

I agree

Offline p01

  • Atari ST
  • ***
  • Posts: 158
  • Karma: 51
    • View Profile
    • www.p01.org
Re: GFA Anyone?
« Reply #7 on: October 08, 2007 »
I didn't do much rasters, but a few plasmas. The idea is basically the same. First and foremost you should go in Supervisor mode and switch off the interuptions:
Code: [Select]
super%=GEMDOS(32,L:0)
BYTE{&Hfffffa09}=0
Then, in your main loop, "stabilize" your code with the beam:
Code: [Select]
REPEAT
b|=BYTE{&HFFFF8209}
UNTIL b|
VOID SHL(1,-b|)
Then set the background color ( one scanline = 128 NOP @ 50Hz, so you might need to wait until the next scanline )
Code: [Select]
CARD{&HFFFF8240}=value;And finally on exit, reset the interuptions and switch back to User mode:
Code: [Select]
BYTE{&HFFFA09}=100
~GEMDOS(32,L:super%)
« Last Edit: October 08, 2007 by p01 »

Offline Architect_414

  • C= 64
  • **
  • Posts: 53
  • Karma: 2
    • View Profile
Re: GFA Anyone?
« Reply #8 on: October 08, 2007 »
Code: [Select]
I didn't do much rasters, but a few plasmas. The idea is basically the same. First and foremost you should go in Supervisor mode and switch off the interuptions:[code]super%=GEMDOS(32,L:0)
BYTE{&Hfffffa09}=0
Then, in your main loop, "stabilize" your code with the beam:
Code: [Select]
REPEAT
b|=BYTE{&HFFFF8209}
UNTIL b|
VOID SHL(1,-b|)
Then set the background color ( one scanline = 128 NOP @ 50Hz, so you might need to wait until the next scanline )
Code: [Select]
CARD{&HFFFF8240}=value;And finally on exit, reset the interuptions and switch back to User mode:
Code: [Select]
BYTE{&HFFFA09}=100
~GEMDOS(32,L:super%)
[/code]
Hmm ill try that right now, as long as it'll work in HI-RES (Monochrome) as this atari wont work in anything but, if not ill have to wait till tommorow till i get the other atari out
Thanks!  :cheers:

Offline p01

  • Atari ST
  • ***
  • Posts: 158
  • Karma: 51
    • View Profile
    • www.p01.org
Re: GFA Anyone?
« Reply #9 on: October 08, 2007 »
Well, you can try than in Saint or Steem. Both are REALLY REALLY good.

Offline Architect_414

  • C= 64
  • **
  • Posts: 53
  • Karma: 2
    • View Profile
Re: GFA Anyone?
« Reply #10 on: October 08, 2007 »
Well, you can try than in Saint or Steem. Both are REALLY REALLY good.
I generally use STeem for most things, but for coding i prefer going the proper hardware, jsut gives you that feel..that nothing else can  :D

Offline Architect_414

  • C= 64
  • **
  • Posts: 53
  • Karma: 2
    • View Profile
Re: GFA Anyone?
« Reply #11 on: October 08, 2007 »
Ok p01,
Im going to ask quite possibly the silliest question.
How in gods name do i get into supervisor mode?
Sometimes i really hate not having much knowledge, but i suppose we all have to start somewhere.

Offline slippy

  • Atari ST
  • ***
  • Posts: 172
  • Karma: 42
    • View Profile
Re: GFA Anyone?
« Reply #12 on: October 08, 2007 »
Doin' it the hard way is like

Code: [Select]
pea 0.w
move.w #$20,-(sp)
trap #1

:)

Good ole' times ... I really had that in my mind ...

SLiPPY

Offline Architect_414

  • C= 64
  • **
  • Posts: 53
  • Karma: 2
    • View Profile
Re: GFA Anyone?
« Reply #13 on: October 08, 2007 »
Doin' it the hard way is like

Code: [Select]
pea 0.w
move.w #$20,-(sp)
trap #1

:)

Good ole' times ... I really had that in my mind ...

SLiPPY
And that'll take me into supervisor mode?
Thanks slippy, good to see you around again  :)

Offline slippy

  • Atari ST
  • ***
  • Posts: 172
  • Karma: 42
    • View Profile
Re: GFA Anyone?
« Reply #14 on: October 08, 2007 »
from within 68k ASM ... yes ... it does :)

Personally I never used GFA Basic - just for tool coding those days (converting 4bitplane images to 1 bitplane aso.) ... I had my fingers on omicron basic and STOS - but for the "serious" stuff I loved to use Turbo Assembler and its Bugaboo ... my oh my ... that's been fun! :)

Even my SidSound Designer was completely done in 68k ASM

What group were/are you in?

Offline p01

  • Atari ST
  • ***
  • Posts: 158
  • Karma: 51
    • View Profile
    • www.p01.org
Re: GFA Anyone?
« Reply #15 on: October 08, 2007 »
or the easy way
Code: [Select]
super%=GEMDOS(32,L:0) as I said above ;)

Offline Architect_414

  • C= 64
  • **
  • Posts: 53
  • Karma: 2
    • View Profile
Re: GFA Anyone?
« Reply #16 on: October 08, 2007 »
from within 68k ASM ... yes ... it does :)

Personally I never used GFA Basic - just for tool coding those days (converting 4bitplane images to 1 bitplane aso.) ... I had my fingers on omicron basic and STOS - but for the "serious" stuff I loved to use Turbo Assembler and its Bugaboo ... my oh my ... that's been fun! :)

Even my SidSound Designer was completely done in 68k ASM

What group were/are you in?

Ah i see, well me and assembler of any architecture do NOT agree! =P
But i think the source that p01 included had the supervisor mode n whatnot in it, but it crashed my atari, now to try again!

And in answer to your question, ive never been in a demogroup  :)

Offline Shockwave

  • good/evil
  • Founder Member
  • DBF Aficionado
  • ********
  • Posts: 17414
  • Karma: 498
  • evil/good
    • View Profile
    • My Homepage
Re: GFA Anyone?
« Reply #17 on: October 08, 2007 »
And in answer to your question, ive never been in a demogroup  :)

Believe me, you're better off like that sometimes.
Shockwave ^ Codigos
Challenge Trophies Won:

Offline Architect_414

  • C= 64
  • **
  • Posts: 53
  • Karma: 2
    • View Profile
Re: GFA Anyone?
« Reply #18 on: October 08, 2007 »
And in answer to your question, ive never been in a demogroup  :)

Believe me, you're better off like that sometimes.
Hmm why do you think this?  ??? :)

Offline Shockwave

  • good/evil
  • Founder Member
  • DBF Aficionado
  • ********
  • Posts: 17414
  • Karma: 498
  • evil/good
    • View Profile
    • My Homepage
Re: GFA Anyone?
« Reply #19 on: October 08, 2007 »
One reason;

http://dbfinteractive.com/index.php?topic=2410.0

For now, enjoy the learning process and make stuff for the friendship and the fun mate.
We will help you here as much as we can as long as you promise to show us what you make :)
Shockwave ^ Codigos
Challenge Trophies Won: