A virtual machine (VM) known as the P-machine (PM/0). The P-machine is a stack machine with two memory stores: the “stack,” which is organized as a stack and contains the data to be used by the PM/0 CPU, and the “code,” which is organized as a list and contains the instructions for the VM. The PM/0 CPU has four registers to handle the stack and code segments: The registers are named base pointer (BP), stack pointer (SP), program counter (PC) and instruction register (IR). They will be explained in detail later on in this document. The machine also has a register file (RF) with sixteen (16) registers (0-15).
Stars
1
Forks
0
Watchers
1
Open Issues
0
Overall repository health assessment
No package.json found
This might not be a Node.js project
13
commits
Updated Compiler/Parser/Codegenerator to handle the an else condition after an if-then statement. Also added handling of empty statements.
455095bView on GitHubChanges to how compiler prints data to screen and to output file.
45f2de7View on GitHubAplication changed to tokenize user application, parse the tokens, generate asmebly for the VM, and then run the code in the VM for PL/0.
bb2bfd9View on GitHubCreated the lexical analyzer to be used by the compiler.
cc26fb0View on GitHubRemoved unused test code and old program used to test.
48c8065View on GitHub- Fixed a bug in increment function. Some of the logic was missing.\n- Updated output for stack. It now shows the symbol | between Activation Records (AR).\n- Added a printout for Register 0-7.
1cc20c3View on GitHubFirst implementation of PM/0. Uses a hard coded program to test with.
9a21283View on GitHub