!lm12
!rm75
Quickie No. 6.....An Eleven-Byte Alarm.....Bob Sander-Cederlof

Here is a little run-anywhere program sure to wake up the neighborhood dogs.  Put it in your program as a last resort to get attention, because the only escape is by RESET or power-off.

!lm+5
1000 ALARM  INY        INCREMENT DELAY TIME
1010        TYA
1020        TAX        DELAY COUNT TO X
1030        LDA $C030  TOGGLE SPEAKER
1040 .1     DEX        DELAY LOOP
1050        BNE .1
1060        BEQ ALARM  MORE NOISE, FOREVER....
!lm-5

That's it, only eleven bytes!  For a slightly different effect, change the "DEX" instruction in line 1030 to "INX".
