按年被提到
20122015 · 4 次2026
开源书›图形与游戏·No.64

Tonc: Game Boy Advance Programming

Tonc:Game Boy Advance 编程
Jasper Vijn

用 C 语言从零写 GBA 游戏的经典教程,附带 ARM 汇编速成

免费阅读 ↗
被推荐 · 24 人首次 2012-12-21 · 最近 2025-06-16官方免费在线(版权保留,作者或出版社免费放出)
24不同的人
25活跃月份
12有推荐的月份
27讨论串

Tonc 是 Jasper Vijn 写的 Game Boy Advance 编程教程,从开发环境、寄存器和显示模式讲起,逐步覆盖背景、精灵、中断、DMA、定时器等硬件功能,全部用 C 语言配合示例代码演示。另有一篇很短的 ARM 汇编速览,不少人单独拿来学 ARM 指令集。和只给硬件手册的资料不同,它把硬件细节讲成可以动手跑的教程,是 GBA 自制游戏圈公认的起点。

HN 为什么推荐它

HN 上有人把它称作做 GBA 游戏时大家都在用的资源,还有人当作学 ARM 汇编的好教程反复推荐;也常被当作 GBA 编程的参考资料引用。

难度 3 / 5约 40 小时
适合谁

想动手给 GBA 写游戏,或想学 ARM 汇编的人

读之前最好知道
1C 语言指针
2二进制与位运算(bitwise)

怎么读

由 Claude 根据这本书和 HN 上的说法整理,可能有错
  1. 1先搭好开发环境,跑通前几章的第一个示例再往下读
  2. 2边读边在模拟器里运行示例,把代码改一改看效果
  3. 3只想学 ARM 汇编的话,直接读那篇汇编速览即可
  4. 4遇到具体硬件功能(精灵、DMA 等)时再回头查对应章节

HN 书评

推荐在前,同类按时间 · 每本最多保留 20 条,统计用全部提及 · 作者本人贴的不算
强烈推荐csande17 · 2019-12

“If you're interested in learning more, I would highly recommend this tutorial: Tonc”

强烈推荐这个教程,想深入学 GBA 游戏编程
Game Boy Advance “Hello World” Using Zig原评论 ↗
强烈推荐ravishi · 2023-09

“To this day I consider TONC to be the greatest software project I have ever worked with.”

强烈推荐,称 TONC 是自己用过最伟大的软件项目
RyujinX – Open Source Nintendo Switch Emulator原评论 ↗
推荐felipebueno · 2013-07

“I know it's not an official manual but it's worth mentioning: GBA Tonc - Tonc”

提醒 Tonc 虽非官方手册,也值得一提
GameBoy Programming Manual 原评论 ↗
推荐Keyframe · 2013-07

“tonc Tonc is a great intro to homebrew GBA programming.”

推荐它作 GBA 自制程序编程的好入门
GameBoy Programming Manual 原评论 ↗
推荐jpap · 2013-08

“I found the "Tonic: Whirlwind Tour of Assembly" [1] site invaluable to get me started for SnappyCam, as it covers a lot of the ARM ISA.”

称 Tonc 的汇编导览讲了大量 ARM 指令集,对做 SnappyCam 帮助很大
Scientific Breakthrough Lets SnappyCam App Take 20 Full-Res Photos Per Second原评论 ↗
推荐floody-berry · 2014-09

“"Tonc: Whirlwind Tour of ARM Assembly" [1] is what I'm repeatedly referring to while learning ARM.”

说自己学 ARM 时反复查阅 Tonc 的 ARM 汇编导览
Say hello to x64 Assembly, Part 2原评论 ↗
看全部 20 条 →
推荐birslip · 2015-01

“If you like this article you might be interested in this article about the mode7 on the GBA:”

推荐一篇讲 GBA 上 mode7 的文章
Lou's Pseudo 3d Page原评论 ↗
推荐shepardrtc · 2015-08

“In any case, if you want another overview article on ARM Assembly, try this: Tonc”

推荐它作 ARM 汇编的概览文章
Understanding ARM Assembly, Part 1原评论 ↗
推荐Keyframe · 2015-08

“TONC is really invaluable:”

称 TONC 极其宝贵
Writing a Game Boy Advance Game原评论 ↗
推荐dpflan · 2015-12

“This site was heavily used for reference and guidance:”

说这个站点是自己项目里大量使用的参考和指引
How to Program an NES game in C原评论 ↗
推荐Graziano_M · 2018-07

“Tonc's old guide to ARM[1] I'll still send to people who want to learn ARM.”

仍会把 Tonc 的 ARM 旧指南推荐给想学 ARM 的人
Writing a Game Boy emulator原评论 ↗
推荐sneeuwpopsneeuw · 2021-04

“If anyone is interested in making a Gameboy game from scratch. Tonc is basically the resource that everyone is using to do that.”

称想从零做 GBA 游戏的人基本都用 Tonc
GB Studio: A game maker for the Game Boy原评论 ↗
推荐kragen · 2024-07

“the three best actual tutorials for arm that i've found are Tonc (aimed at the gameboy advance)”

把它列为找到的三个最好的 ARM 教程之一
Inside an IBM/Motorola mainframe controller chip from 1981原评论 ↗
推荐kragen · 2025-03

“There's a lovely short tutorial at Tonc as well (43 pages)”

推荐这篇 43 页的 ARM 汇编短教程
Collapse OS原评论 ↗
引用khalladay · 2017-04

“Tonc has some interesting data (here: Tonc) about performance of operations with 16 bit vs 32 bit variables”

引 Tonc 中 16 位与 32 位变量运算性能的数据
Gameboy Advance Development by Example: Drawing and Moving Sprites原评论 ↗
引用indescions_2018 · 2018-04

“TONC GBA Programming Principles”

引用 TONC 的 GBA 编程原理
Ask HN: What are some examples of beautiful x86 assembly code?原评论 ↗
引用tagrun · 2018-10

“Example from Tonc:”

引 Tonc 中的一个例子
A Plan 9 C compiler for RISC-V [pdf]原评论 ↗
引用ranger207 · 2019-11

“The GameBoy Advance is reasonably well-documented[0]”

指出 GBA 的文档相当齐全
What is the “two-drive trick” that can read Amiga disks on a PC?原评论 ↗
引用deaddodo · 2020-11

“No, you can directly rasterize to the screen buffer:”

指出可以直接光栅化到屏幕缓冲区,并附上 Tonc
Butano: Modern C++ high level GameBoy Advance engine原评论 ↗
引用wtetzner · 2024-08

“The Game Boy Advance is a fun console to program for.”

说 Game Boy Advance 是好玩的编程平台
Notris: A Tetris clone for the PlayStation 1原评论 ↗