A Night of Programming
Here’s what happened
2315hrs - arrive at sis serene’s place
0100hrs - random number generator works
0120hrs - Uncle david starts sleeping on couch
0300hrs - manage to modulus the random number (FINALY!!)
0330hrs - Sis serene gives up after finishing 2 out of infinity programs and starts packing up to go to sleep
0400hrs - After one hour of trying (read, banging head on wall), sis serene tells me to use the debugger and go thru each line of code one by one. She goes upstairs to sleep, uncle david gets up and follows her upstairs
0410hrs - After using the debugger for 10 min, I managed to find out that 2 registers were kinda clashing and passing rubbish values to itself. I do a quick change and managed to pass the modded number into the macro which makes the letters drop randomly! Sigh.. they don’t call it turbo debugger for nothing. Things would have gone much faster if i used it in the first place.
0543hrs - Manage to make the right letters fall from the right place.
0642hrs - Still stuck.. #&@#&^&!!!!!
0714hrs - Sigh.. I can’t get it to minus lives for letting the letter hit the bottom.
0752hrs - Breakfast with yurika, yijun, and eugenia in one hour! sigh… how to do finish! Anyway, got it to count the lives, discovered an unused register and stuffed the value there instead of trying to push it into the stack. I wonder why the value keeps changing even when its in the stack.
Tags: assembly, programming, school