Improving the Wii U's Wii Mode

本文为原文前 6,000 字符的节选翻译,完整内容请查看原文。

Monday, November 16, 2026 Improving the Wii U’s Wii Mode. One feature of the Wii U is the backwards compatibility with Wii games through Wii Mode, often referred to as vWii. In theory, this is a really nice way to enjoy Wii games on a modern TV, since the Wii U has HDMI output. Unfortunately, Wii Mode does not look great. Ironically, the output of an original Wii can look better. The two most prominent issues are the force-cropped output and color bleed issues.

2026年11月16日星期一,改进 Wii U 的 Wii 模式。Wii U 的一个功能是通过 Wii 模式(通常称为 vWii)实现对 Wii 游戏的向后兼容。理论上,由于 Wii U 具备 HDMI 输出,这是一种在现代电视上享受 Wii 游戏的绝佳方式。遗憾的是,Wii 模式的显示效果并不理想。讽刺的是,原版 Wii 的输出效果有时反而更好。其中最突出的两个问题是强制裁剪的输出画面和色彩溢出问题。

Scaled up image of the chroma bleed issue in Super Mario Sunshine and The Legend of Zelda: Skyward Sword. You can see the green tint on the left side of the characters. (Image credit: Rulumi) Reports of these issues go back to 2013[1], shortly after the Wii U was released, but a fix was never provided. In this blog post we’ll take a closer look at the technical architecture of Wii Mode graphics, how two simple typos in the firmware caused these issues, and what modern AMD GPUs have in common with the Wii U.

《超级马力欧阳光》和《塞尔达传说:天空之剑》中色度溢出问题的放大图像。你可以看到角色左侧的绿色色调。(图片来源:Rulumi)关于这些问题的报告最早可追溯到 2013 年[1],即 Wii U 发布后不久,但官方从未提供过修复方案。在这篇博文中,我们将深入探讨 Wii 模式图形的技术架构,了解固件中的两个简单拼写错误是如何导致这些问题的,以及现代 AMD GPU 与 Wii U 之间有何共同之处。

The DMCU. So who can we blame for these issues? One candidate is the DMCU. To get a quick overview of the DMCU, I’m quoting fail0verflow’s description from their 2014 Wii U blog post[2]: You may have noticed that good old VI (the display controller / Video Interface of ye olde GameCube and Wii) is gone. Huh? How does that work? Turns out they’re emulating that in software and translating its configuration to the R7xx’s CRTC registers. But where does this emulation software run? Sneaky: they added a special microcontroller to the Latte just for this purpose.

DMCU。那么,我们该把这些问题归咎于谁呢?DMCU 是一个候选对象。为了快速了解 DMCU,我引用 fail0verflow 在其 2014 年 Wii U 博文[2]中的描述:你可能已经注意到,老牌的 VI(GameCube 和 Wii 的显示控制器/视频接口)不见了。哈?这是怎么运作的?事实证明,他们是在软件中模拟了它,并将配置转换为 R7xx 的 CRTC 寄存器。但这个模拟软件在哪里运行呢?狡猾的是:他们为此专门在 Latte 中添加了一个特殊的微控制器。

The DMCU is a 68HC11 compatible 8-bit CPU whose sole purpose is to perform VI emulation. It has a frontend hardware shim that looks like VI to the Wii software, and behind the scenes it translates those registers to the Radeon’s, including upscaling configuration. cafe2wii loads the DMCU’s firmware (the DMCU doesn’t seem to be active in Wii U mode). It has its own dedicated RAM and access to both the faux-VI back side and the Radeon’s register area. […] To get to the bottom of these issues, I decided to reverse-engineer the firmware of the DMCU.

DMCU 是一个兼容 68HC11 的 8 位 CPU,其唯一目的是执行 VI 模拟。它有一个前端硬件垫片,在 Wii 软件看来它就是 VI,而在后台,它将这些寄存器转换为 Radeon 的寄存器,包括放大配置。cafe2wii 会加载 DMCU 的固件(DMCU 在 Wii U 模式下似乎并不活跃)。它拥有自己专用的 RAM,并能访问伪 VI 后端和 Radeon 的寄存器区域。[…] 为了查明这些问题的根源,我决定对 DMCU 的固件进行逆向工程。

The DMCU firmware is located in the Wii U’s storage and is loaded into the DMCU’s RAM before launching cafe2wii. Unfortunately, my favorite reverse-engineering tool Ghidra does not support the HC11, so in 2024 I ended up writing my own processor specification for it[3]. Luckily, Ghidra already supported the HCS08 and HCS12, which I could base my specification on. I then spent several days reverse-engineering the DMCU firmware. The firmware itself is relatively straightforward. The DMCU has an interface to access the 32-bit registers of the display controller.

DMCU 固件位于 Wii U 的存储器中,并在启动 cafe2wii 之前加载到 DMCU 的 RAM 中。遗憾的是,我最喜欢的逆向工程工具 Ghidra 不支持 HC11,因此在 2024 年,我最终为它编写了自己的处理器规范[3]。幸运的是,Ghidra 已经支持 HCS08 和 HCS12,我可以以此为基础编写规范。随后,我花了几天时间对 DMCU 固件进行了逆向工程。固件本身相对简单。DMCU 有一个访问显示控制器 32 位寄存器的接口。

The faux-VI hardware shim triggers interrupts in the DMCU firmware, which then configures the display controller accordingly. Reverse engineering the DMCU quickly reveals the reason for the cropped image. The DMCU configures the display controller’s viewport to simulate overscan. This crops off up to 16 pixels, which does not look great in several titles. Luckily, this is an easy fix; I can simply patch the bytes of the firmware directly to change the values written to the viewport registers.

伪 VI 硬件垫片会触发 DMCU 固件中的中断,然后由固件相应地配置显示控制器。对 DMCU 进行逆向工程很快揭示了图像被裁剪的原因。DMCU 配置了显示控制器的视口以模拟过扫描。这会裁剪掉多达 16 个像素,这在某些游戏中看起来效果并不好。幸运的是,这很容易修复;我可以直接修补固件的字节,以更改写入视口寄存器的值。

AMD’s DMCU. What fail0verflow didn’t know at the time, or at least didn’t mention, is that the DMCU is not a Wii U-specific microcontroller, but is found in other AMD GPUs too. A patch submitted by an AMD employee in 2018 to the amd-gfx mailing list[4] mentions the following: DMCU (Display Microcontroller Unit) is a GPU chip involved in eDP features like Adaptive Backlight Modulation and Panel Self Refresh. At least now we know what DMCU stands for. Could this really be the same chip design as used by the Wii U?

AMD 的 DMCU。fail0verflow 当时不知道,或者至少没有提到的是,DMCU 并不是 Wii U 专用的微控制器,它也存在于其他 AMD GPU 中。一名 AMD 员工在 2018 年向 amd-gfx 邮件列表[4]提交的补丁中提到了以下内容:DMCU(显示微控制器单元)是一种 GPU 芯片,涉及自适应背光调制和面板自刷新等 eDP 功能。至少现在我们知道 DMCU 代表什么了。这真的会是与 Wii U 所使用的相同芯片设计吗?

The linux-firmware repository has several DMCU binary blobs for different GPUs[5]. After downloading raven_dmcu.bin and navi12_dmcu.bin, I wrote a quick tool to parse the headers of the firmware blobs and extract the part that actually gets loaded into ERAM[6]. After loading the AMD Raven and Navi 12 DMCU firmware into Ghidra, I was able to confirm that the newer AMD GPUs still use an M68HC11-based DMCU. Even the display controller interface is almost identical to the one used on the Wii U.

linux-firmware 存储库中包含针对不同 GPU 的多个 DMCU 二进制文件[5]。在下载了 raven_dmcu.bin 和 navi12_dmcu.bin 后,我编写了一个简单的工具来解析固件文件的头部,并提取实际加载到 ERAM 中的部分[6]。将 AMD Raven 和 Navi 12 的 DMCU 固件加载到 Ghidra 后,我能够确认较新的 AMD GPU 仍然使用基于 M68HC11 的 DMCU。甚至其显示控制器接口也与 Wii U 上使用的几乎完全相同。

Decompiling the DMCU. Since I grew tired of having to apply byte patches to the existing DMCU firmware, I decided to create a C decompilation of the firmware. This would also allow me to get a deeper understanding of how everything works. At first, I needed a proper toolchain to compile my project. GCC used to have upstream support for the M68HC11 and M68HC12[7]. The last upstream release with support is GCC 3.3.5 from 2005. Later versions broke it before it was removed entirely.

反编译 DMCU。由于厌倦了必须对现有的 DMCU 固件应用字节补丁,我决定对固件进行 C 语言反编译。这也将使我能够更深入地了解一切是如何运作的。起初,我需要一个合适的工具链来编译我的项目。GCC 曾经在上游支持 M68HC11 和 M68HC12[7]。最后一个提供支持的上游版本是 2005 年的 GCC 3.3.5。后续版本在完全移除该支持之前就已经破坏了它。

I eventually stumbled across releases from 2006 on the personal website of Stéphane Carrez[8], the author of the original port. This leaves me with GCC 3.3.6 and binutils 2.15, which will have to do for now. To my surprise, I was able to byte-match entire functions by hand from the original Wii U DMCU firmware using this compiler. To help with matching I created a modified version of decomp.me with support for the previously mentioned compiler.

最终,我在原始移植作者 Stéphane Carrez 的个人网站[8]上偶然发现了 2006 年的版本。这让我可以使用 GCC 3.3.6 和 binutils 2.15,目前只能凑合着用。令我惊讶的是,我能够使用这个编译器手动实现与原始 Wii U DMCU 固件中整个函数的字节匹配。为了辅助匹配,我创建了一个修改版的 decomp.me,支持上述编译器。