Brice Vadnais

A small website

Instruction Set

Accumulator based 8-bit Processor By Brice Vadnais —

Inherent Instructions

nop - No Operation

add_acc - Add Accumulator A & B together and store result in Accumulator C

sub_acc - Subtract Accumulator A from B and store result in Accumulator C

hlt - Halt operation of the processor

inc_a - Increment Accumulator A

inc_b - Increment Accumulator B

dec_a - Decrement Accumulator A

dec_b - Decrement Accumulator B

mul_acc - Multiply Accumulators A & B

div_acc - Floor Division of Accumulator A into B

cmp_acc - Compare Accumulators

jmp_neq - Jump when Zero Flag is low (Implying Accumulators are equal)


Immediate Instructions

lda_imm - Load Accumulator A with immediate 8-bit value

ldb_imm - Load Accumulator B with immediate 8-bit value

adda_imm - Add Accumulator A with immediate 8-bit value

addb_imm - Add Accumulator B with immediate 8-bit value

suba_imm - Subtract an 8-bit value from Accumulator A

subb_imm - Subtract an 8-bit value from Accumulator B

ldx_imm - Load Accumlator X with immediate 8-bit value

lds_imm - Load Accumulator S with immediate 8-bit value

jmp_imm - Jump to Immediate 8-bit value


Direct/Extended (Memory) Instructions

lda_dir - Load Accumulator A with memory value

ldb_dir - Load Accumulator B with memory value

adda_dir - Add value from memory to Accumulator A

addb_dir - Add value from memory to Accumulator B

suba_dir - Subtract value in memory from Accumulator A

subb_dir - Subtract value in memory from Accumulator B

sta_ref - Store Accumulator A value in memory

stb_ref - Store Accumulator B value in memory

ldx_dir - Load Accumulator X with value in memory

lds_dir - Load Accumulator S with value in memory

dec_dir - Decrement the value at location in memory

inc_dir - Increment the value at location in memory

jmp_dir - Jump to point in memory


Stack Instructions

push_a - Push Accumulator A into Stack

pop_a - Pop Value from Stack into Accumulator A

push_b - Push Accumulator B into Stack

pop_b - Pop Value from Stack into Accumulator B

push_imm - Push immediate value into Stack

push_dir - Push value in memory to Stack

push_indx - Push the Indexed value in memory to Stack


Indexed Instructions

lda_indx - Load Accumulator A with Indexed value in memory

ldb_indx - Load Accumulator B with Indexed value in memory

sta_indx - Store Accumulator A to Indexed value in memory

stb_indx - Store Accumulator B to Indexed value in memory

inc_indx - Increment Value at Indexed value in memory

dec_indx - Decrement Value at Indexed value in memory

jmp_indx - Jump to value at Indexed value in memory

Note: 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.