Skip to content

Reads pm0 code, prints the assembler version and executes it displaying the machine state after each execution

Notifications You must be signed in to change notification settings

kjmitchelljr/VirtualMachine

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Brief description:
reads in pm0 code,

prints the assembler version of the pm0 code, and

executes the pm0 code displaying the machine state after each instruction.

The file mcode.pm0 contains an example program.
The file trace.txt is what your program should output when you run it on mcode.pm0. Note that stack[0] is not shown. It is important that you print out | to separate the activation records.
Both are located in the code repo under Sources (on left hand side) in the folder 0_virtual_machine

About

Reads pm0 code, prints the assembler version and executes it displaying the machine state after each execution

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •