File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Some insights to write an assembler

 
Arka Sharma
Ranch Hand
Posts: 103
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Hi,

I apologize for asking this question here but I really need some insight how to write an assembler.I have defined my instruction set, registers and all.Now I want to wtrite an assembler that will take the assembly code written in my defined instructions and generate executables on any windows machine whatever be the underlying processor.Any guide is expected.

Thanks,
Arka
 
Tim Moores
Bartender
Posts: 2500
12
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You want to write this in Java?

If this was my project I'd try to use the infrastructure of the GNU Assembler. Then the task would be down to translating your assembler syntax to the GAS syntax.
 
Campbell Ritchie
Sheriff
Pie
Posts: 47300
52
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is that possible? Won’t your registers differ from chip to chip, so your assembler will be coupled to the type of chip?
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic