tschak909 Posted December 24, 2023 Share Posted December 24, 2023 Currently scraping through Defender looking for where the score is stored in RAM. Anyone have an idea? -Thom Quote Link to comment Share on other sites More sharing options...
phaeron Posted December 24, 2023 Share Posted December 24, 2023 Bit unusual, stored at $142F and $1430 as hybrid decimal/binary -- pairs of digits in binary 0-99, with the high two digits in $1430 and low two digits in $142F. To trace on screen, use the command: wx db($1430)*100+db($142f) The way I usually track these down is to set a memory breakpoint on whatever draws the score on screen and work backwards from there. Ctrl+Alt+click when stopped in the debugger will give you the display list and memory scan counter addresses of the line. 1 Quote Link to comment Share on other sites More sharing options...
tschak909 Posted December 24, 2023 Author Share Posted December 24, 2023 (edited) 37 minutes ago, phaeron said: Bit unusual, stored at $142F and $1430 as hybrid decimal/binary -- pairs of digits in binary 0-99, with the high two digits in $1430 and low two digits in $142F. To trace on screen, use the command: wx db($1430)*100+db($142f) The way I usually track these down is to set a memory breakpoint on whatever draws the score on screen and work backwards from there. Ctrl+Alt+click when stopped in the debugger will give you the display list and memory scan counter addresses of the line. Yup, I found it about 15 mins ago too. Very unusual, there are actually two more bytes. I'll whip up a routine tomorrow to convert this into screen codes, and then the High Score Enabled Defender will be ready! (as part of digging into this, I now see exactly why Defender's graphics performance is so good. Pre shifted tables galore.) (Also, oh sweet jesus, control-alt-click is useful!!!!) -Thom Edited December 24, 2023 by tschak909 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.