Skip to content

diyiliumin/vim-VM

Repository files navigation

vim-VM

"Because yy@0 can run anything."

A complete virtual machine implemented with pure vim macros.

  • No plugins
  • No vimscript
  • Just G, yy, @0, f, p

Evolution

File What it is
full_adder.txt Full adder (starting point)
alu_more.txt ALU with 10 operations
asm_jnc.txt Assembler+ ALU + jump no carry
asm_cmt_tab.txt Assembler+ ALU + comments + tabs
asm_varabled.txt + jmp + jump zero + decimal support
asm_heap.txt + stack + pop/push + heap + store/load
asm_insert.txt + insert a string to heap

assembler relay on the ALU

Usage

  1. Open any file with vim (no config needed)
  2. Read the usage inside the file
  3. Follow the instructions
  4. Enjoy vim-vm

Example

examples are set in those txt files so you can just run them to test the program,and change some of the options or code if you are interested

Author

diyiliumin (ayazumi)

License

GPL v2

About

A Turing-complete VM inside your editor. Write assembly. Run it with vim macros. No plugins.

Topics

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors