SimHYMN is a free and easy to use program that simulates a simple 8-instruction CPU and 32-byte memory designed for learning about how a CPU executes a program.
The CPU contains three registers: IR (instruction register), PC (program counter), and AC (accumulator). The eight instructions are as follows.
code
· 000 HALT nothing happens
· 001 JUMP PC := data
· 010 JZER if AC = 0 then PC := data else PC := PC + 1
· 011 JPOS if AC > 0 then PC := data else PC := PC + 1
· 100 LOAD AC := M[data]; PC := PC + 1
· 101 STOR AC := M[data]; PC := PC + 1
· 110 ADD AC := AC + M[data]; PC := PC + 1
· 111 SUB AC := AC - M[data]; PC := PC + 1
Requirements:
· Java 1.4 or later
What's New in This Release: [ read full changelog ]
· Bug fix: Repaired the bit buttons and the step/run/reset buttons to be compatible with MacOS implementation.
· Minor feature: For MacOS compatibility, set the property for the application title.