Click here to Skip to main content
15,885,953 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I need to build an assembly simulator for the x86 architecture.

I haven't been able to find any resources on the topic and I could use any help to set me on the right direction. I have basic understanding of assembly language and any further help on that part are appreciated, and any open source tools are welcomed too.

The outcome should be something like the Little Man Computer[^] or most likely MARS[^]

Thanks in advance.
Posted
Updated 28-Jan-13 23:34pm
v2
Comments
Sergey Alexandrovich Kryukov 28-Jan-13 22:11pm    
You can simulate a CPU, of course, but what is "Assembly simulator"? something that only simulates the work but does not assemble anything, or what?
—SA
Member 9792935 29-Jan-13 5:36am    
I'm not sure what do you mean however, I updated the question for examples. It should assemble the code entered and provide the assembled output with execution.
Sergey Alexandrovich Kryukov 29-Jan-13 6:05am    
I got it, but "Assembly simulator" would be a misleading name for it.
OK, it's a big work; so it's not clear what help do you expect... It's not about any particular tools. This is pure programming...
—SA
Member 9792935 29-Jan-13 6:32am    
Well, where shall I start? I'm sure it's doable, I just need a start and be pointed to the right direction.
Sergey Alexandrovich Kryukov 29-Jan-13 12:45pm    
Do you want to develop the code, or find something? If you need to develop, you should be way more independent. This is quite a serious work, with elements of research. You need to start with learning of the architecture of the CPU you want to simulate. If you want to create your own CPU (which is a traditional approach, creation of some "study" CPU, simplified), you need to start learning principles of CPU architecture.
—SA

1 solution

Do you ask for something similar like this[^]?
Cheers
Andi
 
Share this answer
 
Comments
Member 9792935 29-Jan-13 5:43am    
Probably yes, however, I could use a tutorial or an approach on how to make it as I need to understand the code and how it functions for later modifications.
Andreas Gieriet 29-Jan-13 11:22am    
I don't know of any tutorial.
Andi
Member 9792935 29-Jan-13 23:07pm    
Book? At any rate, thank you.
Andreas Gieriet 30-Jan-13 0:35am    
I don't know of any. Who would write a book about such a niche topic?
Andi
Member 9792935 30-Jan-13 3:22am    
Thank you.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900