• Today nearly all programmers use the Advanced Programming Interface (API) to receive information's about given system values. By using this API's, we don't have to take care which operating system is currently available.But sometimes it might be needful to avoid the usage of such API's. This situation is given during development of software protections in order to avoid importing functions which - eventually - will point a reverse engineer to a solution...
  • 由于编程的需要,今天手工打造了一个进制转换函数。本想采用M32LIB里库函数,但由于极其复杂,偶看不懂,便自己写了一个,自问效率应该不低吧。

    Hex2Dec proc pHex:DWORD

        ; argument check
        mov     eax, dword ptr [pHex]
        test    eax, eax
        jz      @Exit
       
        push    esi
        mov     esi, eax
        xor     edx, edx
        xor     eax, eax
    ...

  • VB+MASM 强!

    2006-01-05

    众所周知,VB没有提供诸如shl、shr指令功能等价及相关进制转换函数。于是,在我CCBAS项目中,我利用MASM写了一堆函数(包括字串,内存功能,超快的!已测试发现比WIN32 API 还要快。Utils.dll我正在使用中)。供VB程序调用。(最后更新:2006/01/07,增加了指针参数的检查及优化部分代码)