2017-09-01 03:36:51 +00:00
|
|
|
// Orca/M 65816 Assembler language specs
|
|
|
|
(
|
|
|
|
|
|
|
|
/****************************************************************************/
|
|
|
|
// MARK: Keywords
|
|
|
|
/****************************************************************************/
|
|
|
|
|
|
|
|
{
|
|
|
|
Identifier = "xcode.lang.asm.orcam.identifier";
|
|
|
|
Syntax = {
|
2017-09-06 03:54:45 +00:00
|
|
|
CaseSensitive = NO;
|
|
|
|
StartChars = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ_~";
|
|
|
|
Chars = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_~";
|
2017-09-01 03:36:51 +00:00
|
|
|
Type = "xcode.syntax.identifier";
|
|
|
|
};
|
|
|
|
},
|
|
|
|
|
|
|
|
{
|
2017-09-06 03:54:45 +00:00
|
|
|
Identifier = "xcode.lang.asm.orcam.keyword";
|
2017-09-01 03:36:51 +00:00
|
|
|
Syntax = {
|
2017-09-06 03:54:45 +00:00
|
|
|
CaseSensitive = NO;
|
|
|
|
StartChars = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ_~";
|
|
|
|
Chars = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_~";
|
|
|
|
Words = (
|
|
|
|
"adc",
|
|
|
|
"and",
|
|
|
|
"asl",
|
|
|
|
"bcc",
|
|
|
|
"bcs",
|
|
|
|
"beq",
|
|
|
|
"bge",
|
|
|
|
"bit",
|
|
|
|
"blt",
|
|
|
|
"bmi",
|
|
|
|
"bne",
|
|
|
|
"bpl",
|
|
|
|
"bra",
|
|
|
|
"brk",
|
|
|
|
"brl",
|
|
|
|
"bvc",
|
|
|
|
"bvs",
|
|
|
|
"clc",
|
|
|
|
"cld",
|
|
|
|
"cli",
|
|
|
|
"clv",
|
|
|
|
"cmp",
|
|
|
|
"cop",
|
|
|
|
"cpa",
|
|
|
|
"cpx",
|
|
|
|
"cpy",
|
|
|
|
"dec",
|
|
|
|
"dex",
|
|
|
|
"dey",
|
|
|
|
"eor",
|
|
|
|
"inc",
|
|
|
|
"inx",
|
|
|
|
"iny",
|
|
|
|
"jmp",
|
|
|
|
"jsl",
|
|
|
|
"jsr",
|
|
|
|
"lda",
|
|
|
|
"ldx",
|
|
|
|
"ldy",
|
|
|
|
"lsr",
|
|
|
|
"mvn",
|
|
|
|
"mvp",
|
|
|
|
"nop",
|
|
|
|
"ora",
|
|
|
|
"pea",
|
|
|
|
"pei",
|
|
|
|
"per",
|
|
|
|
"pha",
|
|
|
|
"phb",
|
|
|
|
"phd",
|
|
|
|
"phk",
|
|
|
|
"php",
|
|
|
|
"phx",
|
|
|
|
"phy",
|
|
|
|
"pla",
|
|
|
|
"plb",
|
|
|
|
"pld",
|
|
|
|
"plp",
|
|
|
|
"plx",
|
|
|
|
"ply",
|
|
|
|
"rep",
|
|
|
|
"rol",
|
|
|
|
"ror",
|
|
|
|
"rti",
|
|
|
|
"rtl",
|
|
|
|
"rts",
|
|
|
|
"sbc",
|
|
|
|
"sec",
|
|
|
|
"sed",
|
|
|
|
"sei",
|
|
|
|
"sep",
|
|
|
|
"sta",
|
|
|
|
"stp",
|
|
|
|
"stx",
|
|
|
|
"sty",
|
|
|
|
"stz",
|
|
|
|
"tax",
|
|
|
|
"tay",
|
|
|
|
"tcd",
|
|
|
|
"tcs",
|
|
|
|
"tdc",
|
|
|
|
"trb",
|
|
|
|
"tsb",
|
|
|
|
"tsc",
|
|
|
|
"tsx",
|
|
|
|
"txa",
|
|
|
|
"txs",
|
|
|
|
"txy",
|
|
|
|
"tya",
|
|
|
|
"tyx",
|
|
|
|
"wai",
|
|
|
|
"wdm",
|
|
|
|
"xba",
|
|
|
|
"xce",
|
|
|
|
|
|
|
|
"absaddr",
|
|
|
|
"align",
|
|
|
|
"anop",
|
|
|
|
"append",
|
|
|
|
"case",
|
|
|
|
"codechk",
|
|
|
|
"copy",
|
2017-09-07 04:08:00 +00:00
|
|
|
"data",
|
2017-09-06 03:54:45 +00:00
|
|
|
"datachk",
|
|
|
|
"dc",
|
|
|
|
"direct",
|
|
|
|
"ds",
|
|
|
|
"dynchk",
|
|
|
|
"eject",
|
2017-09-07 04:08:00 +00:00
|
|
|
"end",
|
2017-09-06 03:54:45 +00:00
|
|
|
"entry",
|
|
|
|
"equ",
|
|
|
|
"err",
|
|
|
|
"expand",
|
|
|
|
"gequ",
|
|
|
|
"ieee",
|
|
|
|
"instime",
|
|
|
|
"keep",
|
|
|
|
"kind",
|
|
|
|
"list",
|
|
|
|
"longa",
|
|
|
|
"longi",
|
|
|
|
"mem",
|
|
|
|
"merr",
|
|
|
|
"msb",
|
|
|
|
"numsex",
|
|
|
|
"obj",
|
|
|
|
"objcase",
|
|
|
|
"objend",
|
|
|
|
"org",
|
|
|
|
"printer",
|
|
|
|
"private",
|
|
|
|
"privdata",
|
|
|
|
"rename",
|
|
|
|
"setcom",
|
2017-09-07 04:08:00 +00:00
|
|
|
"start",
|
2017-09-06 03:54:45 +00:00
|
|
|
"symbol",
|
|
|
|
"title",
|
|
|
|
"using",
|
|
|
|
"65c02",
|
|
|
|
"65816",
|
|
|
|
|
|
|
|
"actr",
|
|
|
|
"ago",
|
|
|
|
"aif",
|
|
|
|
"ainput",
|
|
|
|
"amid",
|
|
|
|
"asearch",
|
|
|
|
"gbla",
|
|
|
|
"gblb",
|
|
|
|
"gblc",
|
|
|
|
"gen",
|
|
|
|
"lcla",
|
|
|
|
"lclb",
|
|
|
|
"lclc",
|
|
|
|
"macro",
|
|
|
|
"mcopy",
|
|
|
|
"mdrop",
|
|
|
|
"mend",
|
|
|
|
"mexit",
|
|
|
|
"mload",
|
|
|
|
"mnote",
|
|
|
|
"seta",
|
|
|
|
"setb",
|
|
|
|
"setc",
|
|
|
|
"trace",
|
|
|
|
);
|
2017-09-01 03:36:51 +00:00
|
|
|
Type = "xcode.syntax.keyword";
|
2017-09-06 03:54:45 +00:00
|
|
|
AltType = "xcode.syntax.identifier";
|
2017-09-01 03:36:51 +00:00
|
|
|
};
|
|
|
|
},
|
|
|
|
|
|
|
|
/****************************************************************************/
|
|
|
|
// MARK: Simple Syntax Coloring
|
|
|
|
/****************************************************************************/
|
|
|
|
|
|
|
|
{
|
|
|
|
Identifier = "xcode.lang.asm.orcam";
|
|
|
|
Description = "ORCAM Assembler Coloring";
|
|
|
|
BasedOn = "xcode.lang.simpleColoring";
|
|
|
|
IncludeInMenu = YES;
|
|
|
|
Name = "Assembly (ORCAM)";
|
|
|
|
Syntax = {
|
|
|
|
Tokenizer = "xcode.lang.asm.orcam.lexer";
|
|
|
|
IncludeRules = (
|
2017-09-07 04:08:00 +00:00
|
|
|
"xcode.lang.asm.orcam.codeblock",
|
|
|
|
"xcode.lang.asm.orcam.datablock",
|
2017-09-01 03:36:51 +00:00
|
|
|
);
|
|
|
|
Type = "xcode.syntax.plain";
|
|
|
|
};
|
|
|
|
},
|
|
|
|
{
|
|
|
|
Identifier = "xcode.lang.asm.orcam.lexer";
|
|
|
|
Syntax = {
|
|
|
|
IncludeRules = (
|
2017-09-07 03:41:46 +00:00
|
|
|
"xcode.lang.asm.orcam.comment.semi",
|
|
|
|
"xcode.lang.asm.orcam.comment.exclam",
|
|
|
|
"xcode.lang.asm.orcam.comment.star",
|
|
|
|
"xcode.lang.asm.orcam.comment.dot",
|
2017-09-01 03:36:51 +00:00
|
|
|
"xcode.lang.string",
|
|
|
|
"xcode.lang.character",
|
|
|
|
"xcode.lang.number",
|
2017-09-06 03:54:45 +00:00
|
|
|
"xcode.lang.asm.orcam.keyword",
|
2017-09-01 03:36:51 +00:00
|
|
|
"xcode.lang.asm.orcam.identifier",
|
|
|
|
);
|
|
|
|
};
|
|
|
|
},
|
|
|
|
|
|
|
|
{
|
2017-09-07 03:41:46 +00:00
|
|
|
Identifier = "xcode.lang.asm.orcam.comment.semi";
|
2017-09-01 03:36:51 +00:00
|
|
|
Syntax = {
|
2017-09-06 03:54:45 +00:00
|
|
|
StartAtBOL = YES;
|
|
|
|
StartAtColumnZero = YES;
|
2017-09-01 03:36:51 +00:00
|
|
|
Start = ";";
|
|
|
|
End = "\n";
|
|
|
|
IncludeRules = ( "xcode.lang.url", "xcode.lang.url.mail", "xcode.lang.comment.mark" );
|
|
|
|
Type = "xcode.syntax.comment";
|
|
|
|
};
|
|
|
|
},
|
|
|
|
|
|
|
|
{
|
2017-09-07 03:41:46 +00:00
|
|
|
Identifier = "xcode.lang.asm.orcam.comment.exclam";
|
2017-09-01 03:36:51 +00:00
|
|
|
Syntax = {
|
2017-09-06 03:54:45 +00:00
|
|
|
StartAtBOL = YES;
|
|
|
|
StartAtColumnZero = YES;
|
|
|
|
Start = "!";
|
2017-09-01 03:36:51 +00:00
|
|
|
End = "\n";
|
|
|
|
IncludeRules = ( "xcode.lang.url", "xcode.lang.url.mail", "xcode.lang.comment.mark" );
|
|
|
|
Type = "xcode.syntax.comment";
|
|
|
|
};
|
|
|
|
},
|
|
|
|
|
|
|
|
{
|
2017-09-07 03:41:46 +00:00
|
|
|
Identifier = "xcode.lang.asm.orcam.comment.star";
|
2017-09-01 03:36:51 +00:00
|
|
|
Syntax = {
|
|
|
|
StartAtBOL = YES;
|
2017-09-06 03:54:45 +00:00
|
|
|
StartAtColumnZero = YES;
|
|
|
|
Start = "*";
|
2017-09-01 03:36:51 +00:00
|
|
|
End = "\n";
|
|
|
|
IncludeRules = ( "xcode.lang.url", "xcode.lang.url.mail", "xcode.lang.comment.mark" );
|
|
|
|
Type = "xcode.syntax.comment";
|
|
|
|
};
|
|
|
|
},
|
|
|
|
|
|
|
|
{
|
2017-09-07 03:41:46 +00:00
|
|
|
Identifier = "xcode.lang.asm.orcam.comment.dot";
|
2017-09-01 03:36:51 +00:00
|
|
|
Syntax = {
|
|
|
|
StartAtBOL = YES;
|
2017-09-06 03:54:45 +00:00
|
|
|
StartAtColumnZero = YES;
|
|
|
|
Start = ".";
|
|
|
|
End = "\n";
|
|
|
|
IncludeRules = ( "xcode.lang.url", "xcode.lang.url.mail", "xcode.lang.comment.mark" );
|
|
|
|
Type = "xcode.syntax.comment";
|
2017-09-01 03:36:51 +00:00
|
|
|
};
|
|
|
|
},
|
2017-09-06 03:54:45 +00:00
|
|
|
|
2017-09-01 03:36:51 +00:00
|
|
|
{
|
2017-09-07 04:08:00 +00:00
|
|
|
Identifier = "xcode.lang.asm.orcam.codeblock";
|
2017-09-01 03:36:51 +00:00
|
|
|
Syntax = {
|
|
|
|
Tokenizer = "xcode.lang.asm.orcam.lexer";
|
2017-09-07 04:08:00 +00:00
|
|
|
Start = "start";
|
|
|
|
End = "end";
|
|
|
|
Recursive = NO;
|
2017-09-07 03:41:46 +00:00
|
|
|
Foldable = YES;
|
2017-09-06 03:54:45 +00:00
|
|
|
Type = "xcode.syntax.definition.function";
|
2017-09-07 03:41:46 +00:00
|
|
|
IncludeRules = (
|
|
|
|
);
|
2017-09-01 03:36:51 +00:00
|
|
|
};
|
|
|
|
},
|
2017-09-10 04:23:12 +00:00
|
|
|
|
2017-09-07 04:08:00 +00:00
|
|
|
{
|
|
|
|
Identifier = "xcode.lang.asm.orcam.datablock";
|
|
|
|
Syntax = {
|
|
|
|
Tokenizer = "xcode.lang.asm.orcam.lexer";
|
|
|
|
Start = "data";
|
|
|
|
End = "end";
|
|
|
|
Recursive = NO;
|
|
|
|
Foldable = YES;
|
|
|
|
Type = "xcode.syntax.definition.function";
|
|
|
|
IncludeRules = (
|
|
|
|
);
|
|
|
|
};
|
|
|
|
},
|
2017-09-01 03:36:51 +00:00
|
|
|
)
|