Bill Garber wrote: > This is not a joke. I have all day. What, are you bored? Here's one of my favorite old ditties: CALL -151 300:8D 30 C0 EA N 304<303.360M 360:4C 00 03 300G Also, you can add this shell: 10 HOME 20 PRINT "Press Any Key To Play A Game..." 30 GET A$ 40 CALL 768 This used to work GREAT in stores... ;-) "Bill Bach" wrote in message news:3FEF00D1.2CB14F86@cncdsl.com... : Here's one of my favorite old ditties: : CALL -151 : 300:8D 30 C0 EA N 304<303.360M : 360:4C 00 03 : 300G This can be done better like this: 300:8D 30 C0 ;start speaker 303:A0 C0 ;load Y register 305:EA ;nop instruction (padding) 306:C8 ;Increment Y register 307:D0 FC ;done?, no, jump to $0305 309:4C 00 03 ;loop back to start This takes up much less memory and you can also change location $0304 to raise or lower the tone. Bill @ GarberStreet Enterprizez };-) Web Site - http://garberstreet.netfirms.com Email - willy4SPAM6pa@comXcast.net Remove - SPAM and X to contact me --- This email ain't infected, dude! Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.544 / Virus Database: 338 - Release Date: 11/26/03 Bill Garber wrote: >"Michael J. Mahon" wrote in message >news:20031229190708.13604.00001773@mb-m10.aol.com... >: Bill Garber wrote: >: >: >"Bill Bach" wrote in message >: >news:3FEF00D1.2CB14F86@cncdsl.com... >: > >: >: Here's one of my favorite old ditties: >: >: CALL -151 >: >: 300:8D 30 C0 EA N 304<303.360M >: >: 360:4C 00 03 >: >: 300G >: > >: >This can be done better like this: >: > >: >300:8D 30 C0 ;start speaker >: >303:A0 C0 ;load Y register >: >305:EA ;nop instruction (padding) >: >306:C8 ;Increment Y register >: >307:D0 FC ;done?, no, jump to $0305 >: >309:4C 00 03 ;loop back to start >: > >: >This takes up much less memory and >: >you can also change location $0304 >: >to raise or lower the tone. >: >: True, but the NOP is not needed. Each INY/BNE takes >: 5 cycles, which is pretty easy to calculate. > >The NOP is needed. I tried it without it, and >nothing came from the speaker at all. Try it again. The branch address will need to be adjusted to branch to the INY. It will work fine. A NOP never does anything but waste two cycles. -michael Check out amazing quality sound for 8-bit Apples on my Home page: http://members.aol.com/MJMahon/