<?xml version="1.0"?>
<!-- syntaxdefinition for C/C++ 2001 by Andrea Paatz and Mike Krueger -->

<SyntaxDefinition name = "asm1-lang" extensions = ".asm">
	
	<Properties>
		<Property name="LineComment" value=";"/>
	</Properties>
	
	<Digits name = "Digits" bold = "true" italic = "false" color = "Red"/>
	
	<RuleSets>
		<RuleSet ignorecase = "true">
			<Delimiters>~!%^*()-+=|\/{}[]:;"'&lt;&gt; , .?</Delimiters>
			
			<Span name = "LineComment" bold = "false" italic = "false" color = "Green" stopateol = "true">
				<Begin>;</Begin>
			</Span>
			
			<Span name = "LineComment" bold = "false" italic = "false" color = "Green" stopateol = "true">
				<Begin>//</Begin>
			</Span>				
			
			<Span name = "BlockComment" bold = "false" italic = "false" color = "Green" stopateol = "false">
				<Begin>/*</Begin>
				<End>*/</End>
			</Span>
			
			<Span name = "String" bold = "false" italic = "false" color = "Red" stopateol = "true" escapecharacter="\">
				<Begin>"</Begin>
				<End>"</End>
			</Span>
			
			<Span name = "Char" bold = "false" italic = "false" color = "Magenta" stopateol = "true" escapecharacter="\">
				<Begin>&apos;</Begin>
				<End>&apos;</End>
			</Span>
			
			<MarkPrevious bold = "false" italic = "false" color = "MidnightBlue">(</MarkPrevious>
			
			<KeyWords name = "Punctuation" bold = "false" italic = "false" color = "DarkGreen">
				<Key word = "?" />
				<Key word = "," />
				<Key word = "." />
				<Key word = ";" />
				<Key word = "(" />
				<Key word = ")" />
				<Key word = "[" />
				<Key word = "]" />
				<Key word = "{" />
				<Key word = "}" />
				<Key word = "+" />
				<Key word = "-" />
				<Key word = "/" />
				<Key word = "%" />
				<Key word = "*" />
				<Key word = "&lt;" />
				<Key word = "&gt;" />
				<Key word = "^" />
				<Key word = "=" />
				<Key word = "~" />
				<Key word = "!" />
				<Key word = "|" />
				<Key word = "&amp;" />
			</KeyWords>	

			<KeyWords name = "KEYWORD1" bold="false" italic="false" color="Blue">		
				<Key word = "bcr"/>
				<Key word = "bsr"/>				
				<Key word = "btrsc"/>
				<Key word = "btrss"/>
				<Key word = "nop"/>
				<Key word = "clrwdt"/>
				<Key word = "sleep"/>
				<Key word = "daa"/>
				<Key word = "das"/>
				<Key word = "int"/>
				<Key word = "return"/>
				<Key word = "retfie"/>
				<Key word = "clra"/>
				<Key word = "clrr"/>
				<Key word = "movar"/>
				<Key word = "movr"/>
				<Key word = "decr"/>
				<Key word = "decrsz"/>
				<Key word = "incr"/>
				<Key word = "incrsz"/>
				<Key word = "addar"/>
				<Key word = "subar"/>
				<Key word = "adcar"/>
				<Key word = "sbcar"/>
				<Key word = "andar"/>
				<Key word = "iorar"/>
				<Key word = "xorar"/>
				<Key word = "comr"/>
				<Key word = "rlr"/>
				<Key word = "rrr"/>
				<Key word = "swapr"/>
				<Key word = "movia"/>
				<Key word = "addia"/>
				<Key word = "subia"/>
				<Key word = "andia"/>
				<Key word = "ioria"/>
				<Key word = "xoria"/>
				<Key word = "retia"/>
				<Key word = "call"/>
				<Key word = "goto"/>
			</KeyWords>	

			<KeyWords name = "MacroWords" bold="false" italic="false" color="Blue">
				<Key word = "org"/>
				<Key word = "#define" />
				<Key word = "#if" />
				<Key word = "#else" />
				<Key word = "#ifdef" />
				<Key word = "#ifndef" />
				<Key word = "#elif" />
				<Key word = "#endif" />				
				<Key word = "#include" />
				<Key word = "define" />
				<Key word = "ifdef" />
				<Key word = "ifndef" />
				<Key word = "elif" />
				<Key word = "else" />
				<Key word = "endif" />				
				<Key word = "include" />
				<Key word = "asm" />
				<Key word = "#asm" />	
				<Key word = "endasm" />
				<Key word = "#endasm" />	
				<Key word = "macro" />
				<Key word = "endm" />	
				<Key word = ".code" />
				<Key word = ".data" />		
				<Key word = "dd" />			
				<Key word = "dw" />	
				<Key word = "db" />		
				<Key word = "chip" />		
				<Key word = "reg" />
				<Key word = "equ"/>	
				<Key word = "ds"/>						
			</KeyWords>				
		</RuleSet>		
	</RuleSets>
</SyntaxDefinition>

