Writing an ASM parser
Posted: Tue Dec 03, 2002 4:45 pm
Hi
Where can I get information on writing an asm parser. Although I'm not writing an assembler, I am writing an x86 simulator (for the chip only), to try and help debug any OS level code that I write. It will show and allow you to edit register values of the simulated CPU, plus show values at certain memory addresses and I/O ports, it may be added to later. Hopefully allowing me to diagnose problems with parts of code that say, set up GDT for Pmode etc.
It is, like my os project, a very long term project and will help me learn about the architecture of the machine.
I am writing this in Borland Delphi (although what language I'm using doesn't affect the parser coding help I need). I, at the moment plan to use VCL not CLX as I have more experience in it. Any info on parsing would be greatly helpfull.
Thanks
Where can I get information on writing an asm parser. Although I'm not writing an assembler, I am writing an x86 simulator (for the chip only), to try and help debug any OS level code that I write. It will show and allow you to edit register values of the simulated CPU, plus show values at certain memory addresses and I/O ports, it may be added to later. Hopefully allowing me to diagnose problems with parts of code that say, set up GDT for Pmode etc.
It is, like my os project, a very long term project and will help me learn about the architecture of the machine.
I am writing this in Borland Delphi (although what language I'm using doesn't affect the parser coding help I need). I, at the moment plan to use VCL not CLX as I have more experience in it. Any info on parsing would be greatly helpfull.
Thanks