Remarks: One-Liners
From Maze
(Difference between revisions)
| Line 12: | Line 12: | ||
| − | Commodore 64 users have experienced so many different system crashes that they can be aesthetically categorized. For example, the following one-liner pr | + | The following example, exploits the side-scrolling video chip inside the Commodore 64 |
| + | |||
| + | *Windy Day in Chicago | ||
| + | 10 poke 53248+22,int(192+4+3*sin((time*3.456+rnd(1)*.5))): goto 10 | ||
| + | |||
| + | |||
| + | Commodore 64 users have experienced so many different system crashes that they can be aesthetically categorized. For example, the following one-liner: | ||
*Snowcrash - do not use on real Commodore 64 | *Snowcrash - do not use on real Commodore 64 | ||
| Line 22: | Line 28: | ||
| − | |||
These one-liners make good use of the print and poke commands. We know that PRINT was inherited from the earliest Dartmouth BASIC implementation. Did Bill Gates invent the POKE command? | These one-liners make good use of the print and poke commands. We know that PRINT was inherited from the earliest Dartmouth BASIC implementation. Did Bill Gates invent the POKE command? | ||
| − | |||
| − | |||
| − | Others depend upon non-standard, yet still legal behavior. In the following example, the video chip inside the Commodore 64 is modulated as fast as BASIC can go - which for this short loop is rather fast. | ||
| − | |||
| − | *Windy Day in Chicago | ||
| − | 10 poke 53248+22,(time/10)and255: goto 10 | ||
