[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Steal RAM -- Question
Peeks and Pokes with Applesoft BASIC is not the reason I am bring this
up. I understand the cycles it takes to execute each instruction.
When I read "strobe" I understand that to be a single access to
memory-mapped IO location like $C030 toggling the speaker. And you are
right, rather than CMOS 6502, instead I need to say 65C02. The 65C02
chip is in the Apple IIe, and I don't know as much about it as I know
about the 6502 found in the Apple II and Apple II+.
In my experience:
LDA $C030 ; toggles the speaker once
STA $C030 ; toggles the speaker twice! (very quickly) using a 6502.
(I don't know what a 65C02 does in this instance, as I don't have one
to test this out on.)
; this example makes a sound
300:A2 80 CA D0 FD AD 30 C0 EA EA EA AD 0 C0 10 F0 2C 10 C0 60
300G
; press a key to quit
; in this patched version, on a real Apple II or Apple II+, the sound
will be quieter
; I tested this with KEGSMAC v0.85 and the sound is not quieter.
305:8D
300G
; in this patched version the sound will be quiet
305:AD 30 C0 AD 30 C0
300G
And, our discussion is an example of why the Wikipedia concept does
works. ;-) If Einstein got it wrong, who is going to question him?