News for hackers. Stuff that matters.
Re:What is the coolest thing you can do in ten lines of code? by cschneid on Saturday December 31, 2011 @12:20AM (#3410226)
For people who didn't hack apple IIs, can you expand on what's going on there?
Re:What is the coolest thing you can do in ten lines of code? by mmphosis on Saturday December 31, 2011 @12:42AM (#3410263)
; enter the machine language monitor

  CALL -151
; toggle the speaker and load the accumulator with the "floating bus" value--the byte last read by the video refresh controlled by the video scanner.

  0300-   AD 30 C0   LDA $C030
; print the accumulator as a character

  0303-   20 ED FD   JSR $FDED
; repeat (loop by going to 0x300)

  0306-   4C 00 03   JMP $0300
; run it! (0x300 Go; just like G in your debugger)

  300G
Running this will display random characters and make noise.