JSVM
github.com
JSVM
1–10 of 17 posts
Re: JSVM
#2Re: JSVM
#3The result (which I'm pretty pleased with) is here: http://chengsun.github.io/ocremutiny.html
Re: JSVM
#4> Add arithmetic shift left/right
> Add logical shift left/right
> Add exclusive OR (XOR)
> Pick a word size so your integer and bit ops have meaning
Questions:
> How do I set the program counter from my assembly?
> Do I have registers (seems like a stack-based VM, so no)? If not, can I have more stacks?
> Can you setup a dedicated block of memory to use as a framebuffer and render it to a tag?
~
Good work so far!
Re: JSVM
#5Re: JSVM
#6I had to write one of these (in C) for a class a couple years ago. https://github.com/tylerkahn/MIPS-Virtual-Machine
Also, let us not forget the Halt and Spontaneously Combust (HSC) instruction: ftp://reports.stanford.edu/pub/cstr/reports/csl/tr/86/289/CSL-TR-86-289.pdf .
Re: JSVM
#7I had to write one of these (in C) for a class a couple years ago. https://github.com/tylerkahn/MIPS-Virtual-Machine
I once wrote a MIPS assembler+VM in Racket. It went OK but I never used it for anything: https://github.com/gcr/mips-simulator Was a great learning experience though.
Re: JSVM
#8Re: JSVM
#9Better name it VM.js !!