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

📄 ndaddref.asm

📁 这是一个数字图像处理的matlab仿真程序
💻 ASM
字号:
;-------------------------------------------------------------------------------
;  colibrary procedure NDAddRef
;
; -------------------------------------------------------
; This procedure was written by Ernest Murphy    9/27/00
;
; Copyright (c) 9/28/00  Ernest Murphy
; For educational use only. Any commercial re-use only by written license
;
; -------------------------------------------------------
.NOLIST
.386
.model flat, stdcall  ; 32 bit memory model
option casemap :none  ; case sensitive

include     mini_win.inc	; 'just enough' of windows.inc (speeds build)
include     \masm32\include\oleaut32.inc
include     \masm32\COM\include\oaidl.inc

include     colib.inc

.code
;-------------------------------------------------------------------------------

NDAddRef  PROC PUBLIC this_:DWORD
             
;-------------------------------------------------------------------------------
; implimentation of the non-delegated IUnknown::NDAddRef function
;
;  performs the AddRef function
;
; EXAMPLE:
;   coinvoke ppv, NDIUnknown, AddRef
;
; Uses: eax, ecx, edx
;
;
;-------------------------------------------------------------------------------
    mov ecx, this_                              ; get object
    mov ecx, (ObjectEntry PTR[ecx]).m_pBase     ; walk to base data
    inc (ObjectData PTR[ecx]).m_RefCount        
    mov eax, (ObjectData PTR[ecx]).m_RefCount   ; return the ref count
    ret
NDAddRef  ENDP
;-------------------------------------------------------------------------------

end

⌨️ 快捷键说明

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