Advertisement
Maratyszcza

SciTE Asm-x86/x64 Syntax File

Sep 18th, 2011
191
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
ASM (NASM) 16.98 KB | None
  1. # Define SciTE settings for Assembler files (NASM)
  2. # Originally by Black Horus blackhorus@gmx.net 2002
  3. # Updated by Kein-Hong Man mkh@pl.jaring.my 2003-10
  4. # Updated by Marat Dukhan (mdukhan3.at.gatech.dot.edu) 10/4/2011
  5.  
  6. # Nasm files
  7. file.patterns.asm=*.asm
  8. filter.asm=Assembler x86/x64(asm)|$(file.patterns.asm)|
  9.  
  10. lexer.$(file.patterns.asm)=asm
  11.  
  12.  
  13. bcd_instruction=aaa aad aam aas daa das
  14. flow_instruction=ja jae jb jbe jc jcxz je jg jge jl jle jmp jna \
  15.     jnae jnb jnbe jnc jne jng jnge jnl jnle jno jnp jns jnz \
  16.     jo jp jpe jpo js jz \
  17.     jcxz jecxz jrcxz \
  18.     loop loope loopne loopz loopnz \
  19.     call ret
  20.    
  21. alu_instruction=add sub adc sbb neg cmp inc dec \
  22.     and or xor not test \
  23.     shl shr sal sar shld shrd rol ror rcl rcr \
  24.     cbw cwd cwde cdq cdqe cqo \
  25.     bsf bsr bt btc btr bts \
  26.     idiv imul div mul bswap \
  27.     nop
  28.  
  29. mem_instruction=lea \
  30.     mov movsx movsxd movzx \
  31.     xlatb bound \
  32.     xchg xadd cmpxchg cmpxchg8b cmpxchg16b
  33.  
  34. stack_instruction=push pop pushad popad pushf popf pushfd popfd pushfq popfq
  35.  
  36. pred_instruction=seta setae setb setbe setc sete setg setge setl \
  37.     setle setna setnae setnb setnbe setnc setne setng setnge \
  38.     setnl setnle setno setnp setns setnz seto setp setpe setpo \
  39.     sets setz \
  40.     salc
  41.    
  42. flag_instruction=clc cld stc std cmc lahf sahf
  43.  
  44. cmov_instruction=cmovo cmovno cmovb cmovc cmovnae cmovae cmovnb \
  45.     cmovnc cmove cmovz cmovne cmovnz cmovbe cmovna cmova \
  46.     cmovnbe cmovs cmovns cmovp cmovpe cmovnp cmovpo cmovl \
  47.     cmovnge cmovge cmovnl cmovle cmovng cmovg cmovnle
  48.  
  49. prefix_instruction=lock rep repe repz repne repnz
  50.  
  51. string_instruction=cmpsb cmpsw cmpsq \
  52.     movsb movsw movsq \
  53.     scasb scasw scasd scasq \
  54.     stosb stosw stosd stosq
  55.  
  56. info_instruction=cpuid rdtsc rdtscp rdpmc xgetbv
  57.  
  58. lwp_instruction=llwpcb slwpcb lwpval lwpins
  59.  
  60. ext_instruction=crc32 popcnt lzcnt tzcnt movbe pclmulqdq rdrand
  61.  
  62. bmi1_instruction=andn bextr blsi blsmk blsr
  63.  
  64. bmi2_instruction=bzhi mulx pdep pext rorx sarx shlx shrx
  65.  
  66. tbm_instruction=blcfill blci blcic blcmsk blcs blsfill blsic t1mskc tzmsk
  67.  
  68. fpu_instruction=f2xm1 fabs fadd faddp fbld fbstp fchs fclex fcom fcomp fcompp fdecstp \
  69.     fdisi fdiv fdivp fdivr fdivrp feni ffree fiadd ficom ficomp fidiv \
  70.     fidivr fild fimul fincstp finit fist fistp fisub fisubr fld fld1 \
  71.     fldcw fldenv fldenvw fldl2e fldl2t fldlg2 fldln2 fldpi fldz fmul \
  72.     fmulp fnclex fndisi fneni fninit fnop fnsave fnsavew fnstcw fnstenv \
  73.     fnstenvw fnstsw fpatan fprem fptan frndint frstor frstorw fsave \
  74.     fsavew fscale fsqrt fst fstcw fstenv fstenvw fstp fstsw fsub fsubp \
  75.     fsubr fsubrp ftst fwait fxam fxch fxtract fyl2x fyl2xp1 \
  76.     fsetpm fcos fldenvd fnsaved fnstenvd fprem1 frstord fsaved fsin fsincos \
  77.     fstenvd fucom fucomp fucompp fcomi fcomip fucomi fucomip ffreep \
  78.     fcmovb fcmove fcmovbe fcmovu fcmovnb fcmovne fcmovnbe fcmovnu
  79.  
  80. mmx_instruction=movd movq \
  81.     paddb paddw paddd paddsb paddsw paddusb paddusw \
  82.     psubb psubw psubd psubsb psubsw psubusb psubusw \
  83.     pand pandn por pxor \
  84.     pcmpeqb pcmpeqd pcmpeqw pcmpgtb pcmpgtd pcmpgtw \
  85.     pmaddwd pmulhw pmullw \
  86.     psllw pslld psllq psrlw psrld psrlq psraw psrad \
  87.     packuswb packsswb packssdw \
  88.     punpcklbw punpcklwd punpckldq punpckhbw punpckhwd punpckhdq \
  89.     emms
  90.  
  91. mmx2_instruction=pavgb pavgw \
  92.     pextrw pinsrw pmovmskb \
  93.     pmaxsw pmaxub pminsw pminub \
  94.     pmulhuw psadbw pshufw \
  95.     prefetchnta prefetcht0 prefetcht1 prefetcht2 \
  96.     maskmovq movntq sfence
  97.  
  98. emmx_instruction=paddsiw psubsiw \
  99.     pmulhrw pmachriw pmulhriw \
  100.     pmagw pdistib paveb \
  101.     pmvzb pmvnzb pmvlzb pmvgezb
  102.  
  103. k3d_instruction=pfacc pfadd pfsub pfsubr pfmul \
  104.     pfcmpeq pfcmpge pfcmpgt \
  105.     pfmax pfmin \
  106.     pfrcp pfrcpit1 pfrcpit2 pfrsqit1 pfrsqrt \
  107.     pi2fd pf2id \
  108.     pavgusb pmulhrw \
  109.     femms
  110.  
  111. k3d2_instruction=pfnacc pfpnacc pi2fw pf2iw pswapd
  112.  
  113. k3dgeode_instruction=pfrsqrtv pfrcpv
  114.  
  115. k3dprefetch_instruction=prefetch prefetchw
  116.  
  117. sse_instruction=addss addps subss subps \
  118.     mulss mulps divss divps sqrtss sqrtps \
  119.     rcpss rcpps rsqrtss rsqrtps \
  120.     maxss maxps minss minps \
  121.     cmpss comiss ucomiss cmpps \
  122.     cmpeqss cmpltss cmpless cmpunordss cmpneqss cmpnltss cmpnless cmpordss \
  123.     cmpeqps cmpltps cmpleps cmpunordps cmpneqps cmpnltps cmpnleps cmpordps \
  124.     andnps andps orps xorps \
  125.     cvtsi2ss cvtss2si cvttss2si \
  126.     cvtpi2ps cvtps2pi cvttps2pi \
  127.     movss movlps movhps movlhps movhlps movaps movups movntps movmskps \
  128.     shufps unpckhps unpcklps \
  129.     ldmxcsr stmxcsr
  130.  
  131. sse2_instruction=addpd addsd subpd subsd \
  132.     mulsd mulpd divsd divpd sqrtsd sqrtpd \
  133.     maxsd maxpd minsd minpd \
  134.     cmpsd comisd ucomisd cmppd \
  135.     cmpeqsd cmpltsd cmplesd cmpunordsd cmpneqsd cmpnltsd cmpnlesd cmpordsd \
  136.     cmpeqpd cmpltpd cmplepd cmpunordpd cmpneqpd cmpnltpd cmpnlepd cmpordpd \
  137.     andnpd andpd orpd xorpd \
  138.     cvtsd2ss cvtpd2ps cvtss2sd cvtps2pd \
  139.     cvtdq2ps cvtps2dq cvttps2dq \
  140.     cvtdq2pd cvtpd2dq cvttpd2dq \
  141.     cvtsi2sd cvtsd2si cvttsd2si \
  142.     cvtpi2pd cvtpd2pi cvttpd2pi \
  143.     movsd movlpd movhpd movapd movupd movntpd movmskpd \
  144.     shufpd unpckhpd unpcklpd \
  145.     movnti movdqa movdqu movntdq maskmovdqu \
  146.     movdq2q movq2dq \
  147.     paddq psubq pmuludq \
  148.     pslldq psrldq \
  149.     punpcklqdq punpckhqdq \
  150.     pshufhw pshuflw pshufd \
  151.     lfence mfence
  152.  
  153. sse3_instruction=addsubps addsubpd \
  154.     haddps haddpd hsubps hsubpd \
  155.     movsldup movshdup movddup \
  156.     lddqu \
  157.     fisttp
  158.    
  159. ssse3_instruction=psignb psignw psignd \
  160.     pabsb pabsw pabsd \
  161.     palignr pshufb \
  162.     pmulhrsw pmaddubsw \
  163.     phaddw phaddd phaddsw \
  164.     phsubw phsubd phsubsw
  165.  
  166. sse4a_instruction=extrq insertq \
  167.     movntsd movntss
  168.  
  169. sse41_instruction=mpsadbw phminposuw \
  170.     pmuldq pmulld \
  171.     dpps dppd \
  172.     blendps blendpd blendvps blendvpd pblendvb pblendw \
  173.     pmaxsb pmaxuw pmaxsd pmaxud pminsb pminuw pminsd pminud \
  174.     roundps roundss roundpd roundsd \
  175.     insertps pinsrb pinsrd pinsrq \
  176.     extractps pextrb pextrd pextrq \
  177.     pmovsxbw pmovsxbd pmovsxbq pmovsxwd pmovsxwq pmovsxdq \
  178.     pmovzxbw pmovzxbd pmovzxbq pmovzxwd pmovzxwq pmovzxdq \
  179.     ptest \
  180.     pcmpeqq \
  181.     packusdw \
  182.     movntdqa
  183.  
  184. sse42_instruction=pcmpgtq \
  185.     pcmpestri pcmpestrm pcmpistri pcmpistrm
  186.  
  187. aes_instruction=aesenc aesenclast aesdec aesdeclast aeskeygenassist aesimc
  188.  
  189. padlock_instruction=xcryptcbc xcryptcfb xcryptctr xcryptecb xcryptofb \
  190.     xsha1 xsha256 montmul xstore
  191.  
  192.  
  193. avx_instruction=vaddss vaddps vaddsd vaddpd vsubss vsubps vsubsd vsubpd \
  194.     vaddsubps vaddsubpd \
  195.     vhaddps vhaddpd vhsubps vhsubpd \
  196.     vmulss vmulps vmulsd vmulpd \
  197.     vmaxss vmaxps vmaxsd vmaxpd vminss vminps vminsd vminpd \
  198.     vandps vandpd vandnps vandnpd vorps vorpd vxorps vxorpd \
  199.     vblendps vblendpd vblendvps vblendvpd \
  200.     vcmpss vcomiss vucomiss vcmpsd vcomisd vucomisd vcmpps vcmppd \
  201.     vcmpeqss vcmpltss vcmpless vcmpunordss vcmpneqss vcmpnltss vcmpnless vcmpordss \
  202.     vcmpeq_uqss vcmpngess vcmpngtss vcmpfalsess vcmpneq_oqss vcmpgess vcmpgtss vcmptruess \
  203.     vcmpeq_osss vcmplt_oqss vcmple_oqss vcmpunord_sss vcmpneq_usss vcmpnlt_uqss vcmpnle_uqss vcmpord_sss \
  204.     vcmpeq_usss vcmpnge_uqss vcmpngt_uqss vcmpfalse_osss vcmpneq_osss vcmpge_oqss vcmpgt_oqss vcmptrue_usss \
  205.     vcmpeqps vcmpltps vcmpleps vcmpunordps vcmpneqps vcmpnltps vcmpnleps vcmpordps \
  206.     vcmpeq_uqps vcmpngeps vcmpngtps vcmpfalseps vcmpneq_oqps vcmpgeps vcmpgtps vcmptrueps \
  207.     vcmpeq_osps vcmplt_oqps vcmple_oqps vcmpunord_sps vcmpneq_usps vcmpnlt_uqps vcmpnle_uqps vcmpord_sps \
  208.     vcmpeq_usps vcmpnge_uqps vcmpngt_uqps vcmpfalse_osps vcmpneq_osps vcmpge_oqps vcmpgt_oqps vcmptrue_usps \
  209.     vcmpeqsd vcmpltsd vcmplesd vcmpunordsd vcmpneqsd vcmpnltsd vcmpnlesd vcmpordsd \
  210.     vcmpeq_uqsd vcmpngesd vcmpngtsd vcmpfalsesd vcmpneq_oqsd vcmpgesd vcmpgtsd vcmptruesd \
  211.     vcmpeq_ossd vcmplt_oqsd vcmple_oqsd vcmpunord_ssd vcmpneq_ussd vcmpnlt_uqsd vcmpnle_uqsd vcmpord_ssd \
  212.     vcmpeq_ussd vcmpnge_uqsd vcmpngt_uqsd vcmpfalse_ossd vcmpneq_ossd vcmpge_oqsd vcmpgt_oqsd vcmptrue_ussd \
  213.     vcmpeqpd vcmpltpd vcmplepd vcmpunordpd vcmpneqpd vcmpnltpd vcmpnlepd vcmpordpd \
  214.     vcmpeq_uqpd vcmpngepd vcmpngtpd vcmpfalsepd vcmpneq_oqpd vcmpgepd vcmpgtpd vcmptruepd \
  215.     vcmpeq_ospd vcmplt_oqpd vcmple_oqpd vcmpunord_spd vcmpneq_uspd vcmpnlt_uqpd vcmpnle_uqpd vcmpord_spd \
  216.     vcmpeq_uspd vcmpnge_uqpd vcmpngt_uqpd vcmpfalse_ospd vcmpneq_ospd vcmpge_oqpd vcmpgt_oqpd vcmptrue_uspd \
  217.     vcvtsd2ss vcvtpd2ps vcvtss2sd vcvtps2pd \
  218.     vcvtsi2ss vcvtss2si vcvttss2si \
  219.     vcvtpi2ps vcvtps2pi vcvttps2pi \
  220.     vcvtdq2ps vcvtps2dq vcvttps2dq \
  221.     vcvtdq2pd vcvtpd2dq vcvttpd2dq \
  222.     vcvtsi2sd vcvtsd2si vcvttsd2si \
  223.     vcvtpi2pd vcvtpd2pi vcvttpd2pi \
  224.     vdivss vdivps vdivsd vdivpd vsqrtss vsqrtps vsqrtsd vsqrtpd \
  225.     vdpps vdppd \
  226.     vmaskmovps vmaskmovpd \
  227.     vmovss vmovsd vmovaps vmovapd vmovups vmovupd vmovntps vmovntpd \
  228.     vmovhlps vmovlhps vmovlps vmovlpd vmovhps vmovhpd \
  229.     vmovsldup vmovshdup vmovddup \
  230.     vmovmskps vmovmskpd \
  231.     vroundss vroundps vroundsd vroundpd \
  232.     vrcpss vrcpps vrsqrtss vrsqrtps \
  233.     vunpcklps vunpckhps vunpcklpd vunpckhpd \
  234.     vbroadcastss vbroadcastsd vbroadcastf128 \
  235.     vextractps vinsertps vextractf128 vinsertf128 \
  236.     vshufps vshufpd vpermilps vpermilpd vperm2f128 \
  237.     vtestps vtestpd \
  238.     vpaddb vpaddusb vpaddsb vpaddw vpaddusw vpaddsw vpaddd vpaddq \
  239.     vpsubb vpsubusb vpsubsb vpsubw vpsubusw vpsubsw vpsubd vpsubq \
  240.     vphaddw vphaddsw vphaddd vphsubw vphsubsw vphsubd \
  241.     vpsllw vpslld vpsllq vpsrlw vpsrld vpsrlq vpsraw vpsrad \
  242.     vpand vpandn vpor vpxor \
  243.     vpblendwb vpblendw \
  244.     vpsignb vpsignw vpsignd \
  245.     vpavgb vpavgw \
  246.     vpabsb vpabsw vpabsd \
  247.     vmovd vmovq vmovdqa vmovdqu vlddqu vmovntdq vmovntdqa vmaskmovdqu \
  248.     vpmovsxbw vpmovsxbd vpmovsxbq vpmovsxwd vpmovsxwq vpmovsxdq \
  249.     vpmovzxbw vpmovzxbd vpmovzxbq vpmovzxwd vpmovzxwq vpmovzxdq \
  250.     vpackuswb vpacksswb vpackusdw vpackssdw \
  251.     vpcmpeqb vpcmpeqw vpcmpeqd vpcmpeqq vpcmpgtb vpcmpgtw vpcmpgtd vpcmpgtq \
  252.     vpmaddubsw vpmaddwd \
  253.     vpmullw vpmulhuw vpmulhw vpmulhrsw vpmulld vpmuludq vpmuldq \
  254.     vpmaxub vpmaxsb vpmaxuw vpmaxsw vpmaxud vpmaxsd \
  255.     vpminub vpminsb vpminuw vpminsw vpminud vpminsd \
  256.     vpmovmskb vptest \
  257.     vpunpcklbw vpunpcklwd vpunpckldq vpunpcklqdq \
  258.     vpunpckhbw vpunpckhwd vpunpckhdq vpunpckhqdq \
  259.     vpslldq vpsrldq vpalignr \
  260.     vpshufb vpshuflw vpshufhw vpshufd \
  261.     vpextrb vpextrw vpextrd vpextrq vpinsrb vpinsrw vpinsrd vpinsrq \
  262.     vpsadbw vmpsadbw vphminposuw \
  263.     vpcmpestri vpcmpestrm vpcmpistri vpcmpistrm \
  264.     vpclmulqdq vaesenc vaesenclast vaesdec vaesdeclast vaeskeygenassist vaesimc \
  265.     vldmxcsr vstmxcsr vzeroall vzeroupper
  266.  
  267. avx2_instruction=vbroadcasti128 vpbroadcastb vpbroadcastw vpbroadcastd vpbroadcastq \
  268.     vpblendd \
  269.     vpermd vpermq vperm2i128 \
  270.     vextracti128 vinserti128 \
  271.     vpmaskmovd vpmaskmovq \
  272.     vpsllvd vpsllvq vpsravd vpsrlvd vpsrldq \
  273.     vpgatherdd vpgatherqd vgatherdq vgatherqq \
  274.     vpermps vpermpd \
  275.     vgatherdpd vgatherqpd vgatherdps vgatherqps
  276.  
  277. xop_instruction=vfrczss vfrczps vfrczsd vfrczpd \
  278.     vpermil2ps vperlil2pd \
  279.     vtestps vtestpd \
  280.     vpcomub vpcomb vpcomuw vpcomw vpcomud vpcomd vpcomuq vpcomq \
  281.     vphaddubw vphaddbw vphaddubd vphaddbd vphaddubq vphaddbq \
  282.     vphadduwd vphaddwd vphadduwq vphaddwq vphaddudq vphadddq \
  283.     vphsubbw vphsubwd vphsubdq \
  284.     vpmacsdd vpmacssdd vpmacsdql vpmacssdql vpmacsdqh vpmacssdqh \
  285.     vpmacsww vpmacssww vpmacswd vpmacsswd \
  286.     vpmadcswd vpmadcsswd \
  287.     vpcmov vpperm \
  288.     vprotb vprotw vprotd vprotq \
  289.     vpshab vpshaw vpshad vpshaq \
  290.     vpshlb vpshlw vpshld vpshlq
  291.  
  292. cvt16_instruction=vcvtph2ps vcvtps2ph
  293.  
  294. fma4_instruction=vfmaddss vfmaddps vfmaddsd vfmaddpd \
  295.     vfmsubss vfmsubps vfmsubsd vfmsubpd \
  296.     vnfmaddss vnfmaddps vnfmaddsd vnfmaddpd \
  297.     vnfmsubss vnfmsubps vnfmsubsd vnfmsubpd \
  298.     vfmaddsubps vfmaddsubpd vfmsubaddps vfmsubaddpd
  299.  
  300. fma3_instruction=vfmadd132ss vfmadd213ss vfmadd231ss \
  301.     vfmadd132ps vfmadd213ps vfmadd231ps \
  302.     vfmadd132sd vfmadd213sd vfmadd231sd \
  303.     vfmadd132pd vfmadd213pd vfmadd231pd \
  304.     vfmaddsub132ps vfmaddsub213ps vfmaddsub231ps \
  305.     vfmaddsub132pd vfmaddsub213pd vfmaddsub231pd \
  306.     vfmsubadd132ps vfmsubadd213ps vfmsubadd231ps \
  307.     vfmsubadd132pd vfmsubadd213pd vfmsubadd231pd \
  308.     vfmsub132ss vfmsub213ss vfmsub231ss \
  309.     vfmsub132ps vfmsub213ps vfmsub231ps \
  310.     vfmsub132sd vfmsub213sd vfmsub231sd \
  311.     vfmsub132pd vfmsub213pd vfmsub231pd \
  312.     vfnmadd132ss vfnmadd213ss vfnmadd231ss \
  313.     vfnmadd132ps vfnmadd213ps vfnmadd231ps \
  314.     vfnmadd132sd vfnmadd213sd vfnmadd231sd \
  315.     vfnmadd132pd vfnmadd213pd vfnmadd231pd \
  316.     vfnmsub132ss vfnmsub213ss vfnmsub231ss \
  317.     vfnmsub132ps vfnmsub213ps vfnmsub231ps \
  318.     vfnmsub132sd vfnmsub213sd vfnmsub231sd \
  319.     vfnmsub132pd vfnmsub213pd vfnmsub231pd
  320.  
  321. register=al ah bl bh cl ch dl dh \
  322.     ax bx cx dx si di bp \
  323.     eax ebx ecx edx esi edi ebx esp \
  324.     st0 st1 st2 st3 st4 st5 st6 st7 \
  325.     mm0 mm1 mm2 mm3 mm4 mm5 mm6 mm7 \
  326.     xmm0 xmm1 xmm2 xmm3 xmm4 xmm5 xmm6 xmm7 \
  327.     ymm0 ymm1 ymm2 ymm3 ymm4 ymm5 ymm6 ymm7 \
  328.     fs
  329.  
  330. register_64=sil dil bpl \
  331.     r8b r9b r10b r11b r12b r13b r14b r15b \
  332.     r8w r9w r10w r11w r12w r13w r14w r15w \
  333.     rax rcx rdx rbx rsp rbp rsi rdi \
  334.     r8 r9 r10 r11 r12 r13 r14 r15 \
  335.     xmm8 xmm9 xmm10 xmm11 xmm12 xmm13 xmm14 xmm15 \
  336.     ymm8 ymm9 ymm10 ymm11 ymm12 ymm13 ymm14 ymm15 \
  337.     gs
  338.  
  339. directive_nasm=db dw dd dq dt do dy \
  340.     resb resw resd resq rest reso resy incbin equ times safeseh \
  341.     __utf16__ __utf32__ %+ \
  342.     default cpu float start imagebase osabi \
  343.     ..start ..imagebase ..gotpc ..gotoff ..gottpoff ..got ..plt ..sym ..tlsie \
  344.     section segment __sect__ group absolute \
  345.     .bss .comment .data .lbss .ldata .lrodata .rdata .rodata .tbss .tdata .text \
  346.     alloc bss code exec data noalloc nobits noexec nowrite progbits rdata tls write \
  347.     private public common stack overlay class \
  348.     extern global common import export \
  349.     %define %idefine %xdefine %ixdefine %assign %undef %? %?? \
  350.     %defstr %idefstr %deftok %ideftok \
  351.     %strcat %strlen %substr \
  352.     %macro %imacro %rmacro %exitmacro %endmacro %unmacro \
  353.     %if %ifn %elif %elifn %else %endif \
  354.     %ifdef %ifndef %elifdef %elifndef \
  355.     %ifmacro %ifnmacro %elifmacro %elifnmacro \
  356.     %ifctx %ifnctx %elifctx %elifnctx \
  357.     %ifidn %ifnidn %elifidn %elifnidn \
  358.     %ifidni %ifnidni %elifidni %elifnidni \
  359.     %ifid %ifnid %elifid %elifnid \
  360.     %ifnum %ifnnum %elifnum %elifnnum \
  361.     %ifstr %ifnstr %elifstr %elifnstr \
  362.     %iftoken %ifntoken %eliftoken %elifntoken \
  363.     %ifempty %elifempty %ifnempty %elifnempty \
  364.     %ifenv %ifnenv %elifenv %elifnenv \
  365.     %rep %exitrep %endrep \
  366.     %while %exitwhile %endwhile \
  367.     %include %pathsearch %depend %use \
  368.     %push %pop %repl %arg %local %stacksize flat flat64 large small \
  369.     %error %warning %fatal \
  370.     %00 .nolist %rotate %line %! %final %clear \
  371.     struc endstruc istruc at iend \
  372.     align alignb sectalign \
  373.     bits use16 use32 use64 \
  374.     __nasm_major__ __nasm_minor__ __nasm_subminor__ ___nasm_patchlevel__ \
  375.     __nasm_version_id__ __nasm_ver__ \
  376.     __file__ __line__ __pass__ __bits__ __output_format__ \
  377.     __date__ __time__ __date_num__ __time_num__ __posix_time__ \
  378.     __utc_date__ __utc_time__ __utc_date_num__ __utc_time_num__ \
  379.     __float_daz__ __float_round__ __float__ \
  380.     __use_altreg__ altreg \
  381.     __use_smartalign__ smartalign __alignmode__ \
  382.     __use_fp__ __infinity__ __nan__ __qnan__ __snan__ \
  383.     __float8__ __float16__ __float32__ __float64__ __float80m__ __float80e__ __float128l__ __float128h__
  384.  
  385. directive_operand_nasm=a16 a32 a64 o16 o32 o64 strict \
  386.     byte word dword qword tword oword yword nosplit \
  387.     %0 %1 %2 %3 %4 %5 %6 %7 %8 %9 \
  388.     abs rel \
  389.     $ $$ \
  390.     seg wrt
  391.  
  392. keywords.$(file.patterns.asm)=$(bcd_instruction) $(flow_instruction) $(alu_instruction) $(mem_instruction) $(stack_instruction) $(pred_instruction) $(flag_instruction) $(cmov_instruction) $(prefix_instruction) $(string_instruction) $(info_instruction) $(lwp_instruction) $(ext_instruction) $(bmi1_instruction) $(bmi2_instruction)
  393. keywords2.$(file.patterns.asm)=$(fpu_instruction)
  394. keywords3.$(file.patterns.asm)=$(register) $(register_64)
  395. keywords4.$(file.patterns.asm)=$(directive_nasm)
  396. keywords5.$(file.patterns.asm)=$(directive_operand_nasm)
  397. keywords6.$(file.patterns.asm)=$(mmx_instruction) $(mmx2_instruction) $(emmx_instruction) $(k3d_instruction) $(k3d2_instruction) $(k3dgeode_instruction) $(k3dprefetch_instruction) $(sse_instruction) $(sse2_instruction) $(sse3_instruction) $(ssse3_instruction) $(sse4a_instruction) $(sse41_instruction) $(sse42_instruction) $(aes_instruction) $(padlock_instruction) $(avx_instruction) $(avx2_instruction) $(xop_instruction) $(cvt16_instruction) $(fma4_instruction) $(fma3_instruction)
  398.  
  399. comment.block.asm=;
  400.  
  401.  
  402. # Assembler Styles
  403. #style.asm.32=fore:#808080,font:Verdana,size:8
  404. # Default
  405. style.asm.0=
  406. # Comment
  407. style.asm.1=fore:#adadad
  408. #$(colour.code.comment.line),font:Comic Sans MS,size:8
  409. # Number
  410. style.asm.2=fore:#ff0000
  411. # String
  412. style.asm.3=$(colour.string)
  413. # Operator
  414. style.asm.4=$(colour.operator),bold
  415. # Identifier
  416. style.asm.5=
  417. # CPU instruction
  418. style.asm.6=$(colour.keyword),bold
  419. #fore:#0000ff
  420. # FPU instruction
  421. style.asm.7=fore:#0000ff
  422. # Register
  423. style.asm.8=fore:#46aa03,bold
  424. # assembler Directive
  425. style.asm.9=fore:#0000ff
  426. # assembler Directive Operand
  427. style.asm.10=fore:#0000ff
  428. # Comment block (GNU as /*...*/ syntax, unimplemented)
  429. style.asm.11=$(colour.code.comment.box),$(font.code.comment.box)
  430. # Character/String (single quote) (also character prefix in GNU as)
  431. style.asm.12=$(colour.char)
  432. # End of line where string is not closed
  433. style.asm.13=fore:#000000,back:#E0C0E0,eolfilled
  434. # Extended instructions
  435. style.asm.14=fore:#B00040
  436.  
  437.  
  438. command.compile.$(file.patterns.asm)=nasm $(FileNameExt)
  439.  
  440. command.name.0.*.asm=Link
  441. command.0.*.asm=link $(FileName)
  442.  
  443.  
  444. statement.indent.$(file.patterns.asm)=9 .if
Advertisement
RAW Paste Data Copied
Advertisement