中国DOS联盟论坛

China DOS Union

-- Unite DOS · Advance DOS · Grow DOS --
Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum
Guest | Log in | Register | Members | Search | China DOS Union
中国DOS联盟论坛
The time now is 2026-10-26 15:15
47,815 topics / 349,928 posts / today 0 new / 48,288 members
DOS启动盘 & LOGO技术 (启动盘室) » Assembly Question
Printable Version  676 / 0
Floor1 low_lever Posted 2003-09-27 00:00
初级用户 Posts 9 Credits 136
pnpAllocatePmmBlock PROC NEAR PUBLIC
push ax
invoke pmmServicesDispatcher, PMM_ALLOCATE_FUNCTION, eax, edx, cx What does this line mean?

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
[ Contact the Union admin team - 中国DOS联盟 - Standard version ]
Sponsored by ifanr Inc | © 2001–2023