tbehman87 wrote:
What does the operand 10 do in my example below? I've run the code through the visual6502.org simulator and I can't find the use for this operand. The instruction always just shifts the bits in the accumulator to the left one place no matter what number I have as the operand. I'm sure this is just a simple misunderstanding.
Example:
0A 10
My Resource:
https://sites.google.com/site/6502asemb ... on-set/aslAddressing Mode Example Explanation Example Opcode Bytes Cycles
Accumulator ASL #10 Arithmetic Shift Left (ASL) operation between $10 (Decimal 16) and the content of the Accumulator 0A 10 2
That site also has similar errors for LSR, ROL and ROR. Accumulator mode instructions are always single byte instructions, as the accumulator is the (implied) operand.
Frankly, I would not recommend most of these sites as resources for 65xx information, as they are frequently compiled by people who are not 6502 assembly language experts and often simply repeat errors published at other sites. Your best bet for information of this type is to come here for resources, and as Garth suggested, to get and read the programming manual published by WDC.