2 # Define SciTE settings for MMIXAL files.
4 file.patterns.mmixal=*.mms
5 filter.mmixal=MMIXAL (mms)|$(file.patterns.mmixal)|
7 lexer.$(file.patterns.mmixal)=mmixal
9 opcodes=2ADDU 4ADDU 8ADDU 16ADDU ADD ADDU AND ANDNH ANDNL ANDNMH ANDNML \
10 BDIF BEV BN BNN BNP BNZ BOD BP BSPEC BYTE BZ CMP CMPU CSEV CSN CSNN CSNP CSNZ CSOD CSP CSWAP CSZ \
11 DIV DIVU ESPEC EXPR FADD FCMP FCMPE FDIV FEQL FEQLE FIX FIXU FLOT FLOTU FMUL FREM FSQRT FSUB FUN FUNE \
12 GET GETA GO GREG I_BIT INCH INCL INCMH INCML IS JMP LDA LDB LDBU LDHT LDO LDOU LDSF LDT LDTU LDUNC LDVTS LDW LDWU LOC LOCAL \
13 MOR MUL MULU MUX MXOR NAND NEG NEGU NNIX NOR NXOR O_BIT OCTA ODIF OR ORH ORL ORMH ORML ORN \
14 PBEV PBN PBNN PBNP PBNZ PBOD PBP PBZ POP PREFIX PREGO PRELD PREST PUSHGO PUSHJ PUT \
15 RESUME SAVE SET SETH SETL SETMH SETML SFLOT SFLOTU SL SLU SR SRU \
16 STB STBU STCO STHT STO STOU STSF STT STTU STUNC STW STWU SUB SUBU SWYM SYNC SYNCD TDIF TETRA TRAP TRIP UNSAVE \
17 WDIF WYDEXOR ZSEV ZSN ZSNN ZSNP ZSNZ ZSOD ZSP ZSZ
19 special_register=rA rB rC rD rE rF rG rH rI rJ rK rL rM rN rO rP rQ rR rS rT rU rV rW rX rY rZ rBB rTT rWW rXX rYY rZZ
21 predef_symbols=@ Text_Segment Data_Segment Pool_Segment Stack_Segment \
23 Fopen Fclose Fread Fwrite Fgets Fputs Fgetws Fputws Ftell Fseek \
24 TextRead TextWrite BinaryRead BinaryWrite BinaryReadWrite
26 keywords.$(file.patterns.mmixal)=$(opcodes)
27 keywords2.$(file.patterns.mmixal)=$(special_register)
28 keywords3.$(file.patterns.mmixal)=$(predef_symbols)
30 # Divsion of leading whitespace in line
33 style.mmixal.1=$(colour.code.comment.line),$(font.code.comment.line)
35 style.mmixal.2=$(font.base)
36 # Opcode (not validated)
38 # Division between Label and Opcode
40 # Valid Opcode (as defined in opcodes above)
41 style.mmixal.5=$(colour.keyword),bold
43 style.mmixal.6=$(colour.error)
44 # Division between Opcode and Operands
46 # Division of Operands
49 style.mmixal.9=$(colour.number)
50 # Reference (to a Label)
51 style.mmixal.10=$(font.base)
53 style.mmixal.11=$(colour.char)
55 style.mmixal.12=$(colour.string)
56 # Register (also special_register as defined above)
57 style.mmixal.13=fore:#7F007F
59 style.mmixal.14=fore:#7F0000
62 # Symbol (as defined in predef_symbols above)
63 style.mmixal.16=fore:#FF7777
64 # Include for those who use the preprocessor mmixali written by R. Loos.
66 #~ style.mmixal.17=$(colour.preproc)
67 style.mmixal.17=$(colour.code.comment.line),$(font.code.comment.line)
69 comment.block.mmixal=%
71 tab.size.$(file.patterns.mmixal)=16
72 indent.size.$(file.patterns.mmixal)=16
75 command.compile.$(file.patterns.mmixal)=mmixal -l $(FileName).map -b 200 $(FilePath)
76 command.go.$(file.patterns.mmixal)=mmix $(1) $(FileName).mmo
78 command.name.2.$(file.patterns.mmixal)=mmotype
79 command.2.$(file.patterns.mmixal)=mmotype $(FileName).mmo $(FileName).out