API Reference ex6502 v0.1.0
Modules
An emulation of the 6502 CPU as produced by WDC (WDC 65C02).
Handles executing opcodes.
Add the value of memory and carry to accumulator storing result in accumulator
Transfer to the adder and perform a bit-by-bit AND operation
Shift the accumlator or address 1 bit left
Take a conditional branch if the carry bit is reset (clear/0)
Take a conditional branch if the carry bit is set (1)
Branch on result zero.
Perform and AND between the location and the accumulator
Branch on result minus
Branch on result not zero
Branch on result plus
Unconditional branch
Break
Branch on overflow clear
Branch on overflow set
Clear carry flag
Clear decimal mode flag
Clear interrupt disable flag
Clear overflow flag
Subtracts the contents of memory from the contents of the accumulator, affecting flags
Subtracts the contents of the x register from the memory only affecting flags
Subtracts the contents of the Y register from the memory only affecting flags
Subtract 1, in two's complement, from the memory location
Subtract 1, in two's complement, from the X register
Subtract 1, in two's complement, from the Y register
Perform an exclusive OR (XOR) operation with the accumulator eor the location
Add 1 to the memory location
Add 1 to the X register, not affecting carry
Add 1 to the Y register, not affecting carry
Change program counter to memory value
Transfer control of the PC to a subroutine location
Load accumulator (register a) from memory
Load register x from memory
Load register y from memory
Shift the accumlator or address 1 bit right
No operation
Perform an OR operation with the accumulator or a the location
Transfer the value of the accumulator to the stack
Transfer the value of the processor status register to the stack
Transfer the value of the X register to the stack
Transfer the value of the Y register to the stack
Transfer the value from the current stack pointer to the accumulator
Transfer the value from the stack to the processor status register
Transfer the value from the stack to the X register
Transfer the value from the stack to the Y register
Rotate the accumlator or address 1 bit left
Rotate the accumlator or address 1 bit right
Return from interrup
Return from subroutine
Subtract the value of memory and borrow (carry) from accumulator storing result in accumulator
Set carry flag
Set decimal mode
Set interrupt disable
Transfer the value in the X register to memory
Transfer the value in the Y register to memory
Transfer the value 0 to memory
Transfer the value of the a register to the x register
Transfer the value of the a register to the y register
Test and reset bits in memory, using the accumulator as a test and reset mask.
Test and sets bits in memory, using the accumulator as a test and set mask.
Transfer the value of the stack pointer to the x register
Transfer the value of the x register to the accumulator
Transfer the value of the x register to the stack pointer
Transfer the value of the Y register to the accumulator