Skip to content
TheUnproductive edited this page Jul 3, 2020 · 1 revision

Welcome to the VonNeumannArchitecture-emu wiki!'

This Implementation of the Architecture has 15 Registers, one Accumulator, 256 bytes of program memory and a 8 bit cache.

Basic Instruction Set: The Instructions consist of two 8 bit values, the first specifies the instruction, the second specifies either which register is used or which value should be loaded or jumped

0x0F: LOAD Copies the value from the specified register to the Accumulator

0x1F: DLOAD Loads the specified value into the Accumulator

0x2F: STORE Copies the value from the Accumulator to the specified register

0x3F: ADD Adds the content of the specified register to the Accumulator

0x4F: SUB Subtracts the content of the specified register from the Accumulator

0x5F: MULT Multiplies the content of the Accumulator and specified register

0x6F: DIV Divides the content of the Accumulator and specified register

0x7F: JUMP Jumps to specified line

0x8F: JGE Jumps if the value of the Accumulator is greater than or equal to zero

0x9F: JGT Jumps if the value of the Accumulator is greater than zero

0xAF: JLE Jumps if the value of the Accumulator is less or equal to zero

0xBF: JLT Jumps if the value of the Accumulator is less than zero

0xCF: JEQ Jumps if the value of the Accumulator is equal to zero

0xDF: JNE Jumps if the value of the Accumulator is not equal to zero

0xEF: END This ends the code execution

0xFF: OUTPUT Outputs the contents from the Accumulator to the console window

Clone this wiki locally