CPU Temperature Shenanigans - Printable Version +- Mario Kart Wii Gecko Codes, Cheats, & Hacks (https://mariokartwii.com) +-- Forum: Hacks/Modding (https://mariokartwii.com/forumdisplay.php?fid=14) +--- Forum: Code Support / Help / Requests (https://mariokartwii.com/forumdisplay.php?fid=61) +--- Thread: CPU Temperature Shenanigans (/showthread.php?tid=1894) |
CPU Temperature Shenanigans - Vega - 09-15-2021 I'll try to keep this somewhat short w/o rambling. I wanted to make a code to read Broadway's CPU temp All 3 thermal registers are set to always be null in Broadway (they are on disabled on purpose, specifically stated so in the manual) Can only read Broadway CPU temp with separate device sending amps to the diode and reading the returned voltage Broadway Manual makes absolutely zero mention of a Thermal Interrupt routine But the Thermal Interrupt is present at 0x1700 The Interrupt is unused though from my limited tests Still somehow the Wii knows to shut itself off when I disable the Fan (via code) and the Wii gets too hot (40ish minutes on MKW TT mode) So anyway.... on the Gamecube console, all the Thermal Registers are used. Thus we can get the Gekko CPU temp. I have a GC but no cables! Anyway here is a snippet of source to read Gekko's temp. It "works" on Dolphin, meaning when I place in fake bit values for the read-only bits, the code responds correctly to values of those read-only bits. Code Code: #Temperature Read code crap, works on Dolphin when you simulate fake THRM register bit responses on the read-only bits If somebody can use devkitpro to compile a GC-specific dol file for a program that simply printf's the temperature, that would be appreciated. |