G65sc802 and g65sc816 instruction sets (in alphabetical order)
Hdw1978 provided
(Thanks very much for the second contribution made by hdw1978. -- Compilation studio)
---------------------------------------------------------------------------------
// The following commands, without special instructions, always use the memory value and the accumulators value (two-operand command), memory or accumulators value (
Single-operand command) as the operand.
ADC incoming bit addition
And 'and' operations
Asl shifts one digit to the left
Branch when bcc (BLT) has an inbound (PE = 0)
When BCS (BGE) is not carry (PE = 1), Branch
Branch when beq is equal (PZ = 1)
BIT Test
Branch When BMI result is reduced (Pn = 1)
Branch when BNE ominous (PZ = 0)
Branch when BPL result is added (Pn = 0)
Bra always Branch
BRK forced interruption
PCIe always long integer Branch
Branch when BVC does not overflow (Pv = 0)
Branch when BVS overflows (Pv = 1)
CLC clear carry flag
CLD clear decimal Mode
CLI clear the interrupt prohibition bit
CLV clear overflow flag
CMP (CPA) Comparison
Coprocessor
Cpx compares memory and X registers
CPY compares memory and Y registers
The DEC minus one operation can also be used for the DEA if it is a Accumulator
Dex register X minus one
Dey register Y minus one
EOR operations
Add an operation for Inc. If it is a accumulator, it can also be ina
Add register x
Add one to iny register y
JML long integer jump, force long jump time is the same as JML
JMP jump
Jsl long integer subprogram jump. JSR can also be used for long absolute addressing.
Load LDA memory value into the Accumulators
Ldx memory value loaded into Register x
Ldy memory value loading register y
LSR shifts one digit to the right
MVN reverse block movement
MVP is moving towards Block
NOP no operation
The ora memory value is the same as the accumulators value or
Pea pressure stack (direct addressing)
Pei pressure stack (indirect addressing)
Per pressure stack (PC register)
PHA pressure stack (accumulators)
PHB pressure stack (data segment register)
PhD pressure stack (direct register)
Phk pressure stack (program segment register)
PHP pressure stack (processor status value)
Phx pressure stack (x register)
Phy pressure stack (Y register)
PLA outbound Stack)
PLB outbound stack (to data segment register)
PLD outbound stack (direct register)
PLP out stack (to processor status)
PLX output stack (to X register)
Ply output stack (to y register)
Rep reset status bit
Rol loop shifts left
Ror loop shifts right
Return from interruption
RTL return from subroutine (long integer)
Returned from the subroutine
SBC with borrow Subtraction
SEC sets carry flag
Sed sets the decimal Mode
Sei sets the interruption prohibition status
SEP sets the processor status bit
Stas accumulators are stored in memory.
STP stop clock
STX registers are stored in memory.
Sty register value stored in memory
Add zero to memory by using the injection method.
The tax accumulator value is transferred to the X register.
Tay accumulator value transmitted to y register
The value of the TCM (TAD) accumulators is transferred to the direct register.
TCS (TAS) accumulators are transferred to the stack pointer register.
TDC (TDA) directly sends register values to the Accumulators
TRB test Reset
TSB test and set bit
TSC (TSA) Stack pointer register value sent to the Accumulators
TSX Stack pointer register value sent to X register
TXA x registers are sent to the accumulators.
TXS x register value sent to stack pointer register
The txy x register value is sent to the Y register.
The tya y register value is sent to the accumulators.
The tyx y register value is sent to the X register
Wai waits for interruption
Xba (SWA) Switching accumulators medium to high 8-bit and low 8-bit
Xce switch carry bit and analog bit
<End>