flat assembler
Message board for the users of flat assembler.

Index > Heap > Is That how an Interpreter Works?

Author
Thread Post new topic Reply to topic
Nameless



Joined: 30 Apr 2010
Posts: 95
Nameless
i thought about that for my new project
the only idea i got is that it simple does what the instruction says
for example the add Instruction does (ill write a sample in delphi case it will be confusing in asm)

for example thats the asm code
Code:
 add eax, ebx
    


and thats how the interpreter does it
Code:
tempEAX, tempEBX: Integer;
begin
 if Command = 'add' then
 begin
  tempEAX := tempEAX + tempEBX;
  Display(tempEAX);   //Display it like ollydbg Register View (Right Side)
 end;
end;
    


is that how it works?
Post 08 Oct 2010, 08:14
View user's profile Send private message Reply with quote
MazeGen



Joined: 06 Oct 2003
Posts: 975
Location: Czechoslovakia
MazeGen
First of all, what will your interpreter be good for? Or, why do you need an x86 interpreter?
Post 08 Oct 2010, 08:52
View user's profile Send private message Visit poster's website Reply with quote
Nameless



Joined: 30 Apr 2010
Posts: 95
Nameless
not x86, RISC
Post 08 Oct 2010, 10:43
View user's profile Send private message Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< Last Thread | Next Thread >
Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Copyright © 1999-2020, Tomasz Grysztar.

Powered by rwasa.