Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

/PROG/ Challenge Number 8 - Virtual Machine

Name: Anonymous 2007-10-09 18:31

Make virtual machine and compiler for the following instruction set.

LOD - Load into accumulator
STR - Store into memory
ADD - Add acc+mem
NEG - accumulator=accumulator*-1
INP - Input number to accumulator
OUT - Output
JMP - Jump to memory location
JNZ - Jump if accumulator non zero

If you do this, I WILL be impressed.

Name: Anonymous 2007-10-09 20:17

>>1
Virtual machines are not hard. I have implemented a few now (register based, stack based, fixed length instructions, variable length instructions, etc). Then again, I'm quite interested in this topic, so I guess I would look into such things. I also do compiler construction in uni.

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List