Does any one has word file for the syntax highlight in analog devices assembly files.
Don't know, which processor do you mean. There is one for the Analog Devices DSP2181 at the download area.
Best regards from an UC/UE/UES for Windows user from Austria
- 3
Thanks for the file. i am looking for the blackfin processor. i tried to create a simillar file. but some keywords are not getting highlighted in the asesmbly file. For example the words "code", "data", "LOOP" are not highlighted.
Your language file is case-sensitive, because Nocase is not specified in the language definition line. So you have to sort your words case-sensitive.
You can use the macros at the ultimate syntax highlighting tools for sorting your language file.
You can use the macros at the ultimate syntax highlighting tools for sorting your language file.
Best regards from an UC/UE/UES for Windows user from Austria
- 3
Thanks for the information. I have sorted the file and is working now.
Here is the wordfile for Blackfin. tab in the delimiters list must be replaced after copying from the browser window into the wordfile with a horizontal tab character.
/L10"Analog ASM" ANALOG_ASM_LANG Line Comment = // Nocase // Block Comment On = /* Block Comment Off = */ Escape Char = \ String Chars = "' File Extensions = ASM
/Delimiters = ~!@%^&*()-+=|\/{}[];"'<>,tab?
/C1"Blackfin Preprocessor Keywords"
#define #elif #else #endif #error #if #ifdef #ifndef #include #line #pragma #undef #warning
defined
/C2"Blackfin Legacy Keywords"
code
data
/C3"Blackfin Assembly Directives"
.ALIGN .ASCII .ASM_ASSERT .ASSERT .BYTE .BYTE2 .BYTE4 .ELIF .ELSE .ENDIF .EXTERN .FILE .GLOBAL .IF .IMPORT
.LEFTMARGIN .LIST .LIST_DATA .LIST_DATFILE .LIST_DEFTAB .LIST_LOCTAB .LIST_WRAPDATA .NEWPAGE .NOLIST
.NOLIST_DATA .NOLIST_DATFILE .NOLIST_WRAPDATA .PAGELENGTH .PAGEWIDTH .PREVIOUS .SECTION .STRUCT .TYPE .VAR
.VCSE_METHODCALL_END .VCSE_METHODCALL_RETURNS .VCSE_METHODCALL_START .WEAK
STRUCT
/C4"Blackfin Mnemonics"
ABORT ABS AC0 AC0_COPY AC1 ALIGN16 ALIGN24 ALIGN8 AMNOP AN AND AQ ASHIFT ASLs ASRs ASSIGNs AV0 AV1 AVS0
AVS1 AZ
BANGs BARs BIT_XOR_AC BITCLR BITMUX BITPOS BITSET BITTGL BITTST BP BREV BRF BRT Bs BXOR BXORSHIFT BY
BYTEOP16M BYTEOP16P BYTEOP1NS BYTEOP1P BYTEOP2M BYTEOP2P BYTEOP3 BYTEOP3P BYTEOPEW BYTEPACK BYTEUNPACK
CALL CARET CLI CLIP CO COLON COMMA CSYNC
DBG DBGA DBGAH DBGAL DBGCMPLX DBGHALT DEPOSIT DISALGNEXCPT DIVQ DIVS DIVSDEPOSIT DOT DOZE
emucause EMUEXCPT EXCAUSE EXCPT EXPADJ EXTRACT
FEXT FEXTSX FLUSH FLUSHINV FU
GE GF GT
H HI HLT hwerrcause
IDLE idle_req IF IFLUSH IH INTRP IS ISS2 IU
JUMP JUMP.L JUMP.S
L LE LENGTH LINK LJUMP LMAX LMIN LO LOOP LOOP_BEGIN LOOP_END LPAREN LSETUP LSHIFT LT LZ
M MAX MIN MINUS MNOP MUNOP
NEG NOP NOT NS
OFFSETOF ONES OR OUTC
PACK PERCENT PLUS PREFETCH PRNT
R R1_COLON0 R32 RAISE RBRACE RBRACK RND RND12 RND20 RNDH RNDL ROL ROR ROT ROT_L_AC ROT_R_AC RPAREN RSDL
RTE RTI RTN RTS RTX
S S2RND SAA SAA1H SAA1L SAA2H SAA2L SAA3H SAA3L SAT SCO SEARCH SHIFT SHT_TYPE SIGN SIGNBITS SIZEOF SKPF
SKPT SLASH SLEEP SS SSF SSF_RND SSF_RND_HI SSF_TRUNC SSF_TRUNC_HI SSYN SSYNC STI STRUCT STT_TYPE SU
T TESTSET TFU TH TL TST
UNLINK UNLNK UNRAISE UU
V V_COPY VIT_MAX VS
W W32 WEAK
X XB XH XOR
Z
/C5"Blackfin Condition Codes"
!CC
CC
/C6"Blackfin Register Names"
A0 A0.X A0w A1 A1.X A1w AC AN AQ ASTAT AV0 AV1
B0 B0.h B0.l B1 B1.h B1.l B2 B2.h B2.l B3 B3.h B3.l
CC CYCLES CYCLES2
FP FP.h FP.l
I0 I0.h I0.l I1 I1.h I1.l I2 I2.h I2.l I3 I3.h I3.l ILAT IMASK IPEND
L0 L1 L2 L3 LB0 LB1 LC0 LC1 LT0 LT1
M0 M0.h M0.l M1 M1.h M1.l M2 M2.h M2.l M3 M3.h M3.l
P0 P0.h P0.l P1 P1.h P1.l P2 P2.h P2.l P3 P3.h P3.l P4 P4.h P4.l P5 P5.h P5.l PC
R0 R0.h R0.l R1 R1.h R1.l R2 R2.h R2.l R3 R3.h R3.l R4 R4.h R4.l R5 R5.h R5.l R6 R6.h R6.l R7 R7.h R7.l
RETE RETI RETN RETS RETX RND_MOD
SEQSTAT SP SP.h SP.l SYSCFG
USP USP.h USP.l
/C7"Blackfin Register Pairs"
A1:0 A3:2
P5:0 P5:1 P5:2 P5:3 P5:4 P5:5
R1:0 R3:2 R5:4 R7:0 R7:1 R7:2 R7:3 R7:4 R7:5 R7:6 R7:7
/C8"Operators"
!
%
&
+
-
// /
<
=
>
^
|
Here is the wordfile for Blackfin. tab in the delimiters list must be replaced after copying from the browser window into the wordfile with a horizontal tab character.
/L10"Analog ASM" ANALOG_ASM_LANG Line Comment = // Nocase // Block Comment On = /* Block Comment Off = */ Escape Char = \ String Chars = "' File Extensions = ASM
/Delimiters = ~!@%^&*()-+=|\/{}[];"'<>,tab?
/C1"Blackfin Preprocessor Keywords"
#define #elif #else #endif #error #if #ifdef #ifndef #include #line #pragma #undef #warning
defined
/C2"Blackfin Legacy Keywords"
code
data
/C3"Blackfin Assembly Directives"
.ALIGN .ASCII .ASM_ASSERT .ASSERT .BYTE .BYTE2 .BYTE4 .ELIF .ELSE .ENDIF .EXTERN .FILE .GLOBAL .IF .IMPORT
.LEFTMARGIN .LIST .LIST_DATA .LIST_DATFILE .LIST_DEFTAB .LIST_LOCTAB .LIST_WRAPDATA .NEWPAGE .NOLIST
.NOLIST_DATA .NOLIST_DATFILE .NOLIST_WRAPDATA .PAGELENGTH .PAGEWIDTH .PREVIOUS .SECTION .STRUCT .TYPE .VAR
.VCSE_METHODCALL_END .VCSE_METHODCALL_RETURNS .VCSE_METHODCALL_START .WEAK
STRUCT
/C4"Blackfin Mnemonics"
ABORT ABS AC0 AC0_COPY AC1 ALIGN16 ALIGN24 ALIGN8 AMNOP AN AND AQ ASHIFT ASLs ASRs ASSIGNs AV0 AV1 AVS0
AVS1 AZ
BANGs BARs BIT_XOR_AC BITCLR BITMUX BITPOS BITSET BITTGL BITTST BP BREV BRF BRT Bs BXOR BXORSHIFT BY
BYTEOP16M BYTEOP16P BYTEOP1NS BYTEOP1P BYTEOP2M BYTEOP2P BYTEOP3 BYTEOP3P BYTEOPEW BYTEPACK BYTEUNPACK
CALL CARET CLI CLIP CO COLON COMMA CSYNC
DBG DBGA DBGAH DBGAL DBGCMPLX DBGHALT DEPOSIT DISALGNEXCPT DIVQ DIVS DIVSDEPOSIT DOT DOZE
emucause EMUEXCPT EXCAUSE EXCPT EXPADJ EXTRACT
FEXT FEXTSX FLUSH FLUSHINV FU
GE GF GT
H HI HLT hwerrcause
IDLE idle_req IF IFLUSH IH INTRP IS ISS2 IU
JUMP JUMP.L JUMP.S
L LE LENGTH LINK LJUMP LMAX LMIN LO LOOP LOOP_BEGIN LOOP_END LPAREN LSETUP LSHIFT LT LZ
M MAX MIN MINUS MNOP MUNOP
NEG NOP NOT NS
OFFSETOF ONES OR OUTC
PACK PERCENT PLUS PREFETCH PRNT
R R1_COLON0 R32 RAISE RBRACE RBRACK RND RND12 RND20 RNDH RNDL ROL ROR ROT ROT_L_AC ROT_R_AC RPAREN RSDL
RTE RTI RTN RTS RTX
S S2RND SAA SAA1H SAA1L SAA2H SAA2L SAA3H SAA3L SAT SCO SEARCH SHIFT SHT_TYPE SIGN SIGNBITS SIZEOF SKPF
SKPT SLASH SLEEP SS SSF SSF_RND SSF_RND_HI SSF_TRUNC SSF_TRUNC_HI SSYN SSYNC STI STRUCT STT_TYPE SU
T TESTSET TFU TH TL TST
UNLINK UNLNK UNRAISE UU
V V_COPY VIT_MAX VS
W W32 WEAK
X XB XH XOR
Z
/C5"Blackfin Condition Codes"
!CC
CC
/C6"Blackfin Register Names"
A0 A0.X A0w A1 A1.X A1w AC AN AQ ASTAT AV0 AV1
B0 B0.h B0.l B1 B1.h B1.l B2 B2.h B2.l B3 B3.h B3.l
CC CYCLES CYCLES2
FP FP.h FP.l
I0 I0.h I0.l I1 I1.h I1.l I2 I2.h I2.l I3 I3.h I3.l ILAT IMASK IPEND
L0 L1 L2 L3 LB0 LB1 LC0 LC1 LT0 LT1
M0 M0.h M0.l M1 M1.h M1.l M2 M2.h M2.l M3 M3.h M3.l
P0 P0.h P0.l P1 P1.h P1.l P2 P2.h P2.l P3 P3.h P3.l P4 P4.h P4.l P5 P5.h P5.l PC
R0 R0.h R0.l R1 R1.h R1.l R2 R2.h R2.l R3 R3.h R3.l R4 R4.h R4.l R5 R5.h R5.l R6 R6.h R6.l R7 R7.h R7.l
RETE RETI RETN RETS RETX RND_MOD
SEQSTAT SP SP.h SP.l SYSCFG
USP USP.h USP.l
/C7"Blackfin Register Pairs"
A1:0 A3:2
P5:0 P5:1 P5:2 P5:3 P5:4 P5:5
R1:0 R3:2 R5:4 R7:0 R7:1 R7:2 R7:3 R7:4 R7:5 R7:6 R7:7
/C8"Operators"
!
%
&
+
-
// /
<
=
>
^
|