Category Archives: Programming
IDA Script: Fixing overlay jumps
In the DOS Gold Box games they use overlays to manage the ‘more code than memory’ problem of the DOS environment. So when this code here (seg000:00F6) calls the sub_21979 it goes via a sub function sub_10180 Which jumps to … Continue reading
Programming Challenges: 110206 Erdos Numbers
I had first tired the Erdos Numbers problem back in 2004, and at the time I was having some odd problems with wrong answers, so ended up submitting the problem 160 times, using while(true); blocks to find which Scenario was … Continue reading
Programming Challenges: 110208 Yahtzee
I completed the Yahtzee problem today, after a couple of days effort. I first double checked my previous 2004 solution’s scoring function, there were a few gems in there that I had to reprove, like how the full house was … Continue reading
Programming Challenges: 110701 Light. More light
Today’s problem was Light. More Light, and I knew the naive solution would timed-out, and no surprise when it did. I then looked to reduce the number of calculations, and that also timed-out. The end solution was to see the … Continue reading
Programming Challenges: Compilation error
If you get a Compilation Error message when you submit a problem solution, go to the Statistics page, and then open your latest submission to see the actual error messages. Annoying, but better than guessing what’s wrong.