原创 使 Ultra Edit 编辑器对asm文件的关键字高亮彩色显示

2008-8-20 09:36 6727 9 9 分类: 工程师职场
下面的编码可以使 Ultra Edit编辑器对asm文件(A51)的关键字高亮彩色显示

使用方法:加到Ultra Edit编辑器安装目录下wordfile.txt最后,第一行的L10可能要修改,看你原来最后一个是L几了。 


/L10"ASM" Nocase Line Comment = ; Block Comment On = ; Escape Char = \ String Chars = "' File Extensions = ASM A51 SRC


/Delimiters = ~!@%^&*()-+=|\/{}[]:;"'<> ,   .?


/Function String = "%[a-zA-Z_]*)[~;]"


/Indent Strings =


/Unindent Strings =


/C1"Keywords"


acall add addc addlw addwf addwfc ajmp andlw andwf anl


bcf bsf btfsc btfss btg


call cjne clr clrf clrw clrwdt


comf cpfseq cpfsgt cpfslt cpl


da daw dec decf decfsnz decfsz div djnz


goto


inc incf incfsnz incfsz iorlw iorwf


jb jbc jc


jmp jnb jnc jnz jz


lcall ljmp


mov movc movf movfp movlb movlr movlw movpf movwf movx mul


negw nop


orl


pop push


ret retfie reti retlw return


rl rlc rlf rlncf rr rrc rrf rrncf


setb setf sjmp sleep


subb sublw subwf subwfb swap swapf


tablrd tablwt tlrd tlwt tris tstfsz


xch xorlw xorwf xrl


/C2"Regeistry"


a ab ac acc


b


c


dph dpl dptr


ea eeadr eecon1 eecon2 eedata es et0 et1 et2<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />


ex0 ex1 exen2 exf2


f0 fsr


ie ie0 ie1 indf intcon ip it0 it1


option ov


p0 p1 p2 p3 p4 p5 p6 p7


pcl pclath pcon porta portb ps psw


r0 r1 r2 r3 r4 r5 r6 r7


rb8 rcap2h rcap2l rclk


ren ri rs0 rs1 rxd


sbuf scon sm0 sm1 sm2


sp status


tb8 tclk tcon t2con


tf0 tf1 tf2


th0 th1 th2 ti


tl0 tl1 tl2


tmod tmro t2mod


tr0 tr1 tr2 trisa trisb txd


w


/C3"pseudoinstruction"


bit


equ


data db dw


org


/C4"Operators"


@


#


+


-


/C5"Directives"


ASEG AT


BIT BSEG


CODE COMMON CSEG


DATA DB DBIT define DS DSEG DT DW


END ENDIF ENDMOD ELSE EQU EXTERN EXTRN


HIGH


ifndef ISEG


LOW LSTPAG


MODULE


NAME NOMOD51


sbit SEGMENT SET sfr


TITEL TITL


USING


XSEG

PARTNER CONTENT

文章评论0条评论)

登录后参与讨论
EE直播间
更多
我要评论
0
9
关闭 站长推荐上一条 /3 下一条