开发者

Change Directory with Windows 16bits API

I write in MASM 6.0 (Assembly API Windows 16 bits) I want to change dir in my code. I'm using DOS3Call function (faster than int 21h)

mov dx,OFFSET dir_user
mov ah,3bh
invoke DOS3Call

;dir_user is the user's work directory, like "c:\prog"

With this function, i c开发者_如何学编程an change dir, but i want know if have any API that can do it for me without use interrupts.

I need a 16 bits API, in 32 bits I know how to do it.

Can anybody help me?

Sorry by English, i'm not american...


You cannot. Interrupts are the only way on today's 32- and 64-bit systems.


Win16 uses the DOS API for filesystems. The syscall gate is int 21h.

Check the C standard library. I never actually invoked the syscall gate directly in Win16 programming.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜