;=====================================================================
;Header file to be included by any files using system routines.
;---------------------------------------------------------------------
;
;Scale and Rotate structure - holds blitter fields until we are ready

				STRUCT rotblit

				ELEMENT a1flags,DWORD
				ELEMENT a1clipsize,DWORD
				ELEMENT count,DWORD
				ELEMENT a2step,DWORD
				ELEMENT a1inc,DWORD
				ELEMENT a1incf,DWORD
				ELEMENT a1step,DWORD
				ELEMENT a1stepf,DWORD
				ELEMENT a1pixptr,DWORD

				ENDS rotblitsz


;---------------------------------------------------------------------
;Variables accessible from other routines.

				global atdsys,intcount
				global atdsys,swapbaseptr
				global atdsys,seed
				global atdsys,curobjptr
				global atdsys,curfontptr
				global atdsys,textop
				global atdsys,plotgrop
				global atdsys,argptr

				global atdsys,fadeCR
				global atdsys,fadecnt
				global atdsys,fadeiadd

				global atdsys,chrlookup

				global atdsys,ntscpal


;---------------------------------------------------------------------
;Functions now follow:

				global atdsys,initialise
				global atdsys,setuserISR
				global atdsys,noISR			;dummy ISR
				global atdsys,wait_int
				global atdsys,wait_GPU
				global atdsys,setpalette
				global atdsys,long_out_d1
				global atdsys,long_outs_d1
				global atdsys,send_crlf
				global atdsys,random
				global atdsys,cpyrect
				global atdsys,drawline
				global atdsys,rectfill
				global atdsys,gradfill
				global atdsys,strlen
				global atdsys,strcpy
				global atdsys,strwidth
				global atdsys,ptext
				global atdsys,centretext
				global atdsys,centrepara
				global atdsys,rightjustify
				global atdsys,utoa5
				global atdsys,utoa4
				global atdsys,utoa3
				global atdsys,utoa2
				global atdsys,utoa1
				global atdsys,plotgrobject
				global atdsys,fadestart
				global atdsys,fadewait
				global atdsys,pausen
				global atdsys,waitnbuttons
				global atdsys,chkbuttons
				global atdsys,allocmem
				global atdsys,markmem
				global atdsys,freemem
				global atdsys,getdatalist
				global atdsys,getdata
				global atdsys,begdcompress
				global atdsys,dcompress
				global atdsys,wait_dcompress
				global atdsys,chk_dcompress
				global atdsys,enddcompress
				global atdsys,dsp_loadb
				global atdsys,dsp_run
				global atdsys,dsp_run_from
				global atdsys,gp_loadb
				global atdsys,gp_run
				global atdsys,gp_run_from
				global atdsys,gp_run_args
				global atdsys,gp_run_from_args
				global atdsys,gp_extra_args

				global atdsys,initscalerot8
				global atdsys,plotscalerot8
				global atdsys,rsblit


;-------------------------------------------------------------------
;Defines for fading - palette index for the fade phrase to reference

FADEPALIDX		equ 254
