How to write to StdOut in Windows and FASM?

China☆狼群 提交于 2020-01-17 01:11:07

问题


The question is pretty simple, yet I can't seem to find how to do it: how do I write to StdOut in Windows/FASM?

There does not seem to be any documentation online. Ideas?


回答1:


There are a few options...

1) Use the WinAPI. This is either WriteConsole OR by using CreateFile with the filename as CON and then using WriteFile

2) Using msvcrt, and printf as you would in a c program.



来源:https://stackoverflow.com/questions/7263097/how-to-write-to-stdout-in-windows-and-fasm

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!