Masm 中用于文件 io 的工具

发布于 2024-08-29 09:29:59 字数 78 浏览 2 评论 0原文

如何操作 masm 中的文件? 我的意思是使用微软(masm)包含的标准库。 或者在没有 linkink 库的 Windows 中可用的东西。

How can I operate on files in masm.
I mean using standard libraries included to microsoft (masm).
Or somethning available in windows without linkink libraries.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

琉璃梦幻 2024-09-05 09:29:59

MASM32 网站开始(它将为您提供所需的基本内容)。
使用 Win32 API 作为 RTL(无需静态链接)。
对于控制台 IO,请参阅 GetStdHandle 调用让您开始。
使用 INVOKE 处理 Win32 parms 调用参数。
还要记住,您可以在 MASM 函数中定义局部变量,MASM 将为您生成所有 BP 相对寻址,以及进入和退出序列。 MASM(32 位)具有许多非常方便的 HLL 功能(顺便说一句,这些功能在 64 位 MASM 中已被破坏)。

玩得开心!

Start with the MASM32 site (it will provide you with the basic includes you need).
Use the Win32 API as your RTL (nothing to statically link).
For console IO, see the GetStdHandle call to get you started.
Use INVOKE to handle the Win32 parms call parameters.
Also remember that you can define local variables in a MASM function and MASM will generate all the BP relative addressing for you, as well as the entry and exit sequence. MASM (32-bit) has a number of very handy HLL features (that are broken in 64-bit MASM, btw).

Have fun!

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文