code.cache.size.xm

来自「代码优化,有效使用内存,透视优化技术,对比优化方法,如果你在追求代码效率的最大化」· XM 代码 · 共 34 行

XM
34
字号
; CODE_SIZE EQU	?		; // The CODE_SIZE macro is automaticall generated
						; // by batch translator file

; /*--------------------------------------------------------------------------
;  *
;  * 				MACRO GENERATING N NOP machine commands
;  *				-----------------------------------------
;  *
;  *						(the NOP command actually means "no operation"
;  * 						 and takes exactly one byte, i.e. N NOP commands
;  *						 produce N bytes of executable code)
;  *
;  -------------------------------------------------------------------------*/
NOPING MACRO N			; // MACRO START //
	_N = N				; _N := N (getting the argument passed to the macro)
	_A = 0				; _A -- loop counter variable

	WHILE _A NE _N		; while(_A <= _N){
		NOP				; inserting NOPs into the source code
		_A = _A + 1		; _A++;
	ENDM				; }
ENDM					; // MACRO END //

; /*--------------------------------------------------------------------------
;  * 
;  * 		CALLING THE MACRO FOR CREATING A BLOCK WITH THE SIZE EQUAL TO CODE_SIZE KB of NOP commands
;  *		-----------------------------------------------------------
;  *
; --------------------------------------------------------------------------*/
NOPING CODE_SIZE*1024



⌨️ 快捷键说明

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