2
<p>I&#39;m an idiot, this isn&#39;t a driver check... it&#39;s an argv check! </p><p>you can pass &quot;ega&quot; or &quot;vga&quot; or whatever to carmen.exe to select those types.</p>
<p>stdsnd is pc speaker, <br />adlib is adlib, covox is the speech thing, gblast is game blaster, most likely, ibmg is... I&#39;m not sure. The PS-1 Audio card?</p><p>sblash is soundblaster and tandy is tandy 3-voice</p>
<p>Anyway it seems it doesn&#39;t have a VideoDetect function, it&#39;s a DriverDetect function, since it&#39;s used for sound too.</p><p>First it goes through the video drivers in the following order:<br />VGA, TGA, EGA, HGA, HERC, and CGA. <br />Then it goes into the audio drivers:</p><p>stdsnd, adlib, covox, gblast, ibmg, sblast, tandy.</p>
<p>similar things in the test.com file. I moved stuff around in the memory map and it&#39;s not erroring now. I&#39;ve probably created endless glitches elsewhere though</p>
<p><span class="h-card" translate="no"><a href="https://mastodon.social/@film_girl" class="u-url mention">@<span>film_girl</span></a></span> Whoa! Congrats. Sounds like a lot of fun.</p>
<p>I might have to make a NASM test case. This could be Ghidra fucking up at decoding this one instruction</p>
<p>We need more JOMO. </p><p><a href="https://chow.fan/tags/jomo" class="mention hashtag" rel="tag">#<span>jomo</span></a> <a href="https://chow.fan/tags/joy" class="mention hashtag" rel="tag">#<span>joy</span></a> <a href="https://chow.fan/tags/happiness" class="mention hashtag" rel="tag">#<span>happiness</span></a> <a href="https://chow.fan/tags/content" class="mention hashtag" rel="tag">#<span>content</span></a> <a href="https://chow.fan/tags/selfCare" class="mention hashtag" rel="tag">#<span>selfCare</span></a></p>
Attached image 0
<p>I think this saves one byte?<br />a call FAR absolute would be 5 bytes for the call, whereas push CS + call NEAR is 3+1 bytes</p>
<p>eww. They&#39;re using the NEAR version of CALL to call a FAR procedure. </p><p>You might say &quot;wait, won&#39;t that break when it tries to do RETF?&quot; and yes, it would, unless they manually do PUSH CS before they call it!</p>