News for hackers. Stuff that matters.
Re:A 6502 lisp compiler, sprite animation and the NES/Famicom by rbanffy on Saturday May 21, 2016 @08:18PM (#11746847)
As long as you properly comment your code (and explain the magic of $src+2/$dst+2), you'll be OK.

I've written a "window server" for the Apple II (7-pixel aligned, window stack you could only add and remove rectangles from the top) with about 1K of code. It was not that difficult to reason about, but I had a much younger brain at the time.

Re:A 6502 lisp compiler, sprite animation and the NES/Famicom by vidarh on Sunday May 22, 2016 @05:05AM (#11747866)
Yeah, "nobody" commented those things in many circles. You were expected to know the common self-modification idioms.

But on top of that, a lot of software on the C64 at least (I'd like to think this didn't apply to any "professional" software, but I suspect you'd find a lot of hairy stuff there too) was not written with a macro assembler but directly into a machine code monitor with no ability to store labels or comments.

In many cases you'd be lucky to have a sheet of handwritten notes about which addresses contained which code (and yes, that meant re-writing bits and pieces of code if you wanted to insert something new).

For my part I used a machine code monitor without labels etc. for several years before I got a proper macro assembler (Turbo Assembler) with a full screen editor.