Board logo

标题: 汇编问题 [打印本页]

作者: low_lever     时间: 2003-9-27 00:00    标题: 汇编问题

pnpAllocatePmmBlock PROC NEAR PUBLIC
        push        ax
        invoke        pmmServicesDispatcher, PMM_ALLOCATE_FUNCTION, eax, edx, cx     这句话什么意思呀?

        shl        edx, 16                        ; Convert 32 bit DX:AX into 32 bit EDX
        mov        dx, ax                        ; Put AX to lower EDX

        cmp        edx, 0                        ; Was the allocation successful?
        jne        allocGood                ; DX:AX = 00000000 if failed

        mov        ax, TP_PMM_INIT                ; Put PMM test point in AX
        jmp        postTerminalError        ; Call terminal error handler

allocGood:
        pop        ax
        ret
pnpAllocatePmmBlock ENDP




欢迎光临 中国DOS联盟论坛 (http://cndos.fam.cx/forum/) Powered by Discuz! 2.5