⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 mymacro.inc

📁 ASM HOOK API函数库
💻 INC
字号:
	; --------------------------------------------------------------
	; Specifies processor, memory model & case sensitive option.
	; The parameter "Processor" should be in the form ".386" etc..
	; EXAMPLE : AppModel .586
	; --------------------------------------------------------------
	  AppModel MACRO Processor
		Processor			  ;; Processor type
		.model flat, stdcall  ;; 32 bit memory model
		option casemap :none  ;; case sensitive
	  ENDM

	; --------------------------
	; まノ
	; --------------------------

	  USELIB MACRO libname
		include 	libname.inc
		includelib	libname.lib
	  ENDM

	; ----------------------------
	; memory to memory assignment
	; ----------------------------
	  M2M MACRO M1, M2
		push M2
		pop  M1
	  ENDM

	  CTEXT macro Text:VARARG
		local szText
		.data
		  szText byte Text, 0
		.code
		exitm <offset szText>
	  endm

	  LOWORD  MACRO   bigword ;; Retrieves the low word from double word argument
		mov eax,bigword
		and eax,0FFFFh	;; Set to low word
	  ENDM

	  HIWORD  MACRO   bigword ;; Retrieves the high word from double word argument
		mov eax,bigword
		shr eax,16		;; Shift 16 for high word to set to high word
	  ENDM
	  
	  RETURN macro value
	  	mov eax, value
	  	ret
	  endm	

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -