Skip to content

Stack based virtual machine implemented using Xonotic's RPN command and console tricks.

License

Notifications You must be signed in to change notification settings

coolDudeRude/stackvm-xonotic

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Stack Based Virtual Machine

Building the VM Script:

GNU m4 is required to generate the VM console script. A makefile is also included that provides the recipe to compile the VM script.

Examples

See stackvm-xonotic/examples, for example programs. To test the program included in the example folder, do the following:

  • Make sure the xSVM program is loaded, do this by executing stackvm.cfg.
  • Execute the program to run, in this example do "exec stackvm-xonotic/examples/main.cfg" to load main.cfg
  • Use the "vm.run" alias to initiate program execution.

About programs in examples folder

  • mainloader.cfg: Sits at the top of the program, loads the main function.
  • math.cfg: Primitive math library containing basic functions.
  • main.cfg: Example program that tests math.cfg functionality.

Suggested Reads

About

Stack based virtual machine implemented using Xonotic's RPN command and console tricks.

Resources

License

Stars

Watchers

Forks