中国DOS联盟

-- 联合DOS 推动DOS 发展DOS --

联盟域名:www.cn-dos.net 论坛域名:www.cn-dos.net/forum
DOS,代表着自由开放与发展,我们努力起来,学习FreeDOS和Linux的自由开放与GNU精神,共同创造和发展美好的自由与GNU GPL世界吧!

中国DOS联盟论坛
现在时间是 2026-07-23 14:04
中国DOS联盟论坛 » DOS启动盘 & LOGO技术 (启动盘室) » 汇编问题 查看 524 回复 0
楼 主 汇编问题 发表于 2003-09-27 00:00 ·  中国 北京 联通
初级用户
积分 136
发帖 9
注册 2003-08-08 00:00
22年会员
UID 8237
性别 男
状态 离线
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
论坛跳转: