Java - Creating a Compiler Help

Posted by Brian on Stack Overflow See other posts from Stack Overflow or by Brian
Published on 2010-04-02T17:19:41Z Indexed on 2010/04/02 17:23 UTC
Read the original article Hit count: 300

Filed under:
|

So for my programming class we have had a project to create a virtual machine including a memory unit, cpu, Input, Output, Instruction Register, Program Counter, MAR, MDR and so on. Now we need to create a compiler using Java Code that will take a .exe file written in some txt editor and convert it to java byte code and run the code. The code we will be writing in the .exe file is machine code along the lines of:

IN X
IN Y
ADD X
STO Y
OUT Y
STOP
DC X 0
DC Y 0

I am just a beginner and only have 2 days to write this and am very lost and have no idea where to start....Any Help will be much appreciated. Thanks

© Stack Overflow or respective owner

Related posts about java

Related posts about homework