[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Sound-makes only one click?



Jm (j_2001_m@dejanews.com) wrote:
: I have a program programming sound on my apple 2c. This is an exact
: transscript of what I typed.

: (turn on computer)
: (says "Check disk Drive")
: CTRL-RESET
: CALL -151
: (at monitor)
: !
: (at mini assembler)
: 8500:LDA C036
:  JMP 8500
: (blank line)
: 8500G

: Instead of getting some kind of tone, I just get a single click...then
: silence and blackness until I push ctrl-break then it beeps and goes
: back into basic like usual. What could be wrong here? I know there's
: nothing wrong with the hardware because the computer beeps, plays
: music, etc in games. thank you!

You're hitting the speaker too quickly to get a recognizable tone.

Try adding in a bunch of NOPs between the LDA $C036 and the JMP.

($C036..Is that right?  I thought I always used $C030...)

Of course, a better way to get the necessary delay would be...


!8500:LDA $C030
! LDX #$0A
! DEX
! BNE $8505 ;Assuming I counted right...jump to the line with the DEX
! JMP $8500
!
*8500G

See if that works...

--Dave Althoff, Jr. 
-- 
    /^\        _      *** We'll run it in the snow if we have to! ***
   /XXX\      /X\     /X\_      _     /X\__      _     _        _____  
  /XXXXX\    /XXX\  _/XXXX\_   /X\   /XXXXX\    /X\   /X\      /XXXXX
_/XXXXXXX\__/XXXXX\/XXXXXXXX\_/XXX\_/XXXXXXX\__/XXX\_/XXX\_/\_/XXXXXX