[Paradize]

Paradize - Atari and more

GFABASIC stuff and libraries

GFABASIC

As Paradize is using GFABASIC most of the time, we have collected and developed quite a few routines for use in demos and games on the Atari ST.

Feel free to take what you need from here. Make sure to read the copyright notice in the appropiate section before using.

The routines are for GFABASIC 3.x and up. Most of them come with an assembly language inline and GFABASIC prior v3 can't handle these.

We hope you'll have as much fun with these routines as we have using them. If you download anything, we'd like to ask you to visit our forum and drop us a note if possible.

GFABASIC stuff by Paradize

All code pieces in this subsection are © Paradize and you may ofcourse use and (if you want to) improve them. All we require is that our copyright stays intact and that you give us credits or a greeting in your prod.

RoutineDescription
[ZIP]Video mode kernel

A small video mode kernel by Cooper. It allows to switch from any resolution to ST-LOW on Falcon and sets properly ST-LOW on entry in ST-MED while returning to ST-MED without troubles and with restoring palette and screen correctly.

[ZIP]STE DMA Sound Interface

A small assembler inline and GFABASIC sample code how to use the DMA sound of the Atari STE, TT and Falcon from GFABASIC.

This routine assumes the coder understands the STE DMA sound hardware on register level!

[ZIP]Unpacker interface for Speed Packer v3 Mainly the unpacker source of Speed Packer v3 assembled and tested. GFA source for calling and test routine included.
[ZIP]Sprite routine This is a small gem for you: a routine for fast 16x16 pixel sprites in all 4 bitplanes. Assembler source and GFABASIC example included, check the assembly source to understand the data format.
[LST]Gemcol A small procedure that will do mapping of hardware color registers to VDI colors, effectivly stopping the internal conversion of color register numbers by the VDI.
[LST]Jagpad A A small routine for reading Jaguar pad on the extra ST joystick port A. Reads directions and buttons A,B,C, OPTIONS. The coder must check for presence of STE hardware himself. This routine will bomb on plain STs.
[ZIP]Falcon 320x200x256 mode

For Falcon 030 - example source on howto init and use a planar 320x240 pixels video mode with 256 colors

[ZIP]Musicmon 2.5d Replayer

small library to play, fade out and stop Musicmon 2.5d tunes in mod format

[ZIP]Emulator detection

PacifiST style detection whether your program runs on an emulator or not - inlined for use from within GFABASIC

[ZIP]Falcon TrueColor mode 320x240 for both RGB & VGA

For Falcon 030 - example source on howto init and use Truecolor video on the Atari Falcon 030 from GFABASIC with some inlined machine code

[ZIP]GODPAINT support for GFABASIC

For Falcon 030 - small library routines to load .GOD pictures made with GODPAINT into GFABASIC (for use with the True COlor video routines=

[ZIP]Palette Split for ST-LOW

Allows to have 2 distinct palettes on screen in ST-LOW. The point of palette change can be set individually and can be altered per VBL.

GFABASIC caller and INLINE source made with TURBO ASSEMBLER come included.

[ZIP]Alive shell font

routine to display the font used in the Alive shell in your own GFA programs

Inlined by ggn

[ZIP]example for STE hardware scrolling

small example program on how to use the STE hardware scrolling from GFABASIC

by ggn

[LST]32x32 pixel Blitter Sprite

small example program for displaying a 32x32 pixels sprite with direct Blitter access (STE/Falcon only)

by ggn

[ZIP]STE VBL Handler

A VBL handler to be hooked into the VBL queue - it allows you to set all fine scrolling parameters on the STE.

[ZIP]FPATCH2 for GFA

For Falcon use: the functionality of the TOS patch FPATCH2.PRG is embedded into an INLINE so you can call it on your own.

Old TOS Falcon users won't have DMA sound problems then if they forgot to have FPATCH2.PRG loaded.

[ZIP]IKBD Interrupt priority patch for GFA

This patch routine is originally (c) Atari. Paradize inlined it aso you can use it.

The purpose of this patch is to alter the IKBD interrupt. It lowers the priority of the interrupt below that of Timer B and the HBL. In effect this stabilizes all kind of raster effects and split screen effects on the STE. This does not come at expense of custom IKBD routines and leaves all TOS handling for mouse, keyboard and joystick in place. Have stable rasters and still use INKEY$, INP(2), MOUSE and STICK() from GFABASIC.

Full source for Turbo Assembler included

[ZIP]Simon Sunnyboy's Rasters for GFABASIC

Finally: a Timer B handler to have support for rasterbars in GFABASIC. The routine rasters a color register of your choice (0 by default) with a list of colors the programmer can specify and alter on the fly. The width of the raster bars can be controlled as well.

Full m68k source and documentation included!

GFABASIC stuff by others

Here you'll find various GFABASIC routines by other Atarians that are not members of Paradize.

As the stuff here was posted publicly on forums or the net, Paradize assumes redistribution is ok. If you are an author of one of the following routines and you wish us to remove it, get in touch.

Use at your own risk and remember to credit the authors of the respective routines.

RoutineDescription
[ZIP]GFA Linkfiler by MUG UK

MUG UK's GFA Linkfiler - this allows you to link data files like pictures and musics together into one large file. It prevents the usual mess on your floppiesbeeing cluttered with data files.

Sourcecode for linkfiler and inclusion of linkfiles into your own GFABASIC programs included.

Used with permission of MUG UK

[ZIP]SNDH Replayer by Gwem / YM Rockerz

The new standard for replaying chiptunes on Atari/STE/Falcon and now you can use it in your own prods.

This replayer is VBL independant. It hooks into Timer C and is systemfriendly. It will replay any SNDH files with any frequency on any machine regardless of the monitor used. They will sound the same on Falcon regardless of RGB or VGA monitor.

Take care - this replayer plays unpacked SNDH files exclusivly. Most SNDH files come packed with ICE v2.4. Unpack them before attempting to play them with this replayer interface.

SNDH replayer for GFABASIC by Gwem/YM Rockerz used with permission

Please use this routine for your SNDH needs!

[ZIP]SNDH Replayer

The new standard for replaying chiptunes on Atari/STE/Falcon and now you can use it in your own prods.

This replayer is VBL independant. It hooks into Timer C and is systemfriendly. It will replay SNDH files with correct frequency on any machine regardless of the monitor used. They will sound the same on Falcon regardless of RGB or VGA monitor.

Take care - this replayer plays unpacked SNDH files exclusivly. Most SNDH files come packed with ICE v2.4. Unpack them before attempting to play them with this replayer interface.

SNDH replayer for GFABASIC by Swe/YesCrew used with permission

DEPRECATED - please use the one by Gwem above!

[ZIP]SNDH Replayer 60HZ

Similar to the one above except for the following:

This replayer will play all SNDH at 60Hz exclusively. For 50Hz replay use the one above.

Take care - this replayer plays unpacked SNDH files exclusivly. Most SNDH files come packed with ICE v2.4. Unpack them before attempting to play them with this replayer interface.

DEPRECATED - please use the one by Gwem above!

[ZIP]Protracker Replayer for Atari STE

Now you can replay Protracker 4-channel digitunes in GFABASIC on STE and Falcon with this adaption of the Wizzcat replayer routine for GFA.

This replayer does not trash the VBL and Timer C. Therefor you can use it with most GFA programs without much modification.

The replayer utilizes DMA sound at 12Khz and will not work on STFM machines.

NOTE: As this routine uses the Wizzcat replayer, you need to give credit 'PT replay by Wizzcat'.

Wizzcat interfacing for GFABASIC by GT Turbo/Cerebral Vortex used with permission

[ZIP]DSP Protracker Replayer for Atari Falcon 030

Now you can replay Protracker 4-channel digitunes in GFABASIC on Falcon with this adaption of the Bitmaster replayer routine for GFA.

This replayer uses the DSP found in the Falcon and will not work on other Ataris beside the Falcon.

NOTE: Please give credit to Bitmaster of TCE when using this routine.

GFABASIC interfacing by Swe/YesCrew used with permission

[ZIP]HMS Soundtracker replay for Atari STE

Now you can easy replay Protracker 4-channel digitunes in GFABASIC on your Atari STE in 12Khz stereo with the STE DMA chip.

This replayer takes advantage of the microwire and will not work on Falcon. TT untested!

NOTE: Please give credit when using this routine.

supplied by Zorro 2 / NoExtra

[ZIP].PI9 loader

a small example program on how to load and display .PI9 pictures on the Falcon 030 from GFABASIC

based upon some sources by Fantomas

[ZIP]STiK/STing access library

a small library to interface GFABASIC with STiK and STing, allows you to write network applications with GFABASIC

by Lonny Pursell

CODE PACKS: various CODE PACKS containing tons of GFABASIC code for demo coding
[ZIP]various examples in GFABASIC

A small collection of GFABASIC example source for demo and game coding techniques

supplied by Moondog/TSCC

[ZIP]various examples in GFABASIC by Thyrex

Another collection of GFABASIC example source for demo and game coding techniques by Thyrex

(written permission to post missing, get in touch if there a problems with this)

[ZIP]various examples in GFABASIC by Deneb/Fantasy

Yet another collection of GFABASIC example source for demo and game coding techniques by Deneb / Fantasy

(written permission to post missing, get in touch if there a problems with this)

[ZIP]various example Demos in GFABASIC by KGB

Various GFABASIC sources on demo coding by KGB

(written permission to post missing, get in touch if there a problems with this)

back to the top