Difference between revisions of "K65 Instructions"
(Created page with "{| ! Opcode ! K65 Syntax ! Description |- |ADC |a+# |add with carry |- |AND |a&# |and (with accumulator) |- |ASL |#<< |arithmetic shift left |- BCC .... branch on carry clear...") |
(No difference)
|
Revision as of 00:01, 11 December 2014
Opcode | K65 Syntax | Description |
---|---|---|
ADC | a+# | add with carry |
AND | a&# | and (with accumulator) |
ASL | #<< | arithmetic shift left |
BCS .... branch on carry set <{...} | ||
BEQ .... branch on equal (zero set) =={...} | ||
BIT .... bit test a?# | ||
BMI .... branch on minus (negative set) <0{...} | ||
BNE .... branch on not equal (zero clear) !={...} | ||
BPL .... branch on plus (negative clear) >=0{...} | ||
BRK .... interrupt brk | ||
BVC .... branch on overflow clear >>={...} | ||
BVS .... branch on overflow set <<={...} | ||
CLC .... clear carry c- | ||
CLD .... clear decimal d- | ||
CLI .... clear interrupt disable i- | ||
CLV .... clear overflow o-
CMP .... compare (with accumulator) a?# CPX .... compare with X a?x CPY .... compare with Y a?y DEC .... decrement #-- DEX .... decrement X x-- DEY .... decrement Y y-- EOR .... exclusive or (with accumulator) a^# INC .... increment #++ INX .... increment X x++ INY .... increment Y y++ JMP .... jump goto ## JSR .... jump subroutine goto (##) LDA .... load accumulator a=# LDX .... load X x=# LDY .... load Y y=# LSR .... logical shift right #>> NOP .... no operation nop ORA .... or with accumulator a|# PHA .... push accumulator a! PHP .... push processor status (SR) sr! PLA .... pull accumulator a? PLP .... pull processor status (SR) sr? ROL .... rotate left #<<< ROR .... rotate right #>>> RTI .... return from interrupt rti RTS .... return from subroutine ret rts SBC .... subtract with carry a-# SEC .... set carry c+ SED .... set decimal d+ SEI .... set interrupt disable i- STA .... store accumulator #=a STX .... store X #=x STY .... store Y #=y TAX .... transfer accumulator to X x=a TAY .... transfer accumulator to Y y=a TSX .... transfer stack pointer to X x=s TXA .... transfer X to accumulator a=x TXS .... transfer X to stack pointer s=x TYA .... transfer Y to accumulator a=y | ||
Orange | 10 | 7.00 |
Bread | 4 | 3.00 |
Butter | 1 | 5.00 |
Total | 15.00 |