Whole-known-network
<p>I'm staring at this code going "if it was less 2am, I could understand this math"</p>
<p>interesting: the same function is called to fade a palette TO black and to fade a palette FROM black</p><p>I wonder if it's specialized to just be palette to black and vice versa, or if it does arbitrary fades between two palettes?</p>
<p>Star Fox 64 is getting a Native PC port from the devs of Ocarina Of Time and Zelda Majoras Mask ports <a href="https://www.gamingonlinux.com/2024/11/star-fox-64-is-getting-a-native-pc-port-from-the-devs-of-ocarina-of-time-and-zelda-majoras-mask-ports/" target="_blank" rel="nofollow noopener noreferrer" translate="no"><span class="invisible">https://www.</span><span class="ellipsis">gamingonlinux.com/2024/11/star</span><span class="invisible">-fox-64-is-getting-a-native-pc-port-from-the-devs-of-ocarina-of-time-and-zelda-majoras-mask-ports/</span></a></p><p><a href="https://mastodon.social/tags/Linux" class="mention hashtag" rel="tag">#<span>Linux</span></a> <a href="https://mastodon.social/tags/LinuxGaming" class="mention hashtag" rel="tag">#<span>LinuxGaming</span></a> <a href="https://mastodon.social/tags/PCGaming" class="mention hashtag" rel="tag">#<span>PCGaming</span></a></p>
<p>this set_palette code got loaded into the segment 0BBC, one of the only 16-bit DOS segments marked red in shinigami eyes</p>
<p>(approximately 1536 times)</p>
<p>or maybe not? it's too 2am to tell.</p><p>ANYWAY I'm currently debugging through a function that's 256 palette entry uploads and my debugger has no "run until return" function so I have to manually hit next instruction SO MANY TIMES</p>
<p>ahh, nope! I misidentified it.<br />the second parameter on set_palette is how many frames to set it for. <br />The same palette gets set. </p><p>it vsyncs every time so this is a set_palette that's also a timing function</p>
<p><span class="h-card" translate="no"><a href="https://mastodon.social/@gamingonlinux" class="u-url mention">@<span>gamingonlinux</span></a></span> </p><p>Oh, this gets my brain accelerating at a pace I am not comfortable with... 🤣</p>
<p>"hey ghidra what calls set_palette?"</p><p>"I don't know! you're in 16bit segmented mode! pointers are MEANINGLESS</p>