*                        FUNCTION DEFINITIONS LIST
*
*                             Date: 01.02.97
*
*                             "games.library"
*
##base _GMSBase
##bias 30
##public
*----------------------------------------
* Standard functions                     
*----------------------------------------
InitGPI(GPI_ID)(d0)
RemoveGPI(GPI_ID)(d0)
InitJoyPorts()()
ReadMouse(PortName)(d0)
ReadJoyPort(PortName,ReturnType)(d0/d1)
ReadJoyStick(PortName)(d0)
ReadJoyPad(PortName)(d0)
ReadSegaPad(PortName)(d0)
ReadAnalogue(PortName)(d0)
ReadKey(KeyStruct)(a1)
FastRandom(range)(d1)
SlowRandom(range)(d1)
WaitLMB()()
WaitFire(PortName)(d0)
WaitTime(MicroSeconds)(d0)
AddInputHandler()()
RemInputHandler()()
AddInterrupt(Interrupt,IntNum,IntPri)(a0/d0/d1)
RemInterrupt(IntBase)(a0)
SmartLoad(FileName,Destination,MemType)(a0/a1/d0)
QuickLoad(FileName,Destination,MemType)(a0/a1/d0)
SmartUnpack(Source,Destination,Password,MemType)(a0/a1/d0/d1)
SmartSave(FileName,Source,SrcLength)(a0/a1/d0)
SetUserPrefs(PrefsName)(a0)
GetPicInfo(Source,Picture)(a0/a1)
UnpackPic(Source,Picture)(a0/a1)
LoadPic(Picture)(a1)
AllocMemBlock(Size,MemType)(d0/d1)
FreeMemBlock(MemBlock)(d0)
FreePic(Picture)(a1)
InitTags(Structure,TagList)(a0/a1)
LoadPicInfo(Options,FileName)(d0,a1)
FindGMSTask()()
AddTrack(ID,Address)(d0/a0)
DeleteTrack(ID,Key)(d0/d1)
DecToText(Number,AmtDigits,Destination)(d0/d1/a0)
LoadObjectFile(FileName)(a0)
GetObject(ObjectBase,Name)(a0/a1)
GetObjectList(ObjectBase,ObjectList)(a0/a1)
FreeObjectFile(ObjectBase)(a0)
GrabObjectList(ObjectBase)(a0)
##private
gamesPrivate12()()
gamesPrivate13()()
gamesPrivate14()()
gamesPrivate15()()
gamesPrivate16()()
gamesPrivate17()()
gamesPrivate18()()
gamesPrivate19()()
gamesPrivate20()()
gamesPrivate21()()
gamesPrivate22()()
gamesPrivate23()()
gamesPrivate24()()
gamesPrivate25()()
gamesPrivate26()()
gamesPrivate27()()
gamesPrivate28()()
##public
*----------------------------------------
* Screens.GPI general functions.         
*----------------------------------------
AddScreen(GameScreen)(a0)
DeleteScreen(GameScreen)(a0)
ShowScreen(GameScreen)(a0)
HideDisplay()()
Switch()()
AutoSwitch()()
SwapBuffers(GameScreen)(a0)
WaitVBL()()
WaitSVBL()()
WaitSRVBL()()
WaitRastLine(LinePosition)(d0)
RefreshScreen(GameScreen)(a0)
RemakeScreen(GameScreen)(a0)
MovePicture(GameScreen)(a0)
ResetPicture(GameScreen)(a0)
UpdatePalette(GameScreen)(a0)
PaletteMorph(GameScreen,FadeState,Speed,StartColour,AmtColours,SrcPalette,DestPalette)(a0/d0/d1/d3/d4/a1/a2)
PaletteToColour(GameScreen,FadeState,Speed,StartColour,AmtColours,Palette,Colour)(a0/d0/d1/d3/d4/a1/d2)
ColourMorph(GameScreen,FadeState,Speed,StartColour,AmtColours,SrcColour,DestColour)(a0/d0/d1/d3/d4/d2/d5)
ColourToPalette(GameScreen,FadeState,Speed,StartColour,AmtColours,Palette,Colour)(a0/d0/d1/d3/d4/a1/d2)
ChangeColours(GameScreen,Colours,StartColour,AmtColours)(a0/a1/d0/d1)
BlankColours(GameScreen)(a0)
InitRasterList(GameScreen)(a0)
UpdateRasterList(GameScreen)(a0)
UpdateRasterCommand(GameScreen,Command)(a0/a2)
UpdateRasterCommands(GameScreen,Command,Amount)(a0/a2/d0)
UpdateRasterLines(GameScreen)(a0)
RemoveRasterList(GameScreen)(a0)
HideRasterList(GameScreen)(a0)
ShowRasterList(GameScreen)(a0)
InitSprite(GameScreen,Sprite)(a0/a1)
UpdateSprite(GameScreen,Sprite)(a0/a1)
MoveSprite(GameScreen,Sprite)(a0/a1)
HideSprite(GameScreen,SpriteNum)(a0/d0)
UpdateSpriteList(SpriteList)(a0)
HideSpriteList(SpriteList)(a0)
RemoveAllSprites(GameScreen)(a0)
ReturnAllSprites(GameScreen)(a0)
FreeSprite(Sprite)(a1)
UpdateRGB12(GameScreen,Colour,RGB)(a0/d0/d1)
UpdateRGB24(GameScreen,Colour,RRGGBB)(a0/d0/d1)
ScrLockOn(GameScreen)(a0)
ScrLockOff(GameScreen)(a0)
AllocVideoMem(Size)(d0)
##private
gamesPrivate35()()
gamesPrivate36()()
gamesPrivate37()()
gamesPrivate38()()
gamesPrivate39()()
gamesPrivate40()()
gamesPrivate41()()
gamesPrivate42()()
gamesPrivate43()()
gamesPrivate44()()
gamesPrivate45()()
gamesPrivate46()()
gamesPrivate47()()
gamesPrivate48()()
gamesPrivate49()()
gamesPrivate50()()
gamesPrivate51()()
gamesPrivate52()()
gamesPrivate53()()
##public
*----------------------------------------
* Blitter.GPI                            
*----------------------------------------
AllocBlitter()()
FreeBlitter()()
InitBOB(GameScreen,BOB)(a0/a1)
FreeBOB(BOB)(a1)
DrawBOB(GameScreen,BOB,RestoreList,Buffer)(a0/a1/a2/d0)
DrawBOBList(GameScreen,BOBList,RestoreList,Buffer)(a0/a1/a2/d0)
ClearBOB(GameScreen,BOB,Buffer)(a0/a1/d0)
DrawLine(GameScreen,Buffer,SX,SY,EX,EY,Colour)(a0/d0/d1/d2/d3/d4/d5)
CopyBuffer(GameScreen,SrcBuffer,DestBuffer)(a0/d0/d1)
ClrScreen(GameScreen,Buffer)(a0/d0) 
ClrArea(GameScreen,SX,SY,EX,EY)(a0/d0/d1/d2/d3)
InitRestore(AmtBuffers,Entries)(d0/d1)
FreeRestore(RestoreList)(d0)
ResetRestore(RestoreList)(a1)
Restore(GameScreen,RestoreList)(a0/a1)
CleanUpRestore(GameScreen,RestoreList)(a0/a1)
*
InitMap(GameScreen,Map)(a0/a1)
DrawMap(GameScreen,Map)(a0/a1)
DrawMapHRow(GameScreen,Map,XCoord,YCoord)(a0/a1/d0/d1)
DrawMapVRow(GameScreen,Map,XCoord,YCoord)(a0/a1/d0/d1)
FreeMap(Map)(a1)
*
DrawPixel(GameScreen,Buffer,XCoord,YCoord,Colour)(a0/d0/d1/d2/d3)
DrawPixelList(GameScreen,Buffer,PixelList)(a0/d0/a1)
DrawUCPixelList(GameScreen,Buffer,PixelList)(a0/d0/a1)
DrawUCPixel(GameScreen,Buffer,XCoord,YCoord,Colour)(a0/d0/d1/d2/d3)
*
ReadPixel(GameScreen,Buffer,XCoord,YCoord)(a0/d0/d1/d2)
ReadPixelList(GameScreen,Buffer,PixelList)(a0/d0/a1)
*
DrawUCLine(GameScreen,Buffer,SX,SY,EX,EY,Colour)(a0/d0/d1/d2/d3/d4/d5)
*
DrawMapTile(GameScreen,Map,XCoord,YCoord)(a0/a1/d0/d1)
AllocBlitMem(Size)(d0)
##private
gamesPrivate63()()
gamesPrivate64()()
gamesPrivate65()()
gamesPrivate66()()
gamesPrivate67()()
gamesPrivate68()()
gamesPrivate69()()
gamesPrivate70()()
gamesPrivate71()()
gamesPrivate72()()
gamesPrivate73()()
gamesPrivate74()()
gamesPrivate75()()
gamesPrivate76()()
gamesPrivate77()()
gamesPrivate78()()
gamesPrivate79()()
gamesPrivate80()()
gamesPrivate81()()
gamesPrivate82()()
gamesPrivate83()()
gamesPrivate84()()
gamesPrivate85()()
gamesPrivate86()()
gamesPrivate87()()
gamesPrivate88()()
gamesPrivate89()()
gamesPrivate90()()
gamesPrivate91()()
gamesPrivate92()()
gamesPrivate93()()
##public
*----------------------------------------
* Sound.GPI                              
*----------------------------------------
AllocAudio()()
FreeAudio()()
InitSound(Sound)(a0)
FreeSound(Sound)(a0)
CheckChannel(ChannelName)(d0)
PlaySound(Sound)(a0)
PlaySoundDAC1(Sound)(a0)
PlaySoundDAC2(Sound)(a0)
PlaySoundDAC3(Sound)(a0)
PlaySoundDAC4(Sound)(a0)
PlaySoundPri(Sound)(a0)
PlaySoundPriDAC1(Sound)(a0)
PlaySoundPriDAC2(Sound)(a0)
PlaySoundPriDAC3(Sound)(a0)
PlaySoundPriDAC4(Sound)(a0)
SetVolume(Channel,Volume)(d0/d1)
FadeVolume(Channel)(d0)
StopSound(Sound)(a0)
StopChannel(Channel)(d0)
InitMusic()()
PlayMusic()()
StopMusic()()
AllocSoundMem(Size)(d0)
##end
