Derek Smithies wrote:

The question:
 How much spaghetti can you get into 8k of ram?

LOTS.
given that the average instruction length is (guess) 2 bytes, you have 3000 lines of code.
(some memory is reserved for the character shapes etc, and you have a copy of the system code for generating graphics, reading keyboard etc.).


However, as any assembler programmer knows, if it is spaghetti, it is diabollically hard to get going and maintain.

In C64 (6502) assembly, I got into the wretched practice of using self-modifying machine code. That's even worse than goto spaghetti, especially when they are both combined (as they usually were).


Cheers,
Carl.

Reply via email to