AlbanainRetard Master Cheater
Reputation: 0
Joined: 02 Nov 2008 Posts: 494 Location: Canada eh?
|
Posted: Sun Mar 22, 2009 1:53 am Post subject: Turbo Pascal to C++(80's to 90's) |
|
|
I am looking into a simplistic compiler tutorial and I need help converting this:
Match('+');
Term;
EmitLn('ADD (SP)+,D0');
into a c++ counterpart by figuring out the output.
I know that:
ADD (SP)+,D0
Calls it from the stack but how do I define what I want to add?
Tut: http://compilers.iecc.com/crenshaw/tutor2.txt
Or am I just a retard?
Edit:
I noticed that he used move in factor o.0 I think i solved it.
_________________
|
|