27.01.2015 Views

titus-larsen-titus-1981-apple-interfacing

titus-larsen-titus-1981-apple-interfacing

titus-larsen-titus-1981-apple-interfacing

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

MCS6500<br />

INSTilUCTION SH-ALPHABETICAL SEQUENn<br />

ADC Add Memory to Accumulator with Carry<br />

AND 'AND Memory with Accumulator<br />

ASL Shift left One Bit (Memory or Accumulator)<br />

BCC Branch on Carry Clear<br />

BCS Branch on Carry Set<br />

BEQ Branch on Result Zero<br />

BIT Test Bits in Memory with Accumulator<br />

BMI Branch on Result Minus<br />

BNE Branch on Result not Zero<br />

BPL Branch on Result Plus<br />

BRK Force Break<br />

BVC Branch on Overflow Clear<br />

BVS Branch on Overflow Set<br />

PLA Pull Accumulator from Stack<br />

PLP Pull Processor Status from Stack<br />

ROL Rotate One Bit Left (Memory or Accumulator)<br />

ROR Rotate One Bit Right (Memory or Accumulator)<br />

RTI Return from Interrupt<br />

RTS Return from Subroutine<br />

SBC Subtract Memory from Accumulator with Borrow<br />

SEC Set Carry flag<br />

SEO Set Decimal Mode<br />

SEI Set Interrupt Disable Status<br />

ST A Store Accumulator in Memory<br />

STX Store Index X in Memory<br />

STY Store Index Y in Memory<br />

CLC Clear Carry Flag<br />

CLO Clear Decimal Mode<br />

CU Clear Interrupt Disable Bit<br />

Cl V Clear Overflow Flag<br />

CMP Compare Memory and Accumulator<br />

CPX Compare Memory and Index X<br />

CPY Compare Memory and Index Y<br />

TAX<br />

TAY<br />

TSX<br />

TXA<br />

TXS<br />

TY A<br />

Transfer Accumulator to Index X<br />

Transfer Accumulator to Index Y<br />

Transfer Stack Pointer to Index X<br />

Transfer Index X to Accumulator<br />

Transfer Index X to Stack Pointer<br />

Transfer Index Y to Accumulator<br />

DEC<br />

DEX<br />

DEY<br />

EOR<br />

INC<br />

INX<br />

INY<br />

JMP<br />

JSR<br />

LOA<br />

LOX<br />

LOY<br />

LSR<br />

Decrement Memory by One<br />

Decrement Index X by One<br />

Decrement Index Y by One<br />

'Exclusive-or Memory with Accumulator<br />

Increment Memory by One<br />

Increment Index by One<br />

Increment Index Y by One<br />

Jump to New Location<br />

Jump to New Location Saving Return Address<br />

Load Accumulator with Memory<br />

Load Index X with Memory<br />

Load Index Y with Memory<br />

Shift One Bit Right (Memory or Accumulator)<br />

ADDRESSING MODES<br />

Acrumuiator Addresski;g. This form of addressing is represented<br />

with a one-byte instructidn, implying an operation<br />

on the accumulator.<br />

Immediate Addressing. In immediate addressing, the<br />

operand is contained in the second byte of the instruction,<br />

with no further memory addressing required.<br />

Absolute Addressing. In absolute addressing, the second<br />

byte of the instruction specifies the eight low-order bits<br />

of the effective address while the third byte specifies<br />

the eight high-order bits. Thus, the absolute addressing<br />

mode allows access to the entire 6SK bytes of addressable<br />

memory.<br />

NOP No Operation<br />

ORA aR Memory with Accumulator<br />

PHA Push Accumulator on Stack<br />

PHP Push Proc.essor Status on Stack<br />

Zem aige Arlll'.h'essing. The zero page instructions allow<br />

for shorter code and execution times by olily fetching the<br />

second byte of the instruction and assuming a zero highaddress<br />

byte. Careful use of the zero page can result in<br />

significant increase in code efficiency.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!