A small website
Accumulator based 8-bit Processor By Brice Vadnais —
nop - No Operation
nop - Stalls the Processor for one clock cycleadd_acc - Add Accumulator A & B together and store result in Accumulator C
addsub_acc - Subtract Accumulator A from B and store result in Accumulator C
subhlt - Halt operation of the processor
hltinc_a - Increment Accumulator A
inca - Increases Accumulator A by 1inc_b - Increment Accumulator B
incb - Increases Accumulator B by 1dec_a - Decrement Accumulator A
deca - Decreases Accumulator A by 1dec_b - Decrement Accumulator B
decb - Decreases Accumulator B by 1mul_acc - Multiply Accumulators A & B
mul - Stores value in Accumulator Cdiv_acc - Floor Division of Accumulator A into B
div - Stores value in Accumulator Ccmp_acc - Compare Accumulators
cmp - Sets Zero, Negative, and Carry flags according to accumulatorsjmp_neq - Jump when Zero Flag is low (Implying Accumulators are equal)
jne [REF] or jne 0xXX or jne [0xXX]lda_imm - Load Accumulator A with immediate 8-bit value
lda 0xXX - Loads A with 8 bit hex value 0xXXldb_imm - Load Accumulator B with immediate 8-bit value
ldb 0xXX - Loads B with 8-bit hex value 0xXXadda_imm - Add Accumulator A with immediate 8-bit value
adda 0xXX - Adds the 8-bit hex value 0xXX to Accumulator Aaddb_imm - Add Accumulator B with immediate 8-bit value
addb 0xXX - Adds the 8-bit hex value 0xXX to Accumulator Bsuba_imm - Subtract an 8-bit value from Accumulator A
suba 0xXX - Subtracts the 8-bit hex value, 0xXX, from Accumulator Asubb_imm - Subtract an 8-bit value from Accumulator B
subb 0xXX - Subtracts the 8-bit hex value, 0xXX, from Acuumulator Bldx_imm - Load Accumlator X with immediate 8-bit value
ldx 0xXX - Loads index accumulator with 8-bit hex value 0xXXlds_imm - Load Accumulator S with immediate 8-bit value
lds 0xXX - Lods stack pointer accumulator with 8-bit hex valuejmp_imm - Jump to Immediate 8-bit value
jmp 0xXX - Jumps to the 8-bit hex value 0xXXlda_dir - Load Accumulator A with memory value
lda [0xXX] or lda [REF] - Loads the A Accumulator with the 8-bit hex value located at [0xXX] or [REF]ldb_dir - Load Accumulator B with memory value
ldb [0xXX] or ldb [REF] - Loads the B Accumulator with the 8-bit hex value located at [0xXX] or [REF]adda_dir - Add value from memory to Accumulator A
adda [0xXX] or adda [REF] - Adds to Accumulator A the 8-bit hex value located at memory location [0xXX] or [REF]addb_dir - Add value from memory to Accumulator B
addb [0xXX] or addb [REF] - Adds to Accumulator B the 8-bit hex value located at memory location [0xXX] or [REF]suba_dir - Subtract value in memory from Accumulator A
suba [0xXX] or suba [REF] - Subtracts the 8-bit hex value, located at [0xXX] or [REF], in memory from Accumulator Asubb_dir - Subtract value in memory from Accumulator B
subb [0xXX] or subb [REF] - Subtracts the 8-bit hex value, located at [0xXX] or [REF], in memory from Accumulator Bsta_ref - Store Accumulator A value in memory
sta [0xXX] or sta [REF] - The 8-bit hex value in Accumulator A is stored in memory location [0xXX] or [REF]stb_ref - Store Accumulator B value in memory
stb [0xXX] or stb [REF] - The 8-bit hex value in Accumulator B is stored in memory location [0xXX] or [REF]ldx_dir - Load Accumulator X with value in memory
ldx [0xXX] or ldx [REF] - Loads Index Accumulator with 8-bit hex value from memory location [0xXX] or [REF]lds_dir - Load Accumulator S with value in memory
lds [0xXX] or lds [REF] - Loads Stack Pointer with 8-bit hex value from memory location [0xXX] or [REF]dec_dir - Decrement the value at location in memory
dec [0xXX] or dec [REF] - Decreases value at memory location [0xXX] or [REF] by 1inc_dir - Increment the value at location in memory
inc [0xXX] or inc [REF] - Increases value at memory location [0xXX] or [REF] by 1jmp_dir - Jump to point in memory
jmp [0xXX] or jmp [REF] - Jumps to location at memory location 0xXX or REFpush_a - Push Accumulator A into Stack
psha - Load Accumulator A 8-bit hex value into stackpop_a - Pop Value from Stack into Accumulator A
popa - Load Accumulator A with value at Stack Pointerpush_b - Push Accumulator B into Stack
pshb - Load Accumulator B 8-bit hex value into stackpop_b - Pop Value from Stack into Accumulator B
popb - Load Accumulator B with value at Stack Pointerpush_imm - Push immediate value into Stack
psh 0xXX - Push immediate 8-bit hex value 0xXX into stackpush_dir - Push value in memory to Stack
psh [0xXX] or psh [REF] - Push value at memory location [0xXX] or [REF] to the Stackpush_indx - Push the Indexed value in memory to Stack
psh [y + X] - Push value at y plus value of indexed Accumulator X onto stacklda_indx - Load Accumulator A with Indexed value in memory
lda [y + X] - Load the value located at y plus the value of indexed accumulator X into Accumulator Aldb_indx - Load Accumulator B with Indexed value in memory
ldb [y + X] - Load the value located at y plus the value of indexed accumulator X into Accumulator Bsta_indx - Store Accumulator A to Indexed value in memory
sta [y + X] - Store Accumulator A into memory at location y plus the value of indexed Accumulator Xstb_indx - Store Accumulator B to Indexed value in memory
stb [y + X] - Store Accumulator B into memory at location y plus the value of indexed Accumulator Xinc_indx - Increment Value at Indexed value in memory
inc [y + X] - Increment value at y plus the value of indexed Accumulator Xdec_indx - Decrement Value at Indexed value in memory
dec [y + X] - Decrement value at y plus the value of indexed Accumulator Xjmp_indx - Jump to value at Indexed value in memory
jmp [y + X] - Jump to value at y plus the value of indexed Accumulator XNote: It is possible that some of this has changed and it has been over a year since this was last looked at. It could be wrong.