just to be sure: in the instruction ASL A (ASL accumulator) the operation is:
1) A = ASL accumulator
...or just
2) ASL accumulator
...???
the result of the ASL operation is stored into the accumulator? or the ASL instruction is just used to set/reset flags?
a really newbie question...
BigEd wrote:
Result is stored in the Accumulator. Some assemblers allow 'ASL' as a legal opcode, some 'ASL A'
Cheers
Ed
Cheers
Ed
-
leeeeee
- In Memoriam
- Posts: 347
- Joined: 30 Aug 2002
- Location: UK
- Contact:
- GARTHWILSON
- Forum Moderator
- Posts: 8775
- Joined: 30 Aug 2002
- Location: Southern California
- Contact:
Only ASL A leaves the result in the accumulator. ASL done to a memory address does not affect the accumulator. If you don't want it to affect the memory address, then first do LDA then ASL A.
There's a ton of great information in the WDC programming manual downloadable at their website at http://www.westerndesigncenter.com/wdc/ ... manual.pdf .
There's a ton of great information in the WDC programming manual downloadable at their website at http://www.westerndesigncenter.com/wdc/ ... manual.pdf .
- GARTHWILSON
- Forum Moderator
- Posts: 8775
- Joined: 30 Aug 2002
- Location: Southern California
- Contact: