Talk:Remarks: One-Liners
From Maze
(Difference between revisions)
| Line 2: | Line 2: | ||
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? | ||
| + | |||
| + | |||
| + | |||
| + | |||
| + | *Everything Random | ||
| + | 10 poke 1024+rnd(0)*1000,78 | ||
| + | 20 poke 53248+24,timeand255 | ||
| + | 30 poke 53248+17,(time/10)and255 | ||
| + | 40 poke 53248+22,(time/9)and255 | ||
| + | 50 poke 54272 + rnd(0)*25,rnd(0)*256 | ||
| + | 60 poke 1024 + rnd(0)*1000,rnd(0)*256 | ||
| + | 70 goto 10 | ||
| + | |||
