-
Notifications
You must be signed in to change notification settings - Fork 0
Home
João Pedro edited this page Sep 23, 2019
·
7 revisions
Welcome to the VonNeumannSimulator wiki!
- 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
Use # to define fixed numbers in the code itself.
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
Bem-vindo ao wiki do VonNeumannSimulator!
- 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
Utilize # para definir números fixos no próprio código
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