; include file
#dontinclude

;******************************************************************************************************************************
function	#memstart
rem	#memstart   'decimal value'
rem	memory on the sega genesis starts at $ff0000 or in decimal 16711680
rem	usage:   #memstart [tab] 16711680
rem	
endfunction
;******************************************************************************************************************************
function	def
rem	def 
rem	memory definitions include ( byte, word, long, string )
rem	usage 1:   def [tab] mymem [tab] word
rem	usage 2:   def [tab] mymem [tab] string [tab] 12
endfunction
;******************************************************************************************************************************
function	even
rem	[tab] even
rem	use this command to even out memory addresses
rem	do not allocate a single byte or an un even number and expect your program to work
rem	
endfunction
;******************************************************************************************************************************
function	segaromstart
rem	segaromstart
rem	this command is required at the start of your program so the compiler can find the start after it builds the header.
rem	
rem	
endfunction
;******************************************************************************************************************************
function	segaromend
rem	segaromend
rem	this command is required at the end of your program so the compiler can properly calculate the size of the program
rem
rem
endfunction
;*******************************************************************************************************************************
function	if
rem	[tab] if
rem	used to define if/or/else statements for the pre-compiler
rem	usage types     [tab] x,a=b    [tab] b,a=b   [tab] w,a=b   [tab]  l,a=b
rem	x is bit testing, b=byte,w=word,l=long    types include [ !, <>, = , => , =< ]
rem	example1:
rem	[tab] if [tab] w,d0=d1 [tab] or [tab] w,d1=#3
rem	[tab] else
rem	[tab] endif
rem	
rem	example2:
rem	[tab] if [tab] x,d0!#8
rem	[tab] endif
rem	
endfunction
;********************************************************************************************************************************

function	#dontinclude
rem	#dontinclude
rem	tells the pre-compiler to ignore open file with this tag at the beginning
rem	usefull for developing function libraries and testing them
rem	
endfunction

;***************************************************************************************************************************************

function	#include
rem	#include [tab] sega\library.mdl
rem	
rem	loads function library
endfunction


