配置EditPlus为汇编的编辑工具

 from:http://www.tongyi.net/develop/Assemble/1049662.html

#TITLE=ASM
; Assemble syntax file written by LuoYunBin

#DELIMITER=,(){}[]-+*%/="''''~!&|<>?:;.#
#QUOTATION1=''''
#QUOTATION2="
#CONTINUE_QUOTE=n
#LINECOMMENT=;
#LINECOMMENT2=
#COMMENTON=
#COMMENTOFF=
#COMMENTON2=
#COMMENTOFF2=
#ESCAPE=/
#CASE=n
#PREFIX1=
#PREFIX2=
#PREFIX3=
#PREFIX4=
#PREFIX5=
#SUFFIX1=
#SUFFIX2=
#SUFFIX3=
#SUFFIX4=
#SUFFIX5=

#KEYWORD=Compiler directives
include
includelib
define
286
386
486
586
model
data
segment
code
const
begin
ends
end
proc
endp
local
option
proto
struct

#KEYWORD=Assume & Macro
if
elseif
else
endif
repeat
until
untilcxz
while
endw
break
continue
macro
endm
exitm
for
forc
goto
word
byte
dword
qword
real4
real8
real10
tbyte
db
dw
dd
dq
ptr
near
far
short
extrn
equ
offset
addr
invoke
flat
stdcall
casemap
none
uses
popup
menuitem
font
caption
style
exstyle
discardable
icon
bitmap
cursor
menu
stringtable
dialog
dialogex
edittext
defpushbutton
pushbutton
ltext
control
lib
assume
nothing

#KEYWORD=instruction
aaa
aad
aam
aas
adc
add
and
arpl
bound
call
cbw
clc
cld
cli
clts
cmc
cmp
cmpsb
cmpsw
cwd
daa
das
dec
div
enter
esc
hlt
idiv
imul
in
inc
insb
insw
int
into
iret
ja
jae
jb
jbe
jcxz
je
jg
jge
jl
jle
jmp
jnb
jnbe
jne
jnle
jno
jnp
jnz
jpo
jz
jo
jp
js
jns
lahf
lar
lds
lea
leave
les
lgdt
lidt
lldt
lmsw
lock
lodsb
lodsw
loop
loopnz
loopz
lsl
ltr
mov
movsb
movsw
mul
neg
nop
not
or
out
outsb
outsw
pop
popa
popf
push
pusha
pushf
rcl
rep
repnz
repz
ret
reft
rol
ror
sahf
sar
sbb
scasb
scasw
sgdt
shl
shr
sldt
smsw
stc
std
sti
stosb
stosw
str
sub
test
wait
verr
verw
xchg
xlat
xor
bsf
bsr
bt
btc
btr
bts
cdq
cwde
iretd
lfs
lgs
lss
movsx
movzx
popad
popfd
pushad
pushfd
seta
setb
setbe
sete
setg
setl
setle
setnb
setne
setnl
setno
setnp
setns
seto
setp
sets
shld
shrd
cmpsd
stosd
lodsd
movsd
scasd
insd
outsd
jecxz
bswap
cmpxchg
invd
invlpg
wbinvd
xadd
fabs
fadd
faddp
fbld
fbstp
fchs
fclex
fcom
fcomp
fcompp
fdecstp
fdisi
fdiv
fdivp
fdivr
fdivrp
feni
ffree
fiadd
fiacom
fiacomp
fidiv
fidivr
fild
fimul
fincstp
finit
fist
fistp
fisub
fisubr
fld
fldcwr
fldenv
fldlg2
fldln2
fldl2e
fldl2t
fldpi
fldz
fld1
fldcw
fmul
fmulp
fnop
fnsts
fpatan
fprem
fptan
frndint
fsavent
fscale
fsetpm
fsqrt
fst
fstcw
fstenv
fstp
fstsw
fsub
fsubp
fsubr
fsubrp
ftst
fwait
fxam
fxch
fxtract
fyl2x
fyl2xpi
f2xm1
fcos
fsin
fprem1
fsincos
fucom
fucomp
fucompp

#KEYWORD=CPU Registers
eax
ax
ah
al
ebx
bx
bh
bl
ecx
cx
ch
cl
edx
dx
dh
dl
esi
si
edi
di
esp
sp
ebp
bp
eflags
flags
cs
ds
es
ss
fs
gs
st
cr
dr
tr
gdtr
ldtr
idtr
把上面的内容保存成asm.stx

然后在EditPlus打开tool菜单下的Prefrences

点击add
在Description里填入asm,File Extension里填入asm,"Settings and syntax"的Syntax file里填入保存asm.stx的位置,其他的自己看着办

然后是配置nasm作为EditPlus的工具

在Group Name填入NASMTOOL
在Add Tool里选择Program
在Menu text里填入编译
在Command里填入nasm的位置,注意要在系统路径里配置nasm的路径
在Argument里填入$(FileName) -o $(FileNameNoExt).img
在Initial directory里填入$(FileDir)
选上Capture output(这样就可以在EditPlus里看输出结果
然后OK

你可能感兴趣的:(汇编,File,dialog,compiler,extension,menu)