tag:blogger.com,1999:blog-17487316.post8549677415621745598..comments2024-01-13T09:14:12.131+00:00Comments on The life of a Games Programmer: XeO3: Bug spray....Mikehttp://www.blogger.com/profile/15958965170878448339noreply@blogger.comBlogger3125tag:blogger.com,1999:blog-17487316.post-37245587887288842742006-12-16T12:48:00.000+00:002006-12-16T12:48:00.000+00:00If you just have to find more memory then runtime ...If you just <b>have</b> to find more memory then runtime conversion is good candidate. At that point there shouldn't be too many text changes any more, so source readability can be degraded slightly.<br /><br />Back to debugging related issues... I know it's good practice to put those comments around kludgy routines and data, but I wonder why I forget that when coding. Maybe I trust my memory too much :) I've put IF clauses around tricky parts to halt assembly if table/code crosses page boundary, but sometimes that's not enough to catch the most obscure tricks.<br /><br />One of the most "interesting" things I've seen was "ld de,$a028; inc d" inside Z88 operating system. It not only ends up with correct value in DE, but also clears Z flags which is checked much later after it was pushed/pulled through stack . Puzzled me several weeks, that one...<br /><br />-- <br />TNTAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-17487316.post-2873956549848060172006-12-15T21:00:00.000+00:002006-12-15T21:00:00.000+00:00Its okay, its one of those bugs you only get once ...Its okay, its one of those bugs you only get once until you put big comments around it :)<br /><br />I only ever do those big HEX things if theres serious speed-ups to be had.Mikehttps://www.blogger.com/profile/15958965170878448339noreply@blogger.comtag:blogger.com,1999:blog-17487316.post-44859369289999480042006-12-15T20:54:00.000+00:002006-12-15T20:54:00.000+00:00Next time you run out of memory remember your ASCI...Next time you run out of memory remember your ASCII->font table and code. That may require using ugly equates like CHAR_A and non-readable text data at PC, but removes need for translation inside the game. Paradroid Redux is full of strings like<br /><br />GameOver: HEX 40 0A 42 0E 30 18 1F 0E 1B B0<br /><br /><br />-- <br />TNTAnonymousnoreply@blogger.com