6502汇编指令集

6502汇编指令集
2007年10月15日 星期一 18:26

指令集
ADC Add Memory to Accumulator with Carry 使用Carry位,把内存值与累加器相加
AND "AND" Memory with Accumulator 内存值与累加器进行“与”运算
ASL Shift Left One Bit (Memory or Accumulator) 左移一个位(内存或者累加器)

BCC Branch on Carry Clear Carry位为空的时候跳转
BCS Branch on Carry Set Carry位被设置时跳转
BEQ Branch on Result Zero 结果为零的时候跳转
BIT Test Bits in Memory with Accumulator 在内存中与累加器测试位
BMI Branch on Result Minus 结果为负的时候跳转
BNE Branch on Result not Zero 结果不为零时候跳转
BPL Branch on Result Plus 结果为正的时候跳转
BRK Force Break 强制中断
BVC Branch on Overflow Clear 溢出位为空的时候跳转
BVS Branch on Overflow Set 溢出位被设置的时候跳转

CLC Clear Carry Flag 清空Carry标志(位)
CLD Clear Decimal Mode 清空十进制模式
CLI Clear interrupt Disable Bit 清空禁止中断位
CLV Clear Overflow Flag 清空溢出标志
CMP Compare Memory and Accumulator 内存和累加器比较
CPX Compare Memory and Index X 内存和X寄存器比较
CPY Compare Memory and Index Y 内存和Y寄存器比较

DEC Decrement Memory by One 内存值步减
DEX Decrement Index X by One X寄存器步减
DEY Decrement Index Y by One Y寄存器步减

EOR "Exclusive-Or" Memory with Accumulator 内存和累加器“异或”

INC Increment Memory by One 内存值步增
INX Increment Index X by One X寄存器步增
INY Increment Index Y by One Y寄存器步增

JMP Jump to New Location 跳转到新的位置

JSR 跳转到新位置并保存原来地址

LDA Load Accumulator with Memory用内存值载入累加器
LDX Load Index X with Memory 用内存值载入X寄存器
LDY Load Index Y with Memory 用内存值载入Y寄存器
LSR Shift Right One Bit (Memory or Accumulator) 右移一位(内存或者累加器)
NOP No Operation 无操作

ORA "OR" Memory with Accumulator 内存值和累加器“或”运算

PHA Push Accumulator on Stack 把累加器的值压入栈
PHP Push Processor Status on Stack 把处理器状态压入栈
PLA Pull Accumulator from Stack 把栈顶值弹出到累加器中
PLP Pull Processor Status from Stack 把栈顶值弹出到处理器状态寄存器

ROL Rotate One Bit Left (Memory or Accumulator) 循环左移一位(内存或者累加器)
ROR Rotate One Bit Right (Memory or Accumulator) 循环右移一位(内存或者累加器)
RTI Return from Interrupt 从中断返回
RTS Return from Subroutine 从子程序返回

SBC Subtract Memory from Accumulator with Borrow 带借位的从累加器中减去内存值
SEC Set Carry Flag 设置Carry标志
SED Set Decimal Mode 设置十进制模式
SEI Set Interrupt Disable Status 设置禁止中断状态
STA Store Accumulator in Memory 把累加器的值存入内存
STX Store Index X in Memory 把X寄存器的值

存入内存
STY Store Index Y in Memory 把Y寄存器的值存入内存

TAX Transfer Accumulator to Index X 把累加器的值转入X寄存器
TAY Transfer Accumulator to Index Y 把累加器的值转入Y寄存器
TSX Transfer Stack Pointer to Index X 把栈顶指针转入X寄存器
TXA Transfer Index X to Accumulator 把X寄存器的值转入累加器
TXS Transfer Index X to Stack Pointer 把X寄存器的值转入栈顶指针寄存器(S)
TYA Transfer Index Y to Accumulator 把Y寄存器的值转入累加器

相关文档
最新文档