“If you're interested in learning more, I would highly recommend this tutorial: Tonc”
Tonc 是 Jasper Vijn 写的 Game Boy Advance 编程教程,从开发环境、寄存器和显示模式讲起,逐步覆盖背景、精灵、中断、DMA、定时器等硬件功能,全部用 C 语言配合示例代码演示。另有一篇很短的 ARM 汇编速览,不少人单独拿来学 ARM 指令集。和只给硬件手册的资料不同,它把硬件细节讲成可以动手跑的教程,是 GBA 自制游戏圈公认的起点。
HN 上有人把它称作做 GBA 游戏时大家都在用的资源,还有人当作学 ARM 汇编的好教程反复推荐;也常被当作 GBA 编程的参考资料引用。
想动手给 GBA 写游戏,或想学 ARM 汇编的人
怎么读
由 Claude 根据这本书和 HN 上的说法整理,可能有错- 1先搭好开发环境,跑通前几章的第一个示例再往下读
- 2边读边在模拟器里运行示例,把代码改一改看效果
- 3只想学 ARM 汇编的话,直接读那篇汇编速览即可
- 4遇到具体硬件功能(精灵、DMA 等)时再回头查对应章节
HN 书评
推荐在前,同类按时间 · 每本最多保留 20 条,统计用全部提及 · 作者本人贴的不算“To this day I consider TONC to be the greatest software project I have ever worked with.”
“I know it's not an official manual but it's worth mentioning: GBA Tonc - Tonc”
“tonc Tonc is a great intro to homebrew GBA programming.”
“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: Whirlwind Tour of ARM Assembly" [1] is what I'm repeatedly referring to while learning ARM.”
看全部 20 条 →
“If you like this article you might be interested in this article about the mode7 on the GBA:”
“In any case, if you want another overview article on ARM Assembly, try this: Tonc”
“TONC is really invaluable:”
“This site was heavily used for reference and guidance:”
“Tonc's old guide to ARM[1] I'll still send to people who want to learn ARM.”
“If anyone is interested in making a Gameboy game from scratch. Tonc is basically the resource that everyone is using to do that.”
“the three best actual tutorials for arm that i've found are Tonc (aimed at the gameboy advance)”
“There's a lovely short tutorial at Tonc as well (43 pages)”
“Tonc has some interesting data (here: Tonc) about performance of operations with 16 bit vs 32 bit variables”
“TONC GBA Programming Principles”
“Example from Tonc:”
“The GameBoy Advance is reasonably well-documented[0]”
“No, you can directly rasterize to the screen buffer:”
“The Game Boy Advance is a fun console to program for.”