如何写在FASM控制台? [英] How to write to the console in fasm?
本文介绍了如何写在FASM控制台?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我是非常新的装配。昨天我只把它捡起来,我已经经历了许多的例子看,但还是无法弄清楚我自己怎么写控制台。当我似乎复制它在我自己的方式,我总是得到一个错误。
I'm exceptionally new to assembly. I only picked it up yesterday and I've looked through many examples and still can't figure out for myself how to write to the console. I always get an error when I seem to replicate it in my own way.
推荐答案
使用 WriteConsole 。
include 'win32wxp.inc'
.code
start:
invoke AllocConsole
invoke WriteConsole,<invoke GetStdHandle,STD_OUTPUT_HANDLE>,tex,12,dummy,0
invoke Sleep,-1
.end start
.data
tex TCHAR 'Hello World!'
dummy rd 1
这篇关于如何写在FASM控制台?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文