Skip to content
/ tim Public
forked from CobbCoding1/tim

Titanium - Virtual Machine Written in C

License

Notifications You must be signed in to change notification settings

tim-tm/tim

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TIM - Titanium Virtual Machine

CanoScript is now in its own repo

Implementation of a virtual machine in C.

VM currently has 45 instructions as well as a some native functions. List can be found in tim.h. There is also a working assembly which contains support for all instructions in the VM.

Quick Start:

make
./tasm <assembly_file.tasm>
./tire <bytecode_file.tim>

Example of hello world in assembly:

@imp "stddefs.tash"

push_str "Hello, world!\n"
get_str 0 ; Index of the string on the data stack
push STDOUT
write ; length is inferred because the string is null-terminated

About

Titanium - Virtual Machine Written in C

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C 96.7%
  • Vim Script 2.0%
  • Makefile 1.3%