Skip to content
João Pedro edited this page Sep 23, 2019 · 7 revisions

English

Welcome to the VonNeumannSimulator wiki!

Simulator Commands

  • LOD - Loads a memory value to the accumulator
  • STO - Saves an accumulator value to memory
  • ADD - Sums a value in the accumulator
  • SUB - Subtracts a value from the accumulator
  • MUL - Multiplies a value in the accumulator
  • DIV - Divide value in the accumulator
  • JMP - Skip to a line
  • JMZ - Skip to a line if accumulator equals zero
  • HLT - Stop the simulation
  • NOP - Does nothing

Internal Numbers

Use # to define fixed numbers in the code itself.

Example

MUL #0 ADD #5 STO A STO B NOP LOD A MUL #5 STO A LOD B SUB #1 STO B JMZ 14 JMP 6 LOD A DIV #100 STO A HLT

Português

Bem-vindo ao wiki do VonNeumannSimulator!

Comandos do Simulador

  • LOD - Carrega um valor da memoria para o acumulador
  • STO - Salva um valor do acumulador para a memoria
  • ADD - Soma um valor no acumulador
  • SUB - Subtrai um valor no acumulador
  • MUL - Multiplica um valor no acumulador
  • DIV - Divide um valor no acumulador
  • JMP - Pula para uma linha
  • JMZ - Pula para uma linha se o acumulador for igual a zero
  • HLT - Para a simulação
  • NOP - Não faz nada

Números Internos

Utilize # para definir números fixos no próprio código

Exemplo

MUL #0 ADD #5 STO A STO B NOP LOD A MUL #5 STO A LOD B SUB #1 STO B JMZ 14 JMP 6 LOD A DIV #100 STO A HLT

Clone this wiki locally