	AddDirDat "Int","Declare a INT type"
	AddDirDat "Byte","Declare a BYTE type"	
	AddDirDat "Float","Declare a type FLOAT"	
	AddDirDat "String","Declare a type STRING"	
	AddDirDat "File","Declare a type FILE"	
	AddDirDat "Sheet","Declare a type SHEET"
	AddDirDat "Void","Declare a type VOID"	
	AddDirDat "Memory","Declare a type MEMORY"
	AddDirDat "IntFrac","Declare a INTFRAC type"	
	AddDirDat "Then","Used in an IF THEN ENDIF structure to indicate what commands should Then be executed."		
	AddDirDat "To",""
	AddDirDat "Step","Step is a value to increment or decrement the For Loop Variable."
	
	;**** Statements
	AddFuncDat "If","","","","Used to check IF a condition is true or false. Use with Then, Else & Endif."
	AddFuncDat "ElseIf","","","","Used to check if an additional condition is true or false. Use with Then, Else & Endif."	
	AddFuncDat "EndIf","","","","Used to complete an If structure. Use with If, Then & Else."
	AddFuncDat "Else","","","","Else statement"
	AddFuncDat "While","","","","While...Wend is a loop method While a condition is true."
	AddFuncDat "Wend","","","","While End statement"
	AddFuncDat "For","","","","For...Next is loop method which assigns a variable a range of numbers to Step through."
	AddFuncDat "Next","","","","Next completes a loop in the For..Next. Based on variable number the For will repeat."
	AddFuncDat "Return","","","","Return Null Or Value from Function"
	AddFuncDat "Mod%","","","","Return Mod result."
	AddFuncDat "Lock.On","","","","Disable Interrupts."
	AddFuncDat "Lock.Off","","","","Enable Interrupts."
	AddFuncDat "Jump","","","","Jump to Label."
	AddFuncDat "JumpTable","","","","Jump table."
	
	
	AddFuncDat "Form.Menu.Refresh","Form%","QUIG.FORM.REFRESH.PARTS","Quig_RefreshMenu","Redraws the Menu on the Form 1..8."
	AddFuncDat "Form.Status.Refresh","Form%","QUIG.FORM.REFRESH.PARTS","Quig_RefreshStatus","Redraws the Status bar on the given Form 1..8."
	AddFuncDat "Form.Title.Refresh","Form%","QUIG.FORM.REFRESH.PARTS","Quig_RefreshTitle","Redraws the Title bar on the given Form 1..8."
	AddFuncDat "Form.Size.Set","Form%,Width%,Height%","QUIG.FORM.SIZE","Quig_SetFormSize","Changes & Redraws the Width & Height of Form."
	AddFuncDat "Form.Pos.Set","Form%,Width%,Height%","QUIG.FORM.POS","Quig_SetFormPos","Changes & Redraws the X & Y Position of Form."
	;AddFuncDat "Form.Refresh","Form%","QUIG.FORM.REFRESH.PARTS","Quig_RefreshAll","Redraws everything on the Form."
	AddFuncDat "Form.Open","Form%","","",""
	AddFuncDat "Form.Close","Form%","","",""
	AddFuncDat "Form.Modal.On","Form%,ParentForm%","QUIG.FORM.MODAL","Quig_Form_Modal_On","Redraws the Menu on the Form 1..8."	
	
	
	AddFuncDat "Ctrl.RefreshList","Control%,Count%","QUIG.CONTROL.REFRESH","Quig_Control_Refresh","Redraws the requested Form Control"	
	AddFuncDat "Ctrl.Refresh","Control%","QUIG.CONTROL.REFRESH","Quig_Control_Refresh","Redraws the requested Form Control"
	AddFuncDat "Ctrl.RefreshArea","Control%,X%,Y%,W%,H%","QUIG.CONTROL.REFRESHAREA","Quig_Control_RefreshArea","Redraws the requested area on Form Control"		
	AddFuncDat "Ctrl.RefreshSequence","Control%,Sequence%","QUIG.CONTROL.REFRESH","Quig_Control_RefreshSequence",""
	
	AddFuncDat "Ctrl.Position.Set","Control%,Left%,Top%","QUIG.CONTROL.SETPOS","Quig_Control_SetPos","Set the position of the given control"
	;AddFuncDat "Ctrl.Visible.Set","Control%,Visible%","QUIG.CONTROL.SETVISIBLE","Quig_SetControlVisible","Set the Control to be visible (1) or invisible(0)"
	
	AddFuncDat "Ctrl.Visible.Set","Control%,Visible%","QUIG.CONTROL.VISIBLE.SET","Quig_Control_Visible_Set","Set the Control to be visible (1) or invisible(0)"	
	
	AddFuncDat "Ctrl.Position.Set","Control%,Left%,Top%","QUIG.CONTROL.SETPOS2","Quig_Control_SetPos2","Places the control at pixel Left & top"
	AddFuncDat "Ctrl.GetID%","Form%,Pos%","QUIG.CONTROL.GETID","Quig_Control_GetID","Returns Control ID of control of desired form and display position."
	
	AddFuncDat "Tool.Refresh","Control%","QUIG.CONTROL.TOOL.REFRESH","Quig_Control_ToolRefresh","Redraws the requested Form Tool Control"	
	AddFuncDat "Tool.Position.Set","Control%,Left%,Top%","QUIG.CONTROL.SETPOS","Quig_Control_SetPos","Set the position of the given control"
	AddFuncDat "Tool.Visible.Set","Control%,Visible%","QUIG.CONTROL.SETVISIBLE","Quig_SetControlVisible","Set the Control to be visible (1) or invisible(0)"
	AddFuncDat "Tool.Position.Set","Control%,Left%,Top%","QUIG.CONTROL.SETPOS2","Quig_Control_SetPos2","Places the control at pixel Left & top"	
	
	AddFuncDat "Ctrl.Display%","Control%","QUIG.CONTROL.DISPLAY.GET","Quig_Control_Display_Get","Returns the controls display position on the form."	
	AddFuncDat "Ctrl.Type%","Control%","QUIG.CONTROL.TYPE.GET","Quig_Control_Type_Get","Returns the controls type."
	AddFuncDat "Ctrl.Left.Get%","Control%","QUIG.CONTROL.LOCATION.GET","Quig_Control_Location_Get1","Returns the controls type."
	AddFuncDat "Ctrl.Top.Get%","Control%","QUIG.CONTROL.LOCATION.GET","Quig_Control_Location_Get2","Returns the controls type."
	AddFuncDat "Ctrl.Width.Get%","Control%","QUIG.CONTROL.LOCATION.GET","Quig_Control_Location_Get3","Returns the controls type."
	AddFuncDat "Ctrl.Height.Get%","Control%","QUIG.CONTROL.LOCATION.GET","Quig_Control_Location_Get4","Returns the controls type."	
	
	AddFuncDat "Ctrl.Label.Text.Set","Control%,Text$","QUIG.CONTROL.TEXT.SET","Quig_Control_Text_Set","Sets a label control text"
	AddFuncDat "Ctrl.Label.Text.Get$","Control%","QUIG.CONTROL.TEXT.GET","Quig_Control_Text_Get","Get text of label control."
	AddFuncDat "Ctrl.Label.Text.Len%","Control%","QUIG.CONTROL.TEXT.LEN","Quig_Control_Text_Len","Get text length of label control."
	AddFuncDat "Ctrl.Label.Type%","#"+Str$(TypNo(Cntr_Label))+"%","","","Returns symbos type for Label control."
	
	AddFuncDat "Ctrl.Frame.Text.Set","Control%,Text$","QUIG.CONTROL.TEXT.SET","Quig_Control_Text_Set","Sets a frame control text"	
	AddFuncDat "Ctrl.Frame.Text.Get$","Control%","QUIG.CONTROL.TEXT.GET","Quig_Control_Text_Get","Get text of frame control."
	AddFuncDat "Ctrl.Frame.Text.Len%","Control%","QUIG.CONTROL.TEXT.LEN","Quig_Control_Text_Len","Get text length of frame control."
	AddFuncDat "Ctrl.Frame.Type%","#"+Str$(TypNo(Cntr_Frame))+"%","","","Returns symbos type for Frame control."	
	
	AddFuncDat "Ctrl.Button.Text.Set","Control%,Text$","QUIG.CONTROL.TEXT.SET","Quig_Control_Text_Set","Sets a button control text"	
	AddFuncDat "Ctrl.Button.Text.Get$","Control%","QUIG.CONTROL.TEXT.GET","Quig_Control_Text_Get","Get text of label control."
	AddFuncDat "Ctrl.Button.Text.Len%","Control%","QUIG.CONTROL.TEXT.LEN","Quig_Control_Text_Len","Get text length of label control."
	AddFuncDat "Ctrl.Button.Type%","#"+Str$(TypNo(Cntr_Button))+"%","","","Returns symbos type for Button control."	
	
	AddFuncDat "Ctrl.Radio.Text.Set","Control%,Text$","QUIG.CONTROL.TEXT.SET","Quig_Control_Text_Set","Sets a radio control text"	
	AddFuncDat "Ctrl.Radio.Text.Get$","Control%","QUIG.CONTROL.TEXT.GET","Quig_Control_Text_Get","Get text of label control."
	AddFuncDat "Ctrl.Radio.Text.Len%","Control%","QUIG.CONTROL.TEXT.LEN","Quig_Control_Text_Len","Get text length of label control."
	AddFuncDat "Ctrl.Radio.Type%","#"+Str$(TypNo(Cntr_Radio))+"%","","","Returns symbos type for Radio control."	
	
	AddFuncDat "Ctrl.Check.Text.Set","Control%,Text$","QUIG.CONTROL.TEXT.SET","Quig_Control_Text_Set","Sets a check control text"	
	AddFuncDat "Ctrl.Check.Text.Get$","Control%","QUIG.CONTROL.TEXT.GET","Quig_Control_Text_Get","Get text of check control."
	AddFuncDat "Ctrl.Check.Text.Len%","Control%","QUIG.CONTROL.TEXT.LEN","Quig_Control_Text_Len","Get text length of check control."	
	AddFuncDat "Ctrl.Check.Type%","#"+Str$(TypNo(Cntr_Check))+"%","","","Returns symbos type for Check control."	
	
	AddFuncDat "Ctrl.Image.Tile.Set","Control%,Sheet%,Tile%","QUIG.TILE.SET","Quig_Control_Tile_Set","Set tile graphic from a sheet to an Image control"
	AddFuncDat "Ctrl.Image.Type%","#"+Str$(TypNo(Cntr_ImageBox))+"%","","","Return symbos type for ImgBox control."
	
	
	;G9k Ink Stuff
	AddFuncDat "Ink.Set","InkNo%,R%,G%,B%","QUIG.G9K.INK.SET","Quig_g9k_Ink_Set","Set the RGB value for one of the 256 Ink Slots."
	AddFuncDat "Ink.Palette.Set","Palette%,InkNo%","QUIG.G9K.INK.PALETTE.SET","Quig_G9k_Ink_Palette_Set","Copies 16 inks starting at InkNo into specified palette."		
	AddFuncDat "Ink.Red.Get%","InkNo%","QUIG.G9K.INK.R.GET","Quig_G9k_Ink_R_Get","Gets Red Value of an Ink number"
	AddFuncDat "Ink.Green.Get%","InkNo%","QUIG.G9K.INK.G.GET","Quig_G9k_Ink_G_Get","Gets Green Value of an Ink number"
	AddFuncDat "Ink.Blue.Get%","InkNo%","QUIG.G9K.INK.B.GET","Quig_G9k_Ink_B_Get","Gets Blue Value of an Ink number"
	AddFuncDat "Ink.Fade%","Ink1%,Ink2%,Fade%","QUIG.G9K.INK.FADE","Quig_g9k_Ink_Fade","Works out value of fade between two inks (0..15) of fade level (0..127)"
	;AddFuncDat "Ink.Cycle.Down"
	;AddFuncDat "Ink.Cycle.Up"
	
	AddFuncDat "Palette.Set","Palette%,R%,G%,B%","QUIG.G9K.PALETTE.SET","Quig_g9k_Palette_Set","Set one of the palettes 0-63 with a RGB value."
	AddFuncDat "BackColour.Set","Palette%","QUIG.G9K.BACKCOLOUR.SET","Quig_g9k_BackColour_Set","Set the palette used for backdrop."
	
	
	;AddFuncDat "Back.ScreenMap.Meta","X%,Y%,Addr%","QUIG.G9K.MAPA.META","Quig_G9k_MapB_Meta","Copy current MetaTile to Back Map at X,Y (32 pixel increments)"	
	AddFuncDat "Back.Pattern.Load%","Filename$,Offset%,PalOffset%","QUIG.G9K.TILELOAD","Quig_g9k_TileBLoad",""
	AddFuncDat "Back.ScreenMap.Pattern","Pattern%,X%,Y%","QUIG.G9K.MAP.SET","Quig_g9k_DrawTileB",""
	AddFuncDat "Back.ScreenMap.Meta","MetaAddr%,X%,Y%","QUIG.G9K.MAPA.METACOPY","Quig_G9k_MapB_MetaCopy","Copy current MetaTile at address to the back screen map at X,Y"		
	AddFuncDat "Back.Palette.Set","Palette%","QUIG.G9K.FORE.PALETTE.SET","Quig_g9k_Back_Palette_Set","Turn Back layer to Palette 0-3"
	AddFuncDat "Back.Print.Font","Pattern%","QUIG.G9K.PRINT.FONT","Quig_g9k_Back_Font","Sets the first pattern of Back layer font."
	AddFuncDat "Back.Print.Pos","X%,Y%","QUIG.G9K.PRINT.FONT","Quig_g9k_Back_Pos","Set the position X (0..63),Y (0..63) on Back layer for printing."
	AddFuncDat "Back.Print.String","Text$","QUIG.G9K.PRINT.FONT","Quig_g9k_Back_String","Print a String to Back layer"		
	AddFuncDat "Back.Scroll","X%,Y%","QUIG.G9K.SCROLL.B","Quig_g9k_Scroll_B_Set",""	
	AddFuncDat "Back.Scroll.X.Get%","(Quig_G9K_ScrollB_XPos%","","","Returns the back scroll X Position. (0-32767)"
	AddFuncDat "Back.Scroll.Y.Get%","(Quig_G9K_ScrollB_YPos%","","","Returns the back scroll Y Position. (0-32767)"
	AddFuncDat "Back.Scroll.X.Set","Value%","QUIG.G9K.SCROLL.B","Quig_g9k_Scroll_BX_Set","Sets the back scroll X Position. (0-32767)"
	AddFuncDat "Back.Scroll.Y.Set","Value%","QUIG.G9K.SCROLL.B","Quig_g9k_Scroll_BY_Set","Sets the back scroll Y Position. (0-32767)"	
	
	AddFuncDat "Back.Map.Load%","Filename$","QUIG.G9K.METALOAD","Quig_g9k_MapBLoad","Loads a .qmb Map File into Back Map Area. Returns (0-Fail / 1-Success)."
	AddFuncDat "Back.Map.Meta.Get%","MapPos%","QUIG.G9K.MAPA.GET","Quig_g9k_MapB_Get","Returns Back Metatile address for map position X + (Y * MetaWidth)."
	AddFuncDat "Back.Map.MetaWidth%","(Quig_G9k_MapB_MetaWidth%","","","Returns metatile width of G9k back game map"
	AddFuncDat "Back.Map.MetaHeight%","(Quig_G9k_MapB_MetaHeight%","","","Returns metatile height of G9k back game map"	
	AddFuncDat "Back.Map.Width%","(Quig_G9k_MapB_Width%","","","Returns pixel width of G9k back game map"
	AddFuncDat "Back.Map.Height%","(Quig_G9k_MapB_Height%","","","Returns pixel heigh of G9k back game map"
	AddFuncDat "Back.Map.Size%","(Quig_G9k_MapB_Size%","","","Returns size in bytes of G9k back game map"	
	;AddFuncDat "Back.Map.Draw","X%,Y%","QUIG.G9K.MAPA.DRAW","Quig_g9k_MapB_Draw","Draws map at position X & Y"
	
	AddFuncDat "BScrMap.Draw","X%,Y%","QUIG.G9K.MAPA.DRAW","Quig_g9k_MapB_Draw","Draws background ScreenMap at position X,Y"	
	
	AddFuncDat "Fore.ScreenMap.Pattern","Pattern%,X%,Y%","QUIG.G9K.MAP.SET","Quig_g9k_DrawTileA",""
	AddFuncDat "Fore.ScreenMap.Fill","Pattern%,X%,Y%,W%,Y%","QUIG.G9K.MAP.FILL","Quig_g9k_FillMapA","Fill Map with Pattern from Position X,Y,W,H incrementing Fill pattern."
	AddFuncDat "Fore.ScreenMap.Clear","Pattern%,X%,Y%,W%,Y%","QUIG.G9K.MAP.CLEAR","Quig_g9k_ClearMapA","Fill Map with Pattern from Position X,Y,W,H."	
	AddFuncDat "Fore.ScreenMap.Meta","MetaAddr%,X%,Y%","QUIG.G9K.MAPA.METACOPY","Quig_G9k_MapA_MetaCopy","Copy MetaTile at Address to fore screen map at X,Y"	
	
	AddFuncDat "Fore.Palette.Set","Palette%","QUIG.G9K.FORE.PALETTE.SET","Quig_g9k_Fore_Palette_Set","Turn Fore layer to Palette 0-3"
	AddFuncDat "Fore.Pattern.Copy","","QUIG.G9K.PATTERN.COPY","Quig_g9k_Pattern_Copy",""
	AddFuncDat "Fore.Pattern.Load%","Filename$,Offset%,PalOffset%","QUIG.G9K.TILELOAD","Quig_g9k_TileALoad",""	
	AddFuncDat "Fore.Print.Font","Pattern%","QUIG.G9K.PRINT.FONT","Quig_g9k_Fore_Font","Sets the first pattern of Fore layer font."
	AddFuncDat "Fore.Print.Pos","X%,Y%","QUIG.G9K.PRINT.FONT","Quig_g9k_Fore_Pos","Set the position X (0..63),Y (0..63) on Fore layer for printing."
	AddFuncDat "Fore.Print.String","Text$","QUIG.G9K.PRINT.FONT","Quig_g9k_Fore_String","Print a String to Fore layer"	
	
	AddFuncDat "Fore.Scroll","X%,Y%","QUIG.G9K.SCROLL.A","Quig_g9k_Scroll_A_Set",""	
	AddFuncDat "Fore.Scroll.X.Get%","(Quig_G9K_ScrollA_XPos%","","","Returns the fore scroll X Position. (0-32767)"
	AddFuncDat "Fore.Scroll.Y.Get%","(Quig_G9K_ScrollA_YPos%","","","Returns the fore scroll Y Position. (0-32767)"	
	AddFuncDat "Fore.Scroll.X.Set","Value%","QUIG.G9K.SCROLL.A","Quig_g9k_Scroll_AX_Set","Sets the fore scroll X Position. (0-32767)"
	AddFuncDat "Fore.Scroll.Y.Set","Value%","QUIG.G9K.SCROLL.A","Quig_g9k_Scroll_AY_Set","Set the fore scroll Y Position. (0-32767)"		
	
	AddFuncDat "Fore.Map.Load%","Filename$","QUIG.G9K.METALOAD","Quig_g9k_MapALoad","Loads a .qma Map File into Fore Map Area. Returns (0-Fail / 1-Success)."
	AddFuncDat "Fore.Map.Meta.Get%","MapPos%","QUIG.G9K.MAPA.GET","Quig_g9k_MapA_Get","Returns Fore Metatile address for map position X + (Y * MetaWidth)."
	
	AddFuncDat "Fore.Map.Attr.Get%","X%,Y%","QUIG.G9K.MAPA.ATTR.GET","Quig_g9k_MapA_Attr_Get","Returns Attribute value from fore map pixel pos X & Y"
	;AddFuncDat "Fore.Map.Draw","X%,Y%","QUIG.G9K.MAPA.DRAW","Quig_g9k_MapA_Draw","Draws map at position X & Y"	
	AddFuncDat "Fore.Map.Width%","(Quig_G9k_MapA_Width%","","","Returns pixel width of G9k fore game map"
	AddFuncDat "Fore.Map.Height%","(Quig_G9k_MapA_Height%","","","Returns pixel heigh of G9k fore game map"
	AddFuncDat "Fore.Map.MetaWidth%","(Quig_G9k_MapA_MetaWidth%","","","Returns metatile width of G9k fore game map"
	AddFuncDat "Fore.Map.MetaHeight%","(Quig_G9k_MapA_MetaHeight%","","","Returns metatile height of G9k fore game map"
	AddFuncDat "Fore.Map.Size%","(Quig_G9k_MapA_Size%","","","Returns size in bytes of G9k fore game map"
	
	
	AddFuncDat "FScrMap.Draw","X%,Y%","QUIG.G9K.MAPA.DRAW","Quig_g9k_MapA_Draw","Draws Foreground ScreenMap at position X,Y"
	AddFuncDat "FScrMap.MetaCopy","MetaAddr%,X%,Y%","QUIG.G9K.MAPA.METACOPY","Quig_G9k_MapA_MetaCopy","Copy MetaTile at Address to Fore Screen Map at X,Y"		
	
	
	
	
	;AddFuncDat "Fore.Map.Meta.Set","MapPos%,Value%","QUIG.G9K.MAPA.SET","Quig_g9k_MapA_Set","Sets Fore Metatile number for map position X + (Y * MetaWidth)."	
	;AddFuncDat "Fore.ScreenMap.Meta","X%,Y%,Addr%","QUIG.G9K.MAPA.META","Quig_G9k_MapA_Meta","Copy current MetaTile to Fore Map at X,Y (32 pixel increments)"	
	
	
	AddFuncDat "Meta.Load%","Filename$","QUIG.G9K.METALOAD","Quig_g9k_MetaLoad","Loads a .qmt Metafile into Map Area. Returns (0-Fail / 1-Success)."
	AddFuncDat "Meta.Count%","(Quig_G9k_Meta_Count%","","","Returns the number of MetaTiles loaded."
	AddFuncDat "Meta.Size%","(Quig_G9k_Meta_Size%","","","Returns the size in bytes of MetaTile data."	
	AddFuncDat "Meta.Int.Set","Addr%,Value%","QUIG.G9K.META.INT.SET","Quig_G9k_Meta_Int_Set","Set an int piece of data at Meta address"	
	
	AddFuncDat "MapEngine","@Quig_G9K_Map_Engine%,Value%","QUIG.SET.BYTE","Quig_Set_Byte","Set Map Engine to be Off-0 or On-1." 
	
	
	AddFuncDat "GameObj.Update","","QUIG.GAMEOBJ.UPDATE","Quig_GameObj_Update",""
	
	AddFuncDat "g9kCommand","","QUIG.G9K.COMMAND","Quig_G9k_Command",""
	
	AddFuncDat "OnScreen%","X%,Y%","QUIG.G9K.SPRITE.ONSCREEEN","Quig_G9K_Sprite_OnScreen","Returns if Sprite Position is on Screen or not, and puts coords in Sprite.Pos.LastX/LastY"
	AddFuncDat "MGroup.Draw","Group%,SprNo%","QUIG.G9K.SPRGROUP.DRAW","Quig_G9k_SprGroup_Draw","Draw a Sprite Group at a map coordinate."
	AddFuncDat "MSprite.Draw","Sprite%,Pattern%","LIBRARY QUIG.G9K.SPRITE.NEXT","Quig_G9K_MSprite_Draw","Draw a Sprite at a map coordinate."
	AddFuncDat "MSprite.Display","Palette%,Visible%","LIBRARY QUIG.G9K.SPRITE.NEXT","Quig_G9K_MSprite_Display","Sets properties for drawing map sprites. Palette (0-3),Visible (0-Norm, 1-Off, 2-Behind Fore, 3-Off)"
	AddFuncDat "MSprite.Clear","Sprite%,Count%","QUIG.G9K.SPRITE.NEXT","Quig_G9k_Sprite_Next_Clear","Updates Sprite off screen so invisble."
	
	AddFuncDat "Sprite.Enable","","QUIG.G9K.SPRITES.ON","Quig_g9k_Sprites_On","Turn on the G9K Sprites."
	AddFuncDat "Sprite.Disable","","QUIG.G9K.SPRITES.OFF","Quig_g9k_Sprites_Off","Turn Off the G9K Sprites."
	AddFuncDat "Sprite.Position.Set","Sprite%,X%,Y%","QUIG.G9K.SPRITE.SET.POSITION","Quig_g9k_Sprite_Set_Position","Set the X/Y Position of sprite 0-124."
	AddFuncDat "Sprite.Position.Group.Set","Sprite%,X%,Y%,W%,H%","QUIG.G9K.SPRITE.SET.POSITION2","Quig_g9k_Sprite_Set_Position2","Set the X/Y Position of sprite 0-124 for width and height"
	AddFuncDat "Sprite.Position.Group0.Set","Sprite%,X%,Y%,W%,H%","QUIG.G9K.SPRITE.SET.POSITION2","Quig_g9k_Sprite_Set_Position3","Set the X/Y Position of sprite 0-124 for width and height"	
	AddFuncDat "Sprite.Pattern.Set","Sprite%,Pattern%","QUIG.G9K.SPRITE.SET.PATTERN","Quig_g9k_Sprite_Set_Pattern","Set the Pattern of sprite 0-124."	
	AddFuncDat "Sprite.Palette.Set","Sprite%,Palette%","QUIG.G9K.SPRITE.SET.PALETTE","Quig_g9k_Sprite_Set_Palette","Set the Palette 0-3 of sprite 0-124."		
	AddFuncDat "Sprite.Refresh","","QUIG.G9K.SPRITE.REFRESH","Quig_G9K_Sprite_Refresh","Sends Sprite data to G9K."
	AddFuncDat "Sprite.Refresh.Part","Start%,Count%","QUIG.G9K.SPRITE.REFRESH.AMOUNT","Quig_g9k_Sprite_Refresh_Amount","Sends Sprite data from start sprite to count to G9K."	
	AddFuncDat "Sprite.Display.Set","Sprite%,Setting%","QUIG.G9K.SPRITE.SET.DISPLAY","Quig_g9k_Sprite_Set_Display","Set sprite display properties (0, 1, 2 & 3)."
	
	
	AddFuncDat "VWait","","QUIG.G9K.VWAIT","Quig_G9K_VWait","Waits for the G9K V-Sync."	
	
	
	AddFuncDat "Sound.Init%","","QUIG.SOUND.INIT","Quig_Sound_Int","Initializes the Sound Player."
	AddFuncDat "Sound.Hardware%","@Quig_Sound_Hardware%","QUIG.GET.BYTE","Quig_Get_Byte","Returns the sound daemon hardware 0/1-Psg/2-Opl4."
	AddFuncDat "Sound.Pref.Music%","@Quig_Sound_Pref_Music%","QUIG.GET.BYTE","Quig_Get_Byte","Returns the sound daemon music pref 0,1 or 2."
	AddFuncDat "Sound.Pref.Fx%","@Quig_Sound_Pref_Fx%","QUIG.GET.BYTE","Quig_Get_Byte","Returns the sound daemon FX pref 0,1 or 2."		
	AddFuncDat "Sound.FX.Play","Handle%,Effect%,Volume%","QUIG.SOUND.INIT","Quig_Sound_FX_Play","Plays an effect from a Handle at volume (0..255)"
	AddFuncDat "Sound.FX.Stop","Handle%,Effect%","QUIG.SOUND.INIT","Quig_Sound_FX_Stop","Stops an effect from a Handle playing."
	AddFuncDat "Sound.FX.Release","Handle%","QUIG.SOUND.INIT","Quig_Sound_FX_Release","Realeases an effects handle."
	AddFuncDat "Sound.FX.LoadPSG%","Filename$","QUIG.SOUND.INIT","Quig_Sound_SFX_Load","Loads a PSG FX file and returns Handle. 255 is error loading."
	AddFuncDat "Sound.FX.LoadOPL4%","Filename$","QUIG.SOUND.INIT","Quig_Sound_SFX_Load_OPL4","Loads a OPL4 FX file and returns Handle. 255 is error loading."		
	
	AddFuncDat "Sound.Music.Play","Handle%","QUIG.SOUND.INIT","Quig_Sound_Music_Play","Plays from start of Handle."
	AddFuncDat "Sound.Music.Stop","Handle%","QUIG.SOUND.INIT","Quig_Sound_Music_Stop","Stops Music from a Handle playing."
	AddFuncDat "Sound.Music.Continue","Handle%","QUIG.SOUND.INIT","Quig_Sound_Music_Continue","Continues Music from a Handle playing."	
	AddFuncDat "Sound.Music.Release","Handle%","QUIG.SOUND.INIT","Quig_Sound_Music_Release","Realeases Music handle."
	AddFuncDat "Sound.Music.Volume","Handle%,Volume%","QUIG.SOUND.INIT","Quig_Sound_Music_Volume","Sets Music handle volume (0..255)."		
	AddFuncDat "Sound.Music.LoadPSG%","Filename$","QUIG.SOUND.INIT","Quig_Sound_Music_Load","Loads a PSG music file and returns Handle. 255 is error loading."
	AddFuncDat "Sound.Music.LoadOPL4%","Filename$","QUIG.SOUND.INIT","Quig_Sound_Music_Load_OPL4","Loads a OPL4 music file and returns Handle. 255 is error loading."	
	
	AddFuncDat "Sound.FX.Sys.Click1%","#1%","","","Constant Sound FX Click1 (1)."
	AddFuncDat "Sound.FX.Sys.Click2%","#2%","","","Constant Sound FX Click2  (2)."
	AddFuncDat "Sound.FX.Sys.Beep1%","#3%","","","Constant Sound FX Beep1 (3)."
	AddFuncDat "Sound.FX.Sys.Beep2%","#4%","","","Constant Sound FX Beep2 (4)."
	AddFuncDat "Sound.FX.Sys.Ring1%","#5%","","","Constant Sound FX Ring 1 (5)."	
	AddFuncDat "Sound.FX.Sys.Ring2%","#6%","","","Constant Sound FX Ring 2 (6)."	
	AddFuncDat "Sound.FX.Sys.Alert1%","#7%","","","Constant Sound FX Alert 1 (7)."	
	AddFuncDat "Sound.FX.Sys.Alert2%","#8%","","","Constant Sound FX Alert 2 (8)."		
	AddFuncDat "Sound.FX.Sys.Slide1%","#9%","","","Constant Sound FX Slide 1 (9)."	
	AddFuncDat "Sound.FX.Sys.Slide2%","#10%","","","Constant Sound FX Slide 2 (10)."
	AddFuncDat "Sound.FX.Sys.RaiseUp%","#11%","","","Constant Sound FX Raise Up (11)."	
	AddFuncDat "Sound.FX.Sys.RaiseDown%","#12%","","","Constant Sound FX Raise Down (12)."			
	AddFuncDat "Sound.FX.Sys.PopUp%","#13%","","","Constant Sound FX Pop Up (13)."	
	AddFuncDat "Sound.FX.Sys.Shrink%","#14%","","","Constant Sound FX Shrink (14)."	
	AddFuncDat "Sound.FX.Sys.Tic1%","#15%","","","Constant Sound FX Tic 1 (15)."	
	AddFuncDat "Sound.FX.Sys.Tic2%","#16%","","","Constant Sound FX Tic 2 (16)."		
	AddFuncDat "Sound.FX.Sys.Shoot%","#17%","","","Constant Sound FX Shoot (17)."	
	AddFuncDat "Sound.FX.Sys.Explosion%","#18%","","","Constant Sound FX Explosion (18)."		
	AddFuncDat "Sound.FX.Sys.Step%","#19%","","","Constant Sound FX Step (19)."	
	AddFuncDat "Sound.FX.Sys.Lose%","#20%","","","Constant Sound FX Lose (20)."		
	AddFuncDat "Sound.FX.Sys.Win%","#21%","","","Constant Sound FX Win (21)."	
	
	
	AddFuncDat "Garbage","","QUIG.GARBAGE","Quig_Garbage","Force a Garbage Collection."
	
	AddFuncDat "IO.In%","Port%","QUIG.IO.IN","Quig_IO_In","Reads data from a IO Port."
	AddFuncDat "IO.Out","Port%,Value%","QUIG.IO.OUT","Quig_IO_Out","Send a value to a given IO Port."
	
	
	AddFuncDat "Timer.On","","QUIG.TIMER.SET.ON","Quig_Timer_Set_On","Turns on the Timer"
	AddFuncDat "Timer.Stop","","QUIG.TIMER.SET.STOP","Quig_Timer_Set_Stop","Halts the Timer"	
	AddFuncDat "Timer.IsOn%","","QUIG.TIMER.ISON","Quig_Timer_IsOn","Return the status of the Timer Halted 0 or On 1"
	
	AddFuncDat "Tool.ImgBox.Tile.Set","Control%,Sheet%,Tile%","QUIG.TILE.SET","Quig_Control_Tile_Set","Set tile graphic from a sheet to an Image tool"	
	
	AddFuncDat "Execute%","Filename$","QUIG.EXECUTE","Quig_Execute","Launch an app or file. Returns 0-Success/1-File not found/2-Not executable/3-File Error/4-Memory Full"
	
	AddFuncDat "App.CommandLine$","","QUIG.APP.COMMANDLINE","Quig_App_CommandLine","Return application entry string, including Path\file & parameters." 
	AddFuncDat "App.CommandLine.Len%","","QUIG.APP.COMMANDLINE","Quig_App_CommandLine_Len","Return application entry string length." 
	AddFuncDat "App.Name$","@AppNam%","","","Return application name string." 	
	AddFuncDat "App.Name.Len%","@AppNam%","QUIG.LEN","Quig_Len","Return application name string."
	AddFuncDat "App.Path$","","QUIG.APP.PATH","Quig_App_Path","Return application entry directory path." 
	AddFuncDat "App.TranExt.Size%","(AppExtTrans%","","","Memory allocated to extend Transfer Area."
	AddFuncDat "App.Exit","","","Quig_End","Close and Exit the application."
	AddFuncDat "App.Coder$","@Quig_App_Coder%","","","Returns the Application Coder name string."
	AddFuncDat "App.Version$","@Quig_App_Version%","","","Returns the Applications Version string." 
	AddFuncDat "App.Date$","@Quig_App_Date%","","","Returns the Applications Compile Date string."
	AddFuncDat "App.Bank%","@AppBnkNum%","QUIG.GET.BYTE","Quig_Get_Byte","Returns the Applications Bank number."
	
	;**** Functions
	
	AddFuncDat "Dialog%","Line$,Line$,Line$,Title%,Buttons%,Icon%","QUIG.DIALOG","Quig_Dialog","Display the dialog box."
	AddFuncDat "Dialog.Result.Failed%","#0%","","","Constant of Dialog failing to Open as already in use."			
	AddFuncDat "Dialog.Result.Open%","#1%","","","Constant of Dialog being Open. Should be an Impossible result."
	AddFuncDat "Dialog.Result.Ok%","#2%","","","Constant of Dialog was exited via OK click."
	AddFuncDat "Dialog.Result.Yes%","#3%","","","Constant of Dialog was exited via Yes click."
	AddFuncDat "Dialog.Result.No%","#4%","","","Constant of Dialog was exited via No click."
	AddFuncDat "Dialog.Result.CancelClose%","#5%","","","Constant of Dialog was exited via Cancel or Close click."
	AddFuncDat "Dialog.Title.Normal%","#0%","","","Constant for MsgBox Tile."
	AddFuncDat "Dialog.Title.Error%","#1%","","","Constant for MsgBox Tile."
	AddFuncDat "Dialog.Title.Info%","#2%","","","Constant for MsgBox Tile."
	AddFuncDat "Dialog.Title.Warning%","#3%","","","Constant for MsgBox Tile."
	AddFuncDat "Dialog.Title.Confirmation%","#4%","","","Constant for MsgBox Tile."	
	AddFuncDat "Dialog.Icon.Default%","#0%","","","Constant for MsgBox Icon."
	AddFuncDat "Dialog.Icon.User%","#1%","","","Constant for MsgBox Icon."
	AddFuncDat "Dialog.Icon.Empty%","#1%","","","Constant for MsgBox Icon."	
	AddFuncDat "Dialog.Buttons.Ok%","#1%","","","Constant for MsgBox Button."
	AddFuncDat "Dialog.Buttons.YesNo%","#2%","","","Constant for MsgBox Button."
	AddFuncDat "Dialog.Buttons.YesNoCancel%","#3%","","","Constant for MsgBox Button."		
	AddFuncDat "MsgBox%","Line$,Line$,Line$,Title%,Buttons%,Icon%","QUIG.DIALOG","Quig_Dialog","Display the MsgBox."
	AddFuncDat "MsgBox.Result.Failed%","#0%","","","Constant of MsgBox failing to Open as already in use."			
	AddFuncDat "MsgBox.Result.Open%","#1%","","","Constant of MsgBox being Open. Should be an Impossible result."
	AddFuncDat "MsgBox.Result.Ok%","#2%","","","Constant of MsgBox was exited via OK click."
	AddFuncDat "MsgBox.Result.Yes%","#3%","","","Constant of MsgBox was exited via Yes click."
	AddFuncDat "MsgBox.Result.No%","#4%","","","Constant of MsgBox was exited via No click."
	AddFuncDat "MsgBox.Result.CancelClose%","#5%","","","Constant of MsgBox was exited via Cancel or Close click."	
	AddFuncDat "MsgBox.Title.Normal%","#0%","","","Constant for MsgBox Tile."
	AddFuncDat "MsgBox.Title.Error%","#1%","","","Constant for MsgBox Tile."
	AddFuncDat "MsgBox.Title.Info%","#2%","","","Constant for MsgBox Tile."
	AddFuncDat "MsgBox.Title.Warning%","#3%","","","Constant for MsgBox Tile."
	AddFuncDat "MsgBox.Title.Confirmation%","#4%","","","Constant for MsgBox Tile."
	AddFuncDat "MsgBox.Icon.Default%","#0%","","","Constant for MsgBox Icon."
	AddFuncDat "MsgBox.Icon.User%","#1%","","","Constant for MsgBox Icon."
	AddFuncDat "MsgBox.Icon.Empty%","#1%","","","Constant for MsgBox Icon."	
	AddFuncDat "MsgBox.Buttons.Ok%","#1%","","","Constant for MsgBox Button."
	AddFuncDat "MsgBox.Buttons.YesNo%","#2%","","","Constant for MsgBox Button."
	AddFuncDat "MsgBox.Buttons.YesNoCancel%","#3%","","","Constant for MsgBox Button."		
	
	
	
	AddFuncDat "File.Select.Open%","Path$,Ext$","QUIG.FILE.SELECT.OPEN","Quig_File_Select_Open","Displays file select dialog. Result string placed in variable 'File.Select.File'"
	AddFuncDat "File.Select.Save%","Path$,Ext$","QUIG.FILE.SELECT.OPEN","Quig_File_Select_Save","Displays file select dialog. Result string placed in variable 'File.Select.File'"
	AddVarStr  "File.Select.Text",""
	AddFuncDat "File.Select.File$","(File_Select_Text%","","","Returns the last path/file from the File select Dialog"
	AddFuncDat "File.Select.OK%","#0%","","","Constant File.Select.OK = 0."
	AddFuncDat "File.Select.Cancel%","#1%","","","Constant File.Select.Cancel = 1."
	AddFuncDat "File.Select.InUse%","#2%","","","Constant File.Select.InUse = 2."
	AddFuncDat "File.Select.MemFull%","#3%","","","Constant File.Select.MemFull = 3."
	AddFuncDat "File.Select.NoWindow%","#4%","","","Constant File.Select.NoWindow = 4."
	AddFuncDat "File.Exist%","Filename$","QUIG.FILE.EXIST","Quig_File_Exist","Returns 1 if the given string is an existing file" ;OKAY
	AddFuncDat "File.Size%","Filename$","QUIG.FILE.SIZE","Quig_File_Size","Returns file size in bytes." ;OKAY	
	AddFuncDat "File.Rename","Path$,NewPath$","QUIG.DIRECTORY.RENAME","Quig_Directory_Rename","Rename an existing file with new name."	
	AddFuncDat "File.Move","Path$,NewPath$","QUIG.DIRECTORY.RENAME","Quig_Directory_Move","Move an existing file to new directory."
	AddFuncDat "File.Delete","Path$","QUIG.DIRECTORY.RENAME","Quig_File_Delete","Delete an existing file."
	AddFuncDat "File.Result%","@Quig_Directory_Error_Byte%","QUIG.GET.BYTE","Quig_Get_Byte","Directory Command error report 1-Okay else Check error list."		
	
	AddFuncDat "Dir.Exist%","Dir$","QUIG.FILE.EXIST","Quig_File_Exist","Returns 1 if the given string is an existing directory" ;OKAY		
	AddFuncDat "Dir.New","Path$","QUIG.DIRECTORY.RENAME","Quig_Directory_New","Make new directory with path name."
	AddFuncDat "Dir.Rename","Path$,NewPath$","QUIG.DIRECTORY.RENAME","Quig_Directory_Rename","Rename an existing directory with new name."	
	AddFuncDat "Dir.Move","Path$,NewPath$","QUIG.DIRECTORY.RENAME","Quig_Directory_Move","Move an existing directory with new name."
	AddFuncDat "Dir.Delete","Path$","QUIG.DIRECTORY.RENAME","Quig_Directory_Delete","Delete an existing directory."
	AddFuncDat "Dir.Result%","@Quig_Directory_Error_Byte%","QUIG.GET.BYTE","Quig_Get_Byte","Directory Command error report 1-Okay else Check error list."	
	AddFuncDat "Dir.Select%","Path$","QUIG.FILE.SELECT.OPEN","Quig_Directory_Select","Displays directory select dialog.Result string placed in variable 'Directory.Select.File'"		
	AddVarStr  "Dir.Select.Text",""
	AddFuncDat "Dir.Select.Path$","(Directory_Select_Text%","","","Returns the last path/file from the Directory select Dialog."
	AddFuncDat "Dir.Select.OK%","#0%","","","Constant Directory.Select.OK = 0."
	AddFuncDat "Dir.Select.Cancel%","#1%","","","Constant Directory.Select.Cancel = 1."
	AddFuncDat "Dir.Select.InUse%","#2%","","","Constant Directory.Select.InUse = 2."
	AddFuncDat "Dir.Select.MemFull%","#3%","","","Constant Directory.Select.MemFull = 3."
	AddFuncDat "Dir.Select.NoWindow%","#4%","","","Constant Directory.Select.NoWindow = 4."
	AddFuncDat "Dir.Read","Path$,Attr%","QUIG.DIRECTORY.READ","Quig_Directory_Read","Sets Directory Read path & attributes."
	AddFuncDat "Dir.Read.Next","","QUIG.DIRECTORY.READ","Quig_Directory_ReadNext","Reads a single entry from the given path/directory."	
	AddFuncDat "Dir.Read.Name$","","QUIG.DIRECTORY.READ","Quig_Directory_Read_Name","Gets the name of file/directory after calling a Directory Read."
	AddFuncDat "Dir.Read.Type%","","QUIG.DIRECTORY.READ","Quig_Directory_Read_Type","Gets the type either name/directory after calling a Directory Read."
	AddFuncDat "Dir.Read.Time%","","QUIG.DIRECTORY.READ","Quig_Directory_Read_Time","Gets the Timecode of either name/directory. Use with File.Decode.x to get Hour/Min/Sec."
	AddFuncDat "Dir.Read.Date%","","QUIG.DIRECTORY.READ","Quig_Directory_Read_Date","Gets the Datecode of either name/directory. Use with File.Decode.x to get Day/Month/Year."
	
	AddFuncDat "File.Decode.Sec%","Timecode%","QUIG.TIMECODE","Quig_Timecode_Sec",""
	AddFuncDat "File.Decode.Min%","Timecode%","QUIG.TIMECODE","Quig_Timecode_Min",""
	AddFuncDat "File.Decode.Hour%","Timecode%","QUIG.TIMECODE","Quig_Timecode_Hour",""
	AddFuncDat "File.Decode.Day%","Datecode%","QUIG.DATECODE","Quig_Datecode_Day",""
	AddFuncDat "File.Decode.Month%","Datecode%","QUIG.DATECODE","Quig_Datecode_Month",""
	AddFuncDat "File.Decode.Year%","Datecode%","QUIG.DATECODE","Quig_Datecode_Year",""		
	
	
	AddFuncDat "Dir.Attr.ReadOnly%","#1%","","","Constant for unavailable socket number."			
	AddFuncDat "Dir.Attr.Hidden%","#2%","","","Constant for listening status of Net Socket."
	AddFuncDat "Dir.Attr.System%","#4%","","","Constant for connected status of Net Socket."
	AddFuncDat "Dir.Attr.VolumeID%","#8%","","","Constant for connected status of Net Socket."		
	AddFuncDat "Dir.Attr.Directory%","#16%","","","Constant for connected status of Net Socket."	
	AddFuncDat "Dir.Attr.Archive%","#32%","","","Constant for connected status of Net Socket."		
	
	
	AddFuncDat "Net.TCP.Server%","@Quig_Net_TCP_Server%","QUIG.GET.BYTE","Quig_Get_Byte","Return true if this is a TCP server."	
	AddFuncDat "Net.TCP.Server.Open%","Port%","QUIG.NET.TCP.SERVER.OPEN","Quig_Net_TCP_Server_Open","Opens a server TCP listening port returning a Handle."
	AddFuncDat "Net.TCP.Client.Open%","IP$,Port%","QUIG.NET.TCP.CLIENT.OPEN","Quig_Net_TCP_Client_Open","Opens a client TCP and looks for server returning a Handle."
	
	AddFuncDat "Net.DNS.Resolve$","Url$","QUIG.NET.DNS.RESOLVE","Quig_Net_DNS_Resolve","Returns The IP location of a Web URL"
	AddFuncDat "Net.DNS.Verify%","Url$","QUIG.NET.DNS.VERIFY","Quig_Net_DNS_Verify","Returns verification of a Web URL. 0=invalid, 1=IP, 2=Domain." 	
	
	
	AddFuncDat "Net.TCP.Close","Socket%","QUIG.NET.TCP.CLOSE","Quig_Net_TCP_Close","Close TCP Network Socket."
	AddFuncDat "Net.TCP.Flush","Socket%","QUIG.NET.TCP.FLUSH","Quig_Net_TCP_Flush","Flush TCP Network Socket."	
	AddFuncDat "Net.TCP.Send","Socket%,Send$","QUIG.NET.SEND","Quig_Net_Send","Send string over TCP Network Socket."
	AddFuncDat "Net.TCP.Send.String","Socket%,Send$","QUIG.NET.SEND","Quig_Net_Send","Send string over TCP Network Socket."	
	AddFuncDat "Net.TCP.Send.Byte","Socket%,Byte%","QUIG.NET.SEND","Quig_Net_Send_Byte","Send single Byte over TCP Network Socket."
	AddFuncDat "Net.TCP.Send.Int","Socket%,Int%","QUIG.NET.SEND","Quig_Net_Send_Int","Send single Int over TCP Network Socket."	
	AddFuncDat "Net.TCP.Status%","Socket%","QUIG.NET.TCP.STATUS","Quig_Net_TCP_Status","Return the status of a Network Socket."
	
	AddFuncDat "Net.TCP.Status.Unavailable%","#255%","","","Constant for unavailable socket number."			
	AddFuncDat "Net.TCP.Status.Listening%","#1%","","","Constant for listening status of Net Socket."
	AddFuncDat "Net.TCP.Status.Connected%","#2%","","","Constant for connected status of Net Socket."
	AddFuncDat "Net.TCP.Status.Closing%","#3%","","","Constant for connected status of Net Socket."		
	AddFuncDat "Net.TCP.Status.Closed%","#4%","","","Constant for connected status of Net Socket."		
	AddFuncDat "Net.TCP.Status.DataRecieved%","#128%","","","Constant for connected status of Net Socket."		
	
	AddFuncDat "Net.Initialised%","@Quig_Net_Process%","QUIG.GET.BYTE","Quig_Get_Byte","Has the network daemon been initialised."		
	AddFuncDat "Net.Initialise","","QUIG.INIT.NETCHECK","Quig_Init_NetCheck","Initialise Network ability through running network daemon."
	AddFuncDat "Event.Net%","@Quig_Event_Net%","QUIG.GET.BYTE","Quig_Get_Byte","Return then Net event type of last net event occurance."
	AddFuncDat "Net.Handle%","@Quig_Net_Handle%","QUIG.GET.BYTE","Quig_Get_Byte","Return then Net event type of last net event occurance."		
	
	
;	AddFuncDat "Event.Net.TCP.Establish%","","QUIG.EVENT.NET.TCP.ESTABLISH","Quig_Event_Net_TCP_Establish","Return true of False for a TCP connection establish event."	
;	AddFuncDat "Event.Net.TCP.Received%","","QUIG.EVENT.NET.TCP.RECEIVED","Quig_Event_Net_TCP_Received","Return true of False for a Network Socket Receive event."
;	AddFuncDat "Event.Net.TCP.Closing%","","QUIG.EVENT.NET.TCP.CLOSING","Quig_Event_Net_TCP_Closing","Return true of False for a Network Socket Closing event."	
;	AddFuncDat "Event.Net.TCP.Closed%","","QUIG.EVENT.NET.TCP.CLOSED","Quig_Event_Net_TCP_Closed","Return true of False for a Network Socket Close event."	
	
	AddFuncDat "Event.Net.Received.Size%","(Quig_Net_Received_Value%","","","Return size of Net received data."	
	AddFuncDat "Event.Net.Socket%","@Quig_Event_Net_Handle%","QUIG.GET.BYTE","Quig_Get_Byte","Return the event socket."	
	AddFuncDat "Event.Net.Received.String$","","QUIG.NET.RECEIVE.STRING","Quig_Net_Receive_String","Return string from net event"
	AddFuncDat "Event.Net.Received.Byte%","","QUIG.NET.RECEIVE.BYTE","Quig_Net_Receive_Byte","Returns single Byte from net event."	
	AddFuncDat "Event.Net.Received.PartString$","Length%","QUIG.NET.RECEIVE.STRING","Quig_Net_Receive_Part_String","Return string from net event"	
	AddFuncDat "Event.Net.Port%","(Quig_Event_Net_Port%","","","Return the port of net event."
	AddFuncDat "Event.Net.Result%","@Quig_Event_Net%","QUIG.GET.BYTE","Quig_Get_Byte","Return then Net event type of last net event occurance."	
	
	AddFuncDat "StringBuffer%","(Quig_String_Buffer_Pos%","","","Return String buffer Pos"
	
	;AddFuncDat "Sound.Init

SYMBOS COLOUR CONSTANTS	
	These represent the Symbos Colour Set from value 0..15 and are INT constants.
	
	0=Colour.PastelYellow%, 1=Colour.Black%, 2=Colour.Orange%, 3=Colour.DarkRed%
	4=Colour.BrightCyan%, 5=Colour.DarkBlue%, 6=Colour.SkyBlue%, 7=Colour.Blue%
	8=Colour.White%, 9=Colour.Green%, 10=Colour.BrightGreen%, 11=Colour.Magenta%,	
	12=Colour.Yellow%, 13=Colour.Grey%, 14=Colour.Pink%, 15=Colour.Red%
	
	
	
	AddFuncDat "Sheet.Load","Sheet%,SheetFile$","QUIG.SHEETLOAD","Quig_SheetLoad","Loads a Sheet file into given sheet container."
	AddFuncDat "Sheet.Free","Sheet%"," QUIG.SHEETFREE","Quig_SheetFree","Free memory used by sheet contianer"
	AddFuncDat "Sheet.Tiles%","Sheet%","QUIG.GET.BYTE","Quig_Get_Byte_Plus1","Return number of tiles in sheet container."
	AddFuncDat "Sheet.Size%","Sheet%","QUIG.SHEET.SIZE","Quig_Sheet_Size","Return memory size used by sheet container."	
	AddFuncDat "Sheet.Status%","Sheet%","QUIG.GET.BYTE","Quig_Get_Byte","Return status of sheet container (0) Empty / (1) In use / >(99) loading Error."
	AddFuncDat "Sheet.Colour.Depth%","Sheet%","QUIG.SHEET.COLOUR.DEPTH","Quig_Sheet_Colour_Depth","Return colour depth of sheet container. (0)-4 colour (1)-16 colour."		
	
	AddFuncDat "String.Memory%","","QUIG.STRING.MEMORY","Quig_String_Memory","Return size in bytes of useable String space."
	AddFuncDat "String.Free%","","QUIG.STRING.FREE","Quig_String_Free","Return size in bytes of free String space."	
	AddFuncDat "String.Buffer.Free%","","QUIG.STRING.BUFFER.FREE","Quig_String_Buffer_Free","Return size in bytes of free String Buffer space."		
	

	
	AddFuncDat "Clipboard.Text.Set","String$","QUIG.CLIPBOARD.TEXT.SET","Quig_Clipboard_Text_Set","Sets the Text on Clipboard."
	AddFuncDat "Clipboard.Text.Get$","","QUIG.CLIPBOARD.TEXT.GET","Quig_Clipboard_Text_Get","Returns Text if any on clipbaord."		
	AddFuncDat "Clipboard.Type%","","QUIG.CLIPBOARD.TYPE","Quig_Clipboard_Type","Returns type of data in clipboard. Empty-0 Text-1 Graphic-2"
	AddFuncDat "Clipboard.Len%","","QUIG.CLIPBOARD.LEN","Quig_Clipboard_Len","Returns type of data in clipboard size in bytes"	
	


SYSTEM FUNCTIONS
	=Screen.Mode%","","QUIG.SCREEN.MODE.GET","Quig_Screen_Mode_Get","Return current screen mode. PCW-0 CPC-1/2 MSX-5/6/7" ;Ok
	=Screen.Colour%","","QUIG.SCREEN.COLOUR.GET","Quig_Screen_Colour_Get","Return current screen mode colour (2-16)" ;Ok
	=Screen.Resolution.X%
		Parameter: None
		Description: Returns INT with the current X/Horizontal screen pixel resoloution.
	=Screen.Resolution.Y%
		Paramater: None
		Description: Returns INT with the current Y/Vertical screen pixel resolution.
	=Machine%
		Parameter: None
		Description: Returns INT of current machine type. See Machine Constants value list.

	0=Screen.Mode.Pcw% : Mode 720x255x2
	1=Screen.Mode.Cpc1% : Mode 320x200x4
	2=Screen.Mode.Cpc1% : Mode 640x200x2
	1=Screen.Mode.Ep% : Mode 320x200x4
	2=Screen.Mode.Ep2% : Mode 640x200x2
	5=Screen.Mode.Msx1% : Mode 256x212x4
	6=Screen.Mode.Msx2% : Mode 256x212x16
	7=Screen.Mode.Msx3% : Mode 512x212x16	
	
PCW    -> 0=720x255x02
CPC/EP -> 1=320x200x04, 2=640x200x02
MSX    -> 5=256x212x16, 6=512x212x04, 7=512x212x16
G9K    -> 8=384x240x16, 9=512x212x16, 10=768x240x16, 11=1024x212x16
NCxxx  -> 14=480x128x02, 15=480x192x02, 16=480x255x02
ZXS    -> 17=256x192x2
NXT    -> 20=640x256x16
	
MACHINE CONSTANTS
	These represent the Machine that Symbos is Running on from value 0..20 and are INT constants.
	0=Machine.464%, 1=Machine.664%, 2=Machine.6128%, 3=Machine.464Plus%	
	4=Machine.6128Plus%, 6=Machine.Enterprise%,7=Machine.MSX1%	
	8=Machine.MSX2%, 9=Machine.MSX2Plus%, 10=Machine.TurboR%
	12=Machine.Pcw8xxx%, 13=Machine.Pcw9xxx%, 14=Machine.Pcw16%
	15=Machine.NC100%, 16=Machine.NC150%, 17=Machine.NC200%
	18=Machine.SymbosVM%, 20=Machine.SpectrumNext%
	
MATH FUNCTIONS
	=Rnd%(Value)
		Parameter: Integer
		Description: Generates a random number between 0 and specified Integer value and returns an INT"
	=Neg%(Value)
		Parameter: Integer
		Description: Changes sign of the given Integer and returns an INT result.
	=Sqr%(Value)
		Parameter: Integer
		Description: Converts an Integer Value to its square root.
	=Not%(Value)
		Parameter: Integer
		Description: Inverts a Boolean Result from True/False input.
	=Max%(Value1,Value2)
		Parameter: Integer,Integer
		Description: Returns the larger of two Integer values.
	=Min%(Value1,Value2)
		Parameter: Integer,Integer
		Description: Returns the smaller of two Integer values.
	=Range%(Min,Max,Value)
		Parameter: Integer,Integer,Integer
		Description: Returns the value inside Range given a minimum, max and current value. Only Positive Integers.
	=Abs%(Value)
		Parameter: Integer
		Description: Returns an INT giving the Absolute of value of an integer. I.e Always a postive value.
	=Distance%(Value,Value)
		Parameter: Integer,Integer
		Description: Returne an INT giving the absolute distance between the two values. Faster ABS(value1-value2)

	AddFuncDat "Collision%","Radius%,X1%,Y1%,X2%,Y2%","QUIG.COLLISION.INT","Quig_Collision_Int","Collision"		
	
	AddFuncDat "Shl1%","Int%","QUIG.SHL1","Quig_Shl1","Shift Integer 1 bit left or multiply by 2."
	AddFuncDat "Shl2%","Int%","QUIG.SHL2","Quig_Shl2","Shift Integer 2 bits left or multiply by 4." 
	AddFuncDat "Shl3%","Int%","QUIG.SHL3","Quig_Shl3","Shift Integer 3 bits left or multiply by 8." 	
	AddFuncDat "Shl4%","Int%","QUIG.SHL4","Quig_Shl4","Shift Integer 4 bits left or multiply by 16."
	AddFuncDat "Shl5%","Int%","QUIG.SHL5","Quig_Shl5","Shift Integer 5 bits left or multiply by 32."	
	AddFuncDat "Shl6%","Int%","QUIG.SHL6","Quig_Shl6","Shift Integer 6 bits left or multiply by 64."
	AddFuncDat "Shl7%","Int%","QUIG.SHL7","Quig_Shl7","Shift Integer 7 bits left or multiply by 128."	
	AddFuncDat "Shl8%","Int%","QUIG.SHL8","Quig_Shl8","Shift Integer 8 bits left or multiply by 256."
	AddFuncDat "Shl9%","Int%","QUIG.SHL9","Quig_Shl9","Shift Integer 9 bits left or multiply by 512."
	AddFuncDat "Shl10%","Int%","QUIG.SHL10","Quig_Shl10","Shift Integer 10 bits left or multiply by 1024."
	AddFuncDat "Shl11%","Int%","QUIG.SHL11","Quig_Shl11","Shift Integer 11 bits left or multiply by 2048."
	AddFuncDat "Shl12%","Int%","QUIG.SHL12","Quig_Shl12","Shift Integer 12 bits left or multiply by 4096."	
	
	AddFuncDat "Shr1%","Int%","QUIG.SHR1","Quig_Shr1","Shift Integer 1 bit right or Divide by 2."
	AddFuncDat "Shr2%","Int%","QUIG.SHR2","Quig_Shr2","Shift Integer 2 bits right or Divide by 4." 
	AddFuncDat "Shr3%","Int%","QUIG.SHR3","Quig_Shr3","Shift Integer 3 bits right or Divide by 8." 	
	AddFuncDat "Shr4%","Int%","QUIG.SHR4","Quig_Shr4","Shift Integer 4 bits right or Divide by 16."
	AddFuncDat "Shr5%","Int%","QUIG.SHR5","Quig_Shr5","Shift Integer 5 bits right or Divide by 32."	
	AddFuncDat "Shr6%","Int%","QUIG.SHR6","Quig_Shr6","Shift Integer 6 bits right or Divide by 64."
	AddFuncDat "Shr7%","Int%","QUIG.SHR7","Quig_Shr7","Shift Integer 7 bits right or Divide by 128."	
	AddFuncDat "Shr8%","Int%","QUIG.SHR8","Quig_Shr8","Shift Integer 8 bits right or Divide by 256."
	AddFuncDat "Shr9%","Int%","QUIG.SHR9","Quig_Shr9","Shift Integer 9 bits right or Divide by 512."
	AddFuncDat "Shr12%","Int%","QUIG.SHR12","Quig_Shr12","Shift Integer 12 bits right or Divide by 4096."		
		
	
	
INPUT FUNCTIONS
	=Key%(KeyScanCode)
		Parameter: Integer
		Description: Checks input keyboard scan code for o/Not pressed 1/Pressed. See the Keyboard ScanCode chart for values.
	=Key.Shift%
		Parameter: None
		Description: Checks for Shift Key being 0/Not Pressed or 1/Pressed.	
	=Key.Control%
		Parameter: None
		Description: Checks for Control Key being 0/NotSet or 1/Set.
	=Key.Alt%
		Parameter: None
		Description: Checks for Alt being 0/NotSet or 1/Set.
	=Key.Caps%
		Parameter: None
		Description: Checks for Caps Lock being 0/Not Set or 1/Set.	
	=Mouse.Key% 
		Parameters: None
		Description: Returns an INT of which Mouse buttons are pressed 0/None 1/Left 2/Right or 3/Both
	=Mouse.X%
		Parameters: None
		Description: Returns an INT value of the Mouse pointers X axis screen position
	=Mouse.Y%
		Parameters: None
		Description Returns an INT value of the Mouse pointers Y axis screen position
	Mouse.XYKey
		Parameters: None
		Description: Fast Mouse Poll and stores results in Mouse.Result.X/Y/Key. This polls Mouse once and so is far quicker that using Standar Mouse.xx functions
	=Mouse.Result.X%
		Parameters: None
		Description: Returns an INT of the last polled result of Mouse X axis screen position. Used With Mouse.XYKey.
	=Mouse.Result.Y%
		Parameters: None
		Description: Returns an INT of the last polled result of Mouse Y axis screen position. Used with Mouse.XYKey.
	=Mouse.Result.Key%
		Parameters: None
		Description: Returns and INT of the last polled result of Mouse Key. Used with Mouse.XYKey.
	=IO.In%(Port)
		Parameters: Integer
		Description: Reads a BYTE from the given IO Port.
	IO.Out Port,Value
		Parameters: Integer,Integer
		Description: Send a byte value to the specified IO Port.		
	
	

	AddFuncDat "CreateBank%","Size%","QUIG.CREATEBANK","Quig_CreateBank","hsfghghs"
	AddFuncDat "Idle","","QUIG.IDLE","Quig_Idle","Return time to OS."
	
	AddFuncDat "Chr$","Ascii%","QUIG.CHR","Quig_Chr","Returns the string character of the given ascii value"

	
	AddFuncDat "Printer.Test%","","QUIG.PRINTER","Quig_prtbsy","Test printer. Returns 0=success, -1=busy, 1=Not supported."	
	AddFuncDat "Printer.String%","String$","QUIG.PRINTER","Quig_prtstr","Send a string to printer. Returns 0=success or 1=timeout/Print error."
	AddFuncDat "Printer.Byte%","Byte%","QUIG.PRINTER","Quig_prtbyt","Send a single byte to printer. Returns 0=success or 1=timeout/Print error."	
	
	
	AddFuncDat "Sgn%","Int%","QUIG.SGN.INT","Quig_Sgn_Int","Returns the Sgn of an Integer."
	AddFuncDat "Time.Second.Get%","","QUIG.TIME.SECOND.GET","Quig_Time_Second_Get","Returns the current clock second 0-59"
	AddFuncDat "Time.Minute.Get%","","QUIG.TIME.MINUTE.GET","Quig_Time_Minute_Get","Returns the current clock minute 0-59"	
	AddFuncDat "Time.Hour.Get%","","QUIG.TIME.HOUR.GET","Quig_Time_Hour_Get","Returns the current clock hour 0-23"	
	AddFuncDat "Time.Day.Get%","","QUIG.TIME.DAY.GET","Quig_Time_Day_Get","Returns the current clock day 1-31"		
	AddFuncDat "Time.Month.Get%","","QUIG.TIME.MONTH.GET","Quig_Time_Month_Get","Returns the current clock month 1-12"		
	AddFuncDat "Time.Year.Get%","","QUIG.TIME.YEAR.GET","Quig_Time_Year_Get","Returns the current clock year 1900-2100"
	AddFuncDat "Str$","Int%","QUIG.STR.STR","Quig_Str_Str","Converts number into a string"
	AddFuncDat "Randomize","Int%","QUIG.IRND","Quig_IRandomize","Sets the Randomize Seed."	

	AddFuncDat "Hex$","Int%","QUIG.HEX","Quig_Hex","Converts an Integer into a Hexidecimal String"

	AddFuncDat "IntSin%","Value%","QUIG.INTSIN","Quig_IntSin","Returns a Sin from a value of 0-255."	
	
	AddFuncDat "IntF%","IntAddr%,FracAddr%,Value%","QUIG.INTFRAC","Quig_IntFrac","Adds a fractional value to Int/Frac variables. Needs Variables Addr."
	
	

	
	AddFuncDat "Event.Form%","@Event_Form_ID%","QUIG.GET.BYTE","Quig_Get_Byte","Return the last events form number"
	AddFuncDat "Event.Control%","(Event_Control_ID%","","","Return the last events control number"
	AddFuncDat "Event.Reason%","@Event_UserInput%","QUIG.GET.BYTE","Quig_Get_Byte","Return the last events reason for happening"
	AddFuncDat "Event.Type%","@Event_Type%","QUIG.GET.BYTE","Quig_Get_Byte","Return the last events reason for happening"
	
	AddFuncDat "Event.Type.CloseButton%","#5%","","","Constant for Close Button or Alt-F4 being clicked."
	AddFuncDat "Event.Type.Menu%","#6%","","","Constant for Menu Entry being clicked."
	AddFuncDat "Event.Type.Content%","#14%","","","Constant for control of a conentent has been clicked."
	AddFuncDat "Event.Type.ToolBar%","#15%","","","Constant for control on Toolbar has been clicked."	
	AddFuncDat "Event.Type.KeyPressed%","#16%","","","Constant for key click/modify."
	
	
	AddFuncDat "Event.KeyPressed%","@Event_MouseX%","QUIG.GET.BYTE","Quig_Get_Byte","Return the last KeyPress."	
	
	AddFuncDat "Event.MouseX%","(Event_MouseX%","","","Return the MouseX value when last event occurred"
	AddFuncDat "Event.MouseY%","(Event_MouseY%","","","Return the MouseY value when last event occurred"
	
	
	AddFuncDat "Event.Reason.MouseLeftClick%","#0%","","","Constant for Mouse left button click."
	AddFuncDat "Event.Reason.MouseLeftDClick%","#2%","","","Constant for Mouse left button double click."
	AddFuncDat "Event.Reason.MouseRightClick%","#1%","","","Constant for Mouse right button click."
	AddFuncDat "Event.Reason.MouseMiddleClick%","#3%","","","Constant for Mouse middle button click."	
	AddFuncDat "Event.Reason.KeyClick%","#7%","","","Constant for key click/modify."
	AddFuncDat "Event.Reason.MouseWheel%","#8%","","","Constant for mouse wheel move."	
	
	
	

	
	
	
	AddFuncDat "Key.Code.CursorUp%","#0%","","","Constant Key Scan code for Cursor Up"
	AddFuncDat "Key.Code.CursorRight%","#1%","","","Constant Key Scan code for Cursor Right" 
	AddFuncDat "Key.Code.CursorDown%","#2%","","","Constant Key Scan code for Cursor Down"
	AddFuncDat "Key.Code.F9%","#3%","","","Constant Key Scan code for F9" 
	AddFuncDat "Key.Code.F6%","#4%","","","Constant Key Scan code for F6" 	
	AddFuncDat "Key.Code.F3%","#5%","","","Constant Key Scan code for F3" 	
	AddFuncDat "Key.Code.Enter%","#6%","","","Constant Key Scan code for Enter" 		
	AddFuncDat "Key.Code.CursorLeft%","#8%","","","Constant Key Scan code for Cursor Left" 	
	AddFuncDat "Key.Code.Alt%","#9%","","","Constant Key Scan code for Alt" 	
	AddFuncDat "Key.Code.F7%","#10%","","","Constant Key Scan code for F7" 	
	AddFuncDat "Key.Code.F8%","#11%","","","Constant Key Scan code for F8" 	
	AddFuncDat "Key.Code.F5%","#12%","","","Constant Key Scan code for F5" 	
	AddFuncDat "Key.Code.F1%","#13%","","","Constant Key Scan code for F1" 	
	AddFuncDat "Key.Code.F2%","#14%","","","Constant Key Scan code for F2" 	
	AddFuncDat "Key.Code.F0%","#15%","","","Constant Key Scan code for F0" 	
	
	
	AddFuncDat "Key.Code.F0%","#16%","","","Constant Key Scan code for F0" 
	AddFuncDat "Key.Code.OpenSqBrk%","#17%","","","Constant Key Scan code for F0" 
	AddFuncDat "Key.Code.Return%","#18%","","","Constant Key Scan code for F0" 
	AddFuncDat "Key.Code.CloseSqBrk%","#19%","","","Constant Key Scan code for F0" 
	AddFuncDat "Key.Code.F4%","#20%","","","Constant Key Scan code for F0" 
	AddFuncDat "Key.Code.Shift%","#21%","","","Constant Key Scan code for F0" 
	AddFuncDat "Key.Code.ForwardSlash%","#22%","","","Constant Key Scan code for F0" 
	AddFuncDat "Key.Code.Control%","#23%","","","Constant Key Scan code for F0" 
	AddFuncDat "Key.Code.Hat%","#24%","","","Constant Key Scan code for F0" 
	AddFuncDat "Key.Code.Minus%","#25%","","","Constant Key Scan code for F0" 
	AddFuncDat "Key.Code.At%","#26%","","","Constant Key Scan code for F0" 
	AddFuncDat "Key.Code.P%","#27%","","","Constant Key Scan code for F0" 	
	AddFuncDat "Key.Code.SemiColon%","#28%","","","Constant Key Scan code for F0" 
	AddFuncDat "Key.Code.Colon%","#29%","","","Constant Key Scan code for F0" 
	AddFuncDat "Key.Code.BackSlash%","#30%","","","Constant Key Scan code for F0" 
	AddFuncDat "Key.Code.FullStop%","#31%","","","Constant Key Scan code for F0" 
	AddFuncDat "Key.Code.0%","#32%","","","Constant Key Scan code for F0" 
	AddFuncDat "Key.Code.9%","#33%","","","Constant Key Scan code for F0" 
	AddFuncDat "Key.Code.O%","#34%","","","Constant Key Scan code for F0" 
	AddFuncDat "Key.Code.I%","#35%","","","Constant Key Scan code for F0" 
	AddFuncDat "Key.Code.L%","#36%","","","Constant Key Scan code for F0" 
	AddFuncDat "Key.Code.K%","#37%","","","Constant Key Scan code for F0" 
	AddFuncDat "Key.Code.M%","#38%","","","Constant Key Scan code for F0" 
	AddFuncDat "Key.Code.Comma%","#39%","","","Constant Key Scan code for F0" 
	AddFuncDat "Key.Code.8%","#40%","","","Constant Key Scan code for F0" 	
	AddFuncDat "Key.Code.7%","#41%","","","Constant Key Scan code for F0" 	
	AddFuncDat "Key.Code.U%","#42%","","","Constant Key Scan code for F0" 
	AddFuncDat "Key.Code.Y%","#43%","","","Constant Key Scan code for F0" 
	AddFuncDat "Key.Code.H%","#44%","","","Constant Key Scan code for F0" 
	AddFuncDat "Key.Code.J%","#45%","","","Constant Key Scan code for F0" 
	AddFuncDat "Key.Code.N%","#46%","","","Constant Key Scan code for F0" 
	AddFuncDat "Key.Code.Space%","#47%","","","Constant Key Scan code for F0" 
	AddFuncDat "Key.Code.6%","#48%","","","Constant Key Scan code for F0" 
	AddFuncDat "Key.Code.5%","#49%","","","Constant Key Scan code for F0" 
	AddFuncDat "Key.Code.R%","#50%","","","Constant Key Scan code for F0" 
	AddFuncDat "Key.Code.T%","#51%","","","Constant Key Scan code for F0" 
	AddFuncDat "Key.Code.G%","#52%","","","Constant Key Scan code for F0" 
	AddFuncDat "Key.Code.F%","#53%","","","Constant Key Scan code for F0" 	
	AddFuncDat "Key.Code.B%","#54%","","","Constant Key Scan code for F0" 	
	
	AddFuncDat "Key.Code.ESC%","#66%","","","Constant Key Scan code for ESC" 	
	AddFuncDat "Key.Code.A%","#69%","","","Constant Key Scan code for F0" 	
	
	
	
	
	https://discord.gg/hqfUdYKx