Configure EditPlus as the compilation editing tool

Source: Internet
Author: User

From: http://blog.csdn.net/fatsandwich/archive/2008/02/29/2131697.aspx

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
Bytes
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
Save the preceding content as asm. stx

Then open Prefrences under the tool menu in EditPlus

 

Click add
Fill in asm in Description, fill in asm in File Extension, and fill in syntax file in "Settings and Syntax" to save the location of asm. stx, and others will do it on their own.

Then configure nasm as the EditPlus tool.

 

Enter NASMTOOL in Group Name
Select Program in Add Tool
Fill in the Menu text for compilation
Enter the nasm location in the Command. Note that you must configure the nasm path in the system path.
Enter $ (FileName)-o $ (FileNameNoExt). img in Argument
Enter $ (FileDir) in the Initial directory)
Select Capture output (you can view the output result in EditPlus.
Then OK

 

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.