EditPlus 中添加 Win32 ASM 语法支持
作者:互联网
将以下内容保存为 Win32Asm.stx;然后选“工具”、“配置用户工具”、“设置与语法”、“添加”、
“描述”=Win32Asm、“扩展名”=asm 、”语法文件”选存入之文件,确定即可。
#TITLE=ASM #DELIMITER=,(){}[]-+*/=~!&|<>?:. #QUOTATION1=' #QUOTATION2=" #CONTINUE_QUOTE=n #LINECOMMENT1=; #LINECOMMENT2=// #ESCAPE=\\ #CASE=N #PREFIX3=$ #PREFIX4=@ #PREFIX5=% #NUMBER_PATTERN=asm #SPECIAL_STX=asm #KEYWORD=Reserved words db dw dd dq mov movsx movzx xchg push pusha pushad pop popa popad in out xlat lea lds les lfs lgs lss lahf sahf pushf pushfd popf popfd add sub adc sbb inc dec mul div imul idiv cbw cwd cwde cdq cmp neg daa das aaa aas aam aad and or xor not test shl sal rol ror rcl rcr shld shrd shr movs movsb movsw movsd cmps cmpsb cmpsw cmpsd scas scasb scasw scasd lods lodsb lodsw lodsd stos stosb stosw stosd ins insb insw insd outs outsb outsw outsd jmp jc jnc jz je jnz jne js jns jo jno jp jpe jnp jpo ja jneb jae jnb jb jnae jbe jna jg jnle jge jnl jl jnge jle jng jcxz jecxz loop loopz loope loopnz loopne ret retn retf int into iret iretd set clc stc cmc cld std cli sti hlt wait esc lock nop bt btc btr bts bsf bsr bound enter leave lar lsl lgdt lidt sgdt sidt ltr str lmsw smsw lldt sldt arpl clts verr verw setne cmpxchg xadd DW DD DQ MOV MOVSX MOVZX XCHG PUSH PUSHA PUSHAD POP POPA POPAD IN OUT XLAT LEA LDS LES LFS LGS LSS LAHF SAHF PUSHF PUSHFD POPF POPFD ADD SUB ADC SBB INC DEC MUL DIV IMUL IDIV CBW CWD CWDE CDQ CMP NEG DAA DAS AAA AAS AAM AAD AND OR XOR NOT TEST SHL SAL ROL ROR RCL RCR SHLD SHRD SHR MOVS MOVSB MOVSW MOVSD CMPS CMPSB CMPSW CMPSD SCAS SCASB SCASW SCASD LODS LODSB LODSW LODSD STOS STOSB STOSW STOSD INS INSB INSW INSD OUTS OUTSB OUTSW OUTSD JMP JC JNC JZ JE JNZ JNE JS JNS JO JNO JP JPE JNP JPO JA JNEB JAE JNB JB JNAE JBE JNA JG JNLE JGE JNL JL JNGE JLE JNG JCXZ JECXZ LOOP LOOPZ LOOPE LOOPNZ LOOPNE RET RETN RETF INT INTO IRET IRETD SET CLC STC CMC CLD STD CLI STI HLT WAIT ESC LOCK NOP BT BTC BTR BTS BSF BSR BOUND ENTER LEAVE LAR LSL LGDT LIDT SGDT SIDT LTR STR LMSW SMSW LLDT SLDT ARPL CLTS VERR VERW SETNE CMPXCHG XADD #KEYWORD=Register flat stdcall casemap none dup proto call local invoke eax ax ah al ebx bh bl bx ecx cx ch cl edx dx dh dl esi si edi di ebp bp esp sp carry overflow parity sign zero true false FLAT STDCALL CASEMAP NONE DUP PROTO CALL LOCAL INVOKE EAX AX AH AL EBX BH BL BX ECX CX CH CL EDX DX DH DL ESI SI EDI DI EBP BP ESP SP CARRY OVERFLOW PARITY SIGN ZERO TRUE FALSE #KEYWORD=Dl88250 segment SEGMENT #KEYWORD=Statements 386 586 model small option data const stack code proc endp struc ends end include includelib if else elseif endif while endw repeat rep break continue until null 386 586 MODEL SMALL OPTION DATA CONST STACK CODE .CODE .DATA .EXIT PROC ENDP STRUC ENDS END INCLUDE INCLUDELIB IF ELSE ELSEIF ENDIF WHILE ENDW REPEAT REP BREAK CONTINUE UNTIL NULL #KEYWORD=Description ds cs es ss fs gs addr offset byte word dword ptr DS CS ES SS FS GS ADDR OFFSET BYTE WORD DWORD PTR #KEYWORD=Symbols = : @ ( ) , . ; / + - * % #
效果图:
标签:586,语法,KEYWORD,Win32,CONTINUE,EditPlus,ASM,DATA,asm 来源: https://www.cnblogs.com/sea-stream/p/10853212.html