- 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
推薦閱讀
- Flutter開發實戰詳解
- Python自動化運維快速入門
- Vue.js快跑:構建觸手可及的高性能Web應用
- Data Analysis with IBM SPSS Statistics
- Web全棧工程師的自我修養
- 碼上行動:用ChatGPT學會Python編程
- 劍指大數據:企業級數據倉庫項目實戰(在線教育版)
- 零基礎學C語言程序設計
- RocketMQ實戰與原理解析
- JavaScript前端開發基礎教程
- Java EE項目應用開發
- INSTANT LESS CSS Preprocessor How-to
- Python趣味創意編程
- Java編程指南:語法基礎、面向對象、函數式編程與項目實戰
- Mastering Node.js