- Mastering Assembly Programming
- Alexey Lyashko
- 125字
- 2021-08-20 10:23:32
Windows
If you are on Windows, launch fasmw.exe and enter the following code:
include 'win32a.inc'
format PE GUI
entry _start
section '.text' code readable executable
_start:
push 0
push 0
push title
push message
push 0
call [MessageBox]
call [ExitProcess]
section '.data' data readable writeable
message db 'Hello from FASM!', 0x00
title db 'Hello!', 0x00
section '.idata' import data readable writeable
library kernel, 'kernel32.dll',
user, 'user32.dll'
import kernel,\
ExitProcess, 'ExitProcess'
import user,\
MessageBox, 'MessageBoxA'
Again, do not worry if you hardly understand anything in this code; it will begin to become clearer starting with the next chapter.
In order to run the preceding code, go to the Run menu and select Run.

Compiling sources in FASMW
Admire the result for a few seconds.

Example output
推薦閱讀
- Windows系統管理與服務配置
- R語言數據可視化實戰
- Groovy for Domain:specific Languages(Second Edition)
- 薛定宇教授大講堂(卷Ⅳ):MATLAB最優化計算
- Learning Laravel 4 Application Development
- 微信小程序項目開發實戰
- JavaCAPS基礎、應用與案例
- 軟件供應鏈安全:源代碼缺陷實例剖析
- Visual Basic語言程序設計基礎(第3版)
- TypeScript全棧開發
- Mastering ASP.NET Web API
- Java 7 Concurrency Cookbook
- Cloud Development andDeployment with CloudBees
- Vue.js項目開發實戰
- Visual C++.NET(2008)典型案例