使Ultraedit支援ASM語法高亮的方法

magus_yang發表於2020-04-04
 
標 題: 使Ultraedit支援ASM語法高亮的方法
作 者: Jack Yang
時 間: 2007-02-25 23:37
使Ultraedit支援ASM語法高亮的方法
我使用的Ultraedit版本是12.20b+1
1.         開啟Ultraedit安裝目錄中的檔案wordfile.txt
 
2.         把如下內容貼上到wordfile.txt檔案的尾部
/L12"ASM" Nocase Line Comment = ; File Extensions = ASM INC DEF
/Delimiters = ~!%&^*()-+=|//{}[]:;"'<> ,           
/Function String = "^(%[a-zA-Z_@?$]+[ ^t]^)+proc+[ ^t^p]"
/C1"Opcodes"
aaa aad aam aas adc add and arpl
bound bsf bsr bswap bt btc btr
call cbw cwd cdq clc cld cli clts cmc cmova cmovae cmovb cmovbe cmovc cmove
cmovg cmovge cmovl cmovle cmovna cmovnae cmovnb cmovnbe cmovnc cmovne cmovng
cmovnge cmovnl cmovnle cmovno cmovnp cmovns cmovnz cmovo cmovpo cmovs comvz
cmp cmpsb cmpsd cmpxchg cmpxchg8b cpuid
daa das dec div dbld dbstp
emms enter
f2xm1 fabs fadd faddp fiadd fchs fclex fnclex fcmovb fcmove fcmovbe fcmovu
fcmovnb fcmovne fcmovnbe fcmovnu fcom fcomp fcompp fcomi fcomip fcos fdecstp
fdiv fdivp fidiv fdivr fdivrp fidivr ffree ficom ficomp fild fincstp finit fninit
fist fistp fld fld1 fldl2t fld2e fldpi fldlg2 fldln2 fldz fldcq fldenv
fmul fmulp fimul fnop fpatan fprem fprem1 fptan frndint frstor fsave fnsave
fscale fsin fsincos fsqrt fst fstp fstcw fnstcw fstenv fnstenv fstsw fnstsw fsub
fsubp fisub fsubr fsubrp fisubr ftst fucom fucomp fucompp fxam fxch fxtract
fyl2x fyl2xp1
hlt
idiv imul in inc ins int into invd invlpg iretd
ja jae jbe jc jecxz je jg jge jl jle jne jno jns jo
jpe jpo js ja jae jb jbe je jg jge jl jle jne jno jns jo
jpe jpo js jmp
lahf lar lds lea leave les lfs lgs lgdt lidt lldt lmsw
lock lods loop loope loopz loopne loopnz lsl lss ltr
mov movd movq movs movsx mul
neg nop not
or out outs
packsswb packssdw packuswb paddb paddw paddd paddsb paddsw paddusb paddusw
pand pandn pcmpeqb pcmpeqw pcmpeqd pcmpgtb pcmpgtw pcmpgtd pmaddwd pmulhw
pmullw pop popad popfd por psllw pslld psllq psraw psrad psrlw psrld psrlq
psubb psubw psubd psubsb psubsw psubusb psubusw punpckhbw punpckhwd
punpckhdq punpcklbw punpcklwd punpckldq push pushad pushfd pxor
rcl rcr rol ror rdmsr rdpmc rdtsc rep ret
setae setb sete setg setge setl setle setne setno setns seto setpe setpo
sets sgdt sidt shld shld shrd sldt smsw stc std sti str sub
stos cmps scas cmps ret rsm sahf sal sar shl shr sbb seta
test
ud2
verr verw
wait fwait wbinvd wrmsr
xadd xchg xlat xor
/C2"Registers"
al ah ax
bp bh bl bx
cl cx ecx ch
dl dx di dh
ecx edx ebx eax esp ebp esi edi
sp si st st(0) st(1) st(2) st(3) st(4) st(5) st(6) st(7)
mm0 mm1 mm2 mm3 mm4 mm5 mm6 mm7
xmm0 xmm1 xmm2 xmm3 xmm4 xmm5 xmm6 xmm7
/C3"Reserved words 1"
.CODE .CONST .CONTINUE .CREF
.DATA .DATA?
.ERR .ERRB .ERRNB .ERRDEF .ERRNDEF .ERRDIF .ERRIDN .ERRE .ERRNZ .ELSE .ELSEIF
.ENDIF .ENDW .UNTIL
.IF
.LIST .LISTALL .LISTIF .LISTMACRO .LISTMACROALL
.MODEL .NOLIST .NOLISTIF .NOLISTMACRO
.RADIX .REPEAT
.TFCOND
.WHILE
ALIGN ASSUME
BREAK
COMMENT CASEMAP
DOTNAME NODOTNAME
ECHO END ENDM EQU ENDP EXITM EXTERNDEF EXTERN EMULATOR EPILOGUE
EXPR16 EXPR32 ENDS ENDIF ENDW
FOR FORC
GOTO
IF INCLUDE INCLUDELIB INVOKE
LABEL LOCAL LJMP LANGUAGE
MACRO
NOREADONLY NOSCOPED NOLJMP NOEMULATOR NOKEYWORD NOSIGNEXTEND
OPTION OFFSET ORG
PROLOGUE PROC PROC PROTO PUBLIC PURGE PUSHCONTEXT POPCONTEXT
READONLY RECORD REPEAT
SCOPED SEGMENT STRUCT
TYPEDEF TEXTEQU
UNION USES
WHILE
/C4"Reserved words 2"
ADDR
BYTE
CATSTRINSTR
DUP DB DW DD DF DQ DT DWORD
FWORD
HIGH HIGHWORD
LOW LOWWORD LENGTHOF LENGTH LROFFSET
MASK
NULL
OFFSET OPATTR
PTR
QWORD
REAL4 REAL8 REAL10
SIZEOF SIZE SHORT SIZESTR SUBSTR SBYTE SWORD SDWORD STDCALL
THIS TYPE TBYTE
WIDTH WORD
/C5"Operators"
!
%
&
*
+
,
-
// /
=
|
 
3.         根據wordfile.txt的實際情況,把第一行開頭的/L12改為實際的編號。
 
4.         儲存,退出。
 
 

相關文章