Inline Assembly Dangers

The author details their troubleshooting journey with the PS2 SDK, encountering issues like TLB crashes and graphics glitches after ps2link resets. They address problems with libcglue timezone startup code and incorrect framebuffer allocation. By delving into assembly code, they discover that missing newlines in the code caused critical portions to be commented out, resulting in unreliable PS2 resets. The author’s innovative approach to problem-solving, like adding stubs to fix bugs and writing tests to reproduce errors, showcases their dedication to finding solutions. Overall, their detailed analysis offers valuable insights for fellow PS2 developers. A surprising revelation was the vital role of newlines in assembly code, fixing long-standing issues and ensuring reliable PS2 resets.

https://fobes.dev/general/2024/02/29/inline-assembly-dangers.html

To top