Separated hilinks to avoid bug when using armv4 and v5 in one vim

This commit is contained in:
ARM9 2015-03-10 19:24:19 +01:00
parent 759f93a5a2
commit c24e442cad
4 changed files with 29 additions and 18 deletions

View File

@ -20,13 +20,13 @@ if version >= 508 || !exists("did_armv4_syntax_inits")
so <sfile>:p:h/include/arm_base_syntax.vim so <sfile>:p:h/include/arm_base_syntax.vim
HiLink armv4Instr armInstructions HiLink armv4Instr armv4Instructions
HiLink armv4InstrCond armInstructions HiLink armv4InstrCond armv4Instructions
HiLink armv4InstrNoCond armInstructions HiLink armv4InstrNoCond armv4Instructions
HiLink armv4LDR armInstructions HiLink armv4LDR armv4Instructions
HiLink armv4STR armInstructions HiLink armv4STR armv4Instructions
HiLink armv4Stack armInstructions HiLink armv4Stack armv4Instructions
HiLink armv4SWP armInstructions HiLink armv4SWP armv4Instructions
HiLink armNumericOp armOperator HiLink armNumericOp armOperator
HiLink armRelative armOperator HiLink armRelative armOperator
@ -44,7 +44,7 @@ if version >= 508 || !exists("did_armv4_syntax_inits")
HiLink armCPreProc Identifier HiLink armCPreProc Identifier
HiLink armRegister Type HiLink armRegister Type
HiLink armInstructions Function HiLink armv4Instructions Function
HiLink armTodo Todo HiLink armTodo Todo
delcommand HiLink delcommand HiLink

View File

@ -20,14 +20,14 @@ if version >= 508 || !exists("did_armv5_syntax_inits")
so <sfile>:p:h/include/arm_base_syntax.vim so <sfile>:p:h/include/arm_base_syntax.vim
HiLink armv4Instr armInstructions HiLink armv4Instr armv5Instructions
HiLink armv5InstrCond armInstructions HiLink armv5InstrCond armv5Instructions
HiLink armv5InstrNoCond armInstructions HiLink armv5InstrNoCond armv5Instructions
HiLink armv5Mul armInstructions HiLink armv5Mul armv5Instructions
HiLink armv5LDR armInstructions HiLink armv5LDR armv5Instructions
HiLink armv5STR armInstructions HiLink armv5STR armv5Instructions
HiLink armv4Stack armInstructions HiLink armv4Stack armv5Instructions
HiLink armv4SWP armInstructions HiLink armv4SWP armv5Instructions
HiLink armNumericOp armOperator HiLink armNumericOp armOperator
HiLink armRelative armOperator HiLink armRelative armOperator
@ -45,7 +45,7 @@ if version >= 508 || !exists("did_armv5_syntax_inits")
HiLink armCPreProc Identifier HiLink armCPreProc Identifier
HiLink armRegister Type HiLink armRegister Type
HiLink armInstructions Function HiLink armv5Instructions Function
HiLink armTodo Todo HiLink armTodo Todo
delcommand HiLink delcommand HiLink

11
test/armv4-test.s Normal file
View File

@ -0,0 +1,11 @@
adc r1, r15, R14
add A1, v1, V8
smull r0, r1,R2
smlalBt r1,r15
SMLawTb V8, v3
SMLALtb A1, a4
smull r0, r1,R2
@ vim:ft=armv4

View File

@ -6,4 +6,4 @@ eor r4,r5
mla r5,R6 mla r5,R6
mov R6,R7 mov R6,R7
@ vim:ft=armv5 @ vim:ft=armv7