Skip to content

Releases: poneciak57/simple-VM

New release - improved interactive mode

28 Oct 22:13
Compare
Choose a tag to compare

Improved version of your favourite VM.

News

  • improved interactive mode commands
  • prettier memory prints
  • breakpoints support in interactive mode
  • range memory outputing

Usage

After downloading the binary run

pmc-interpreter --help

or on windows

pmc-interpreter.exe --help

with example pmc file you can run it in interactive mode

// example.pmc
0: LOAD . 1
1: LOAD + 12
2: SUB @ 10
3: STORE . 13
4: STOP . 0
10: 11
11: 12
12: 13
13: 14

run with

pmc-interpreter example.pmc -i

then you will be prompted with interactive mode welcome message.
To get help type

> help
> help 
An interactive debuging tool

Usage: > <COMMAND>

Commands:
  next               Proceed to the next instruction (alias: n)
  next-breakpoint    Continue until the next breakpoint (alias: nb)
  add-breakpoint     Add a breakpoint at a specified line (alias: ab)
  delete-breakpoint  Delete a breakpoint at a specified line if exists (alias: db)
  list-breakpoints   List all breakpoints (alias: lb)
  quit               Aborts execution (alias: q)
  finish             Disables interactive mode and finishes execution (alias: f)
  mem                Print memory from a start address to an end address (alias: m)
  help               Print this message or the help of the given subcommand(s)

Options:
  -h, --help  Print help

First release

27 Oct 14:58
Compare
Choose a tag to compare

First experimental release