*                        FUNCTION DEFINITIONS LIST
*
*                              Version: 0.7B
*
*                              "gms.library"
*
##base _GMSBase
##bias 30
##public
*----------------------------------------
* Master.GPI                             
*----------------------------------------
OpenGPI(ID,Version,Revision,Table)(d0/d1/d2/d3)
CloseGPI(Functions)(d0)
SetUserPrefs(Name)(a0)
CloseGMS()()
InitTags(Structure,TagList)(a0/a1)
FindGMSTask()()
GMSForbid()()
GMSPermit()()
GetTaskInfo(Task)(a0)
*
InitJoyPorts()()
mp34()()
ReadJoyPort(PortName,ReturnType)(d0/d1)
GetMemType(MemBlock)(a0)
GetMemSize(MemBlock)(a0)
Switch()()
AutoSwitch()()
ReadKey(KeyStruct)(a1)
WaitLMB()()
RemapGPI(GPI,Functions)(d0/a0)
WaitTime(MicroSeconds)(d0)
*
FastRandom(range)(d1)
SlowRandom(range)(d1)
WriteDec(Value,AmtDigits,Destination)(d0/d1/a0)
WriteHex(Value,AmtDigits,Destination)(d0/d1/a0)
*
##private
AddInputHandler()()
RemInputHandler()()
##public
AddSysEvent(Event)(a0)
RemSysEvent(Event)(a0)
AllocMemBlock(Size,MemType)(d0/d1)
FreeMemBlock(MemBlock)(d0)
AddTrack(Resource,Data,Routine)(d0/d3/a0)
DeleteTrack(Key)(d1)
*
OpenFile(Filename,Flags)(a0/d0)
ReadFile(File,Buffer,Length)(a0/a1/d0)
WriteFile(File,Buffer,Length)(a0/a1/d0)
CloseFile(File)(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)
*
GetPicInfo(Source,Picture)(a0/a1)
UnpackPic(Source,Picture)(a0/a1)
LoadPic(Picture)(a1)
LoadPicFile(Filename,Options)(a1,d0)
FreePic(Picture)(a1)
*
InitDestruct(Code,Stack)(a0/a1)
SelfDestruct()()
Armageddon(Key)(d0)
FingerOfDeath(Task)(d0)
*
GetPicture()()
GetStructure(ID)(d0)
FreeStructure(Structure)(a0)
*
LoadObjectFile(FileName)(a0)
GetObject(ObjectBase,Name)(a0/a1)
GetObjectList(ObjectBase,ObjectList)(a0/a1)
FreeObjectFile(ObjectBase)(a0)
GrabObjectList(ObjectBase)(a0)
CopyObject(ObjectBase,Name)(a0/a1)
*
DebugMessage(DebugType,DebugText)(d7/a5)
ErrorMessage(ErrorCode)(d0)
StepBack()()
DebugActive()()
DebugInactive()()
Awaken(GMSTask)(a0)
CopyStructure(Source,Destination)(a0/a1)
TotalMem(GMSTask,MemType)(a0/d0)
Load(Filename)(a0)
Unload(SegmentList)(a0)
OpenGPIFile(Filename,Version,Revision,Table)(a0/d0/d1/d2)
##private
masterPrivate06()()
masterPrivate07()()
masterPrivate08()()
masterPrivate09()()
masterPrivate10()()
masterPrivate11()()
masterPrivate12()()
masterPrivate13()()
masterPrivate14()()
masterPrivate15()()
masterPrivate16()()
masterPrivate17()()
masterPrivate18()()
masterPrivate19()()
masterPrivate20()()
##public
*----------------------------------------
* Screens.GPI                            
*----------------------------------------
AllocVideoMem(Size)(d0)
GetScreen()()
AddScreen(GameScreen)(a0)
DeleteScreen(GameScreen)(a0)
ShowScreen(GameScreen)(a0)
HideScreen(GameScreen)(a0)
ms01()()
ms00()()
SwapBuffers(GameScreen)(a0)
WaitVBL()()
scrEmpty()()
WaitRVBL()()
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)
*
UpdateColour(GameScreen,Colour,Value)(a0/d0/d1)
BlankOn()()
BlankOff()()
MoveToFront(GameScreen)(a0)
MoveToBack(GameScreen)(a0)
TakeDisplay(GameScreen)(a0)
ReturnDisplay()()
FreeVideoMem(MemBlock)(d0)
GetScrType()()
##private
scrPrivate02()()
scrPrivate03()()
scrPrivate04()()
scrPrivate05()()
scrPrivate06()()
scrPrivate07()()
scrPrivate08()()
scrPrivate09()()
scrPrivate10()()
scrPrivate11()()
scrPrivate12()()
scrPrivate13()()
scrPrivate14()()
scrPrivate15()()
##public
*----------------------------------------
* Blitter.GPI                            
*----------------------------------------
AllocBlitMem(Size)(d0)
GetBob()()
GetMBob()()
AllocBlitter()()
FreeBlitter()()
InitBob(Bitmap,Bob)(a0/a1)
FreeBob(Bob)(a1)
DrawBob(Bob)(a1)
DrawBobList(BobList)(a1)
ClearBob(Bob)(a1)
DrawLine(Bitmap,SX,SY,EX,EY,Colour)(a0/d1/d2/d3/d4/d5)
DrawUCLine(Bitmap,SX,SY,EX,EY,Colour)(a0/d1/d2/d3/d4/d5)
*
CopyBuffer(GameScreen,SrcBuffer,DestBuffer)(a0/d0/d1)
ClearBitmap(Bitmap)(a0) 
ClearArea(Bitmap,SX,SY,EX,EY)(a0/d0/d1/d2/d3)
*
InitRestore(Bitmap,AmtBuffers,Entries)(a0/d0/d1)
FreeRestore(Bitmap)(a0)
ResetRestore(Bitmap)(a0)
Restore(Bitmap)(a0)
CleanUpRestore(Bitmap)(a0)
*
InitMap(Bitmap,Map)(a0/a1)
DrawMap(Bitmap,Map)(a0/a1)
DrawMapHRow(Bitmap,Map,XCoord,YCoord)(a0/a1/d0/d1)
DrawMapVRow(Bitmap,Map,XCoord,YCoord)(a0/a1/d0/d1)
FreeMap(Map)(a1)
DrawMapTile(Bitmap,Map,XCoord,YCoord)(a0/a1/d0/d1)
*
DrawPixel(Bitmap,XCoord,YCoord,Colour)(a0/d1/d2/d3)
DrawPixelList(Bitmap,PixelList)(a0/a1)
DrawUCPixelList(Bitmap,PixelList)(a0/a1)
DrawUCPixel(Bitmap,XCoord,YCoord,Colour)(a0/d1/d2/d3)
ReadPixel(Bitmap,XCoord,YCoord)(a0/d1/d2)
ReadPixelList(Bitmap,PixelList)(a0/a1)
FreeBlitMem(MemBlock)(d0)
SetBobDimensions(Bob)(a1)
SetBobDrawMode(Bob,Attrib)(a1/d0)
GetBitmap()()
InitBitmap(Bitmap)(a1)
FreeBitmap(Bitmap)(d0)
CreateMasks(Bob)(a1)
SetBobFrames(Bob)(a1)
##private
blitPrivate08()()
blitPrivate09()()
blitPrivate10()()
blitPrivate11()()
blitPrivate12()()
blitPrivate13()()
blitPrivate14()()
blitPrivate15()()
blitPrivate16()()
blitPrivate17()()
blitPrivate18()()
blitPrivate19()()
blitPrivate20()()
blitPrivate21()()
blitPrivate22()()
blitPrivate23()()
blitPrivate24()()
blitPrivate25()()
blitPrivate26()()
blitPrivate27()()
blitPrivate28()()
##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)
GetSound()()
FreeSoundMem(MemBlock)(d0)
AmtChannels()()
##end
