drawproc.asm

来自「这是一个数字图像处理的matlab仿真程序」· 汇编 代码 · 共 29 行

ASM
29
字号
.data
fullrect RECT <0,0,400,300>

.code
DrawProc	proc uses ebx esi

	invoke	GetStockObject, WHITE_BRUSH
	invoke	FillRect, hBackDC, ADDR fullrect, eax
	
     ; Thru a while loop start at the first object and first each to a new position
     ; via the move method, and then have them re-drawn on the dc.
	xor		ebx, ebx
	.WHILE	ebx < MAX_SMILIES
	     
	     ; Get the object handle 
		mov		esi, dword ptr [offset SmileyArray + 4 * ebx]
		
          ; Move this object to a new position
		method	esi, CSprite, move
		
          ; Redraw the sprite
		method	esi, CSprite, draw
		
          ; Next object..
		inc		ebx
	.ENDW
ret
DrawProc	endp

⌨️ 快捷键说明

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