Re:Show HN: A small virtual machine written in C
by chewxy on Monday August 04, 2014 @02:00AM
(#8130552)
Using only PUSH and POP I think. i.e a stack machine.
also, OP, your code looks great.
Re:Show HN: A small virtual machine written in C
by dsturnbull2049 on Wednesday August 06, 2014 @03:29AM
(#8141437)
Yeah, a stack machine.
https://github.com/dsturnbull/stack_cpu
What I mean by missing files is that it's so clean that at first glance it didn't look like the whole deal :)
Re:Show HN: A small virtual machine written in C
by tekknolagi on Wednesday August 06, 2014 @11:36AM
(#8142998)
Oh well thanks — that's quite a compliment.
This is pretty cool!
Re:Show HN: A small virtual machine written in C
by tekknolagi on Monday August 04, 2014 @02:03AM
(#8130556)
Oh interesting. That sounds... complicated.
Thanks! It's my first big C project that isn't hideous :D
Re:Show HN: A small virtual machine written in C
by Hytosys on Monday August 04, 2014 @02:08AM
(#8130564)
Just for anyone looking for more information: http://en.wikipedia.org/wiki/Instruction_set#Number_of_opera...
Re:Show HN: A small virtual machine written in C
by tekknolagi on Monday August 04, 2014 @02:16AM
(#8130586)
Awesome!
What is a 0 operand VM? I'd love to see it!