redwraith wrote:
There's only one problem. It took the CPU 4 Clock cycles to perform it when it should only take 3.
I designed a 6502 in TTL. If I have a lot of time left, I'll build in real one day :)
Knowing that the ALU has to be used, I copy the contents of register A in the temporary latch for input A (as you call it) during the very first "CLK = '1'". During step 2 "CLK2 = '1'" the data is fed immediatly to the ALU. The moment CLK2 becomes '0', the result is stored in A again. You see, only three steps needed.
_________________
Code:
___
/ __|__
/ / |_/ Groetjes, Ruud
\ \__|_\
\___| URL: www.baltissen.org