The Commodore 64

From Maze

(Difference between revisions)
Jump to: navigation, search
(→Layers of Code -> Getting Closer to the Hardware)
Line 220:Line 220:
The output of the assembly program is essentially identical to 10 Print (it runs a bit faster, because the microprocessor is running machine instructions directly, rather than interpreting them first as BASIC commands and functions. But the program that generates that output is really no more or less lengthy or complex than is the BASIC program. When measured in bytes, the assembly program is even shorter than its BASIC cousin (22 bytes for the assembly program, compared to 36 bytes, or characters, for the BASIC program). While the assembly program is clearly more esoteric and less human readable than the BASIC one, its implementation teaches us that the abstraction that makes the emergent elegance of 10 Print's output possible in such a small set of instructions is not a feature of the BASIC interpreter, but of the underlying hardware itself.
The output of the assembly program is essentially identical to 10 Print (it runs a bit faster, because the microprocessor is running machine instructions directly, rather than interpreting them first as BASIC commands and functions. But the program that generates that output is really no more or less lengthy or complex than is the BASIC program. When measured in bytes, the assembly program is even shorter than its BASIC cousin (22 bytes for the assembly program, compared to 36 bytes, or characters, for the BASIC program). While the assembly program is clearly more esoteric and less human readable than the BASIC one, its implementation teaches us that the abstraction that makes the emergent elegance of 10 Print's output possible in such a small set of instructions is not a feature of the BASIC interpreter, but of the underlying hardware itself.
 +
== Conclusion ==
 +
 +
Learning Through Play
 +
-changing probabilities
 +
 +
Hidden Code
 +
<li>Truncation</li>
 +
<li>Colors</li>
 +
<li>Screen Grid</li>
 +
<li>Cursor</li>
 +
<li>Scrolling</li>
 +
 +
Getting Closer to the Hardware
 +
-what is really going on inside?
 +
 +
Finding the Assumptions
 +
 +
== Notes ==
== Notes ==

Revision as of 17:16, 16 July 2011

View this revision of The Commodore 64.

Personal tools