Whole-known-network
<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>
<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're using the NEAR version of CALL to call a FAR procedure. </p><p>You might say "wait, won't that break when it tries to do RETF?" and yes, it would, unless they manually do PUSH CS before they call it!</p>
<p>Ghidra even recognizes there's a function at 1fb7:000A! It's called VideoDetect</p>
<p>the +3 is because E8 5D F7 is 3 bytes, and it goes off the address of the next instruction</p>
<p>So I've got code at 17DA:08AA, which is E8 5D F7. DOSBox decodes that as CALL 000A.</p><p>Manually decoding it myself, it should be a relative jump, and it's a jump to $-0x8a3. following the jump it ends up at 17DA:000A.</p><p>BUT GHIDRA thinks this code is at 1fb7:08aa, and it decodes it as call SUB_2000_fb7a, which doesn't exist. </p><p>I'm not sure how (0x08aa+3)-0x8a3 = 2000:fb7a. Something weird is going on. Why is the number BIGGER?</p>
<p><span class="h-card" translate="no"><a href="https://mastodon.social/@whitequark" class="u-url mention">@<span>whitequark</span></a></span> i recently found myself trying to figure out how to use this thing, thinking that the docs were bad-to-nonexistent, so "maybe I should just try to read the code" to figure it out.</p>
<p>I did not realize they implemented a file browser in this program! I only found it by hiding all the DAT files from the EXE, to see if it'd ask me to put in floppies in.</p>
<p><span class="h-card" translate="no"><a href="https://mastodon.social/@danielpunkass" class="u-url mention">@<span>danielpunkass</span></a></span> thanks Daniel!!</p>