mymacro.inc

来自「ASM HOOK API函数库」· INC 代码 · 共 51 行

INC
51
字号
	; --------------------------------------------------------------
	; 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 + =
减小字号Ctrl + -
显示快捷键?