OSDN Git Service

ba2a20742a41ba9be619940a858a447439f6410a
[fast-forth/master.git] / config / asm.properties
1 position.maximize=1
2 # Define SciTE settings for MACROASSEMBLER AS for MSP430
3
4 file.patterns.asm=*.asm;*.inc;*.lst;*.mac
5
6 # add '*.inc;*.asm;' to 'source.files' variable in 'SciTEGlobal.properties'
7 # if you want to include these file patterns into default source file list
8
9 lexer.$(file.patterns.asm)=asm
10
11 *language.asm=ASM|asm||
12
13 *source.patterns.asm=$(file.patterns.asm);
14
15 filter.asm=asm files (asm inc)|$(file.patterns.asm)|
16
17 *filter.asm=$(filter.asm)
18
19 word.characters.$(file.patterns.asm)=$(chars.alpha)$(chars.numeric)_
20
21 comment.block.asm=\ ~
22 #comment.block.at.line.start.asm=0
23 comment.box.start.asm=\
24 comment.box.middle.asm=\
25 comment.box.end.asm=\
26 comment.stream.start.asm=(
27 comment.stream.end.asm=)
28
29 # asm styles
30
31 #MSP430_instructions
32 keywords.$(file.patterns.asm)=add add.b add.w addc addc.b addc.w and and.b and.w \
33     bic bic.b bic.w bis bis.b bis.w bit bit.b bit.w br branch call \
34     cmp cmp.b cmp.w dadd dadd.b dadd.w \
35     mov mov.b mov.w push push.b push.w \
36     jc jhs je jeq jz jge jl jmp jn jnc jlo jne jnz \
37     nop nop2 nop3 ret reti swpb sxt \
38     rra rra.b rra.w rrc rrc.b rrc.w sub sub.b sub.w \
39     subc subc.b subc.w xor xor.b xor.w \
40     pushm popm rlam rram rrcm rrum 
41
42 ##preprocessor
43 #keywords2.$(file.patterns.asm)=#define #elif #else #endif #error\
44     ##if #ifdef #ifndef #include #message  #pragma #undef #warning
45
46 # MACROASSEMBLER AS directives
47 keywords3.$(file.patterns.asm)=.align .cpu .byte .word .endm .endmacro \
48     .equ .include .macro .org .reg .set .ifdef .ifndef .if .elseif .else .endif \
49     .switch .case .elsecase .endcase \
50     .warning .error
51
52 # my macros
53 keywords4.$(file.patterns.asm)=NEXT mDOCOL
54
55 # Default
56 style.asm.32=$(font.base)
57 # whitespace
58 style.asm.0=$(font.base)
59
60 # Comment stream
61 style.asm.1=$(colour.code.comment.line)
62 #style.asm.1=fore:#00FF00,$(font.comment)
63
64 # Number
65 #style.asm.2=$(colour.number)
66 style.asm.2=fore:#FF0000
67
68 # String
69 #style.asm.3=$(colour.string)
70 style.asm.3=fore:#00FFFF
71
72 # Operator (= - / * , etc.)
73 style.asm.4=fore:#00FFFF
74
75 # Identifier (text)
76 style.asm.5=fore:#FFFFFF
77
78 # CPU instruction ( add, adc, adiw, etc.)
79 style.asm.6=$(colour.keyword)
80
81 # preprocessor (#define #elif #else, etc.)
82 style.asm.7=fore:#FFFF00
83
84 # directives (.byte .cseg  etc.)
85 style.asm.8=fore:#FFFF00
86
87 # assembler Directive
88 style.asm.9=fore:#FF00ff
89
90 # my macros
91 style.asm.9=fore:#00FFff
92
93
94 # Comment block (GNU as /*...*/ syntax, unimplemented)
95 # style.asm.11=$(colour.code.comment.box),$(font.code.comment.box)
96 # Character/String (single quote) (also character prefix in GNU as)
97 style.asm.12=$(colour.char)
98 # End of line where string is not closed
99 #style.asm.13=fore:#000000,back:#E0C0E0,eolfilled
100 style.asm.13=fore:#FFFFFF,back:#000000
101
102
103 # the star at the start of this command line is to display the parameters box
104 # $(1) = target, example : MSP_EXP430FR5969
105 # $(2) = extension, example : _8MHz
106
107 if PLAT_WIN
108     command.name.0.*.asm=Assemble 1:[target]
109     command.0.*.asm=*\config\build.bat $(FileNameExt) $(1)$(2)
110     
111     command.name.1.*.asm=FET Prog 1:[target]
112     command.1.*.asm=*\config\FET_prog.bat $(1)$(2)
113     
114 # $(3) = "COMx"
115     command.name.2.*.asm=BSL Prog 1:[target] with 3:[COMx]
116     command.2.*.asm=*\config\BSL_prog.bat $(1)$(2) $(3) 
117     
118     
119     command.name.3.*.asm=Assemble target CurrentSelection
120     command.3.*.asm=\config\build.bat $(FileNameExt) $(CurrentSelection)
121     
122     command.name.4.*.asm=FET Prog target CurrentSelection
123     command.4.*.asm=\config\FET_prog.bat $(CurrentSelection)
124
125     command.name.5.*.asm=BSL Prog target CurrentSelection with 3:[COMx]
126     command.5.*.asm=*\config\BSL_prog.bat $(CurrentSelection) $(3)
127
128 if PLAT_GTK
129     # variable $FF = /home//DATA/CloudStation is defined in my ~.profile 
130     command.name.0.*.asm=Assemble for 1:[target]
131     command.0.*.asm=*$HOME/Cloudstation/projets/msp430/config/build $(FileNameExt) $(1)$(2)
132     
133     command.name.1.*.asm=FET Prog 1:[target]
134     command.1.*.asm=*$FF/msp430/config/prog $(1)$(2)
135     
136     
137     command.name.2.*.asm=Assemble for target CurrentSelection
138     command.2.*.asm=$FF/msp430/config/build $(FileNameExt) $(CurrentSelection)
139     
140     command.name.3.*.asm=FET Prog target CurrentSelection
141     command.3.*.asm=$FF/msp430/config/prog $(CurrentSelection)
142