220 likes | 226 Views
Explore SimpleSim programs on a simulated machine, delve into Assembly Language coding for the simulated environment, manage Instruction Pointer, Code Memory, and Data Memory Set efficiently.
E N D
Simplesem By B. Hosp
Simplesem • Programs to run on a simulator • Assembly Language for that simulated machine • Instruction Pointer • Code Memory • Data Memory
Set • Analogous to STORE instruction • set n, data • or set n, read for input • or set n, expression • set 5, 20 • set 5, (D[20] * D[0]) / (D[10]) • Also indirect addressing: • set D[15] read
Jump • Unconditional Jump • jump n or jump D[i] • Conditional Jump • jumpt address, expression • jumpt 5, D[0] = D[2]
Etc • Halt • Write • set write, expression • set write, read • reads from input and echoes to output.