Re: translation from x86 assember to machine code

"michelle" <donalies@adelphia.net>
18 Jan 2002 21:09:48 -0500

          From comp.compilers

Related articles
translation from x86 assember to machine code donalies@adelphia.net (michelle) (2002-01-14)
Re: translation from x86 assember to machine code joachim_d@gmx.de (Joachim Durchholz) (2002-01-17)
Re: translation from x86 assember to machine code RLWatkins@CompuServe.Com (R. L. Watkins) (2002-01-17)
Re: translation from x86 assember to machine code hugo_rozas@terra.com.pe (Hugo Rozas M.) (2002-01-17)
Re: translation from x86 assember to machine code rickh@capaccess.org (2002-01-17)
Re: translation from x86 assember to machine code donalies@adelphia.net (michelle) (2002-01-18)
Re: translation from x86 assember to machine code setters@nospam.hotmail.com (Paul Setterfield) (2002-01-28)
| List of all articles for this month |

From: "michelle" <donalies@adelphia.net>
Newsgroups: comp.compilers
Date: 18 Jan 2002 21:09:48 -0500
Organization: Compilers Central
References: 02-01-055
Keywords: 386, assembler
Posted-Date: 18 Jan 2002 21:09:48 EST

Wow! I give my thanks to all who posted or emailed me in response.


I believe I have enough to get started. Just for the record, in case
anyone is searching through the archives, this is what I've decided to
do:


This little microassembler makes DOS .COM files
http://sourceforge.net/projects/msa/


It comes with source code written in C. It's pretty short. It
defines a bunch of constants for the opcode encodings. It also has a
big table with the organization of the binary output. I haven't
figured out all of the fields yet, but the Nasm documentation has an
appendix with the organization of all the instructions, including what
all the bit fields mean. Nasm also has a nifty little disassembler. I
think it will be very helpful.


Here's my amazing piece of code so far:
b2 41 b4 02 cd 21 b0 00 b4 4c cd 21
which outputs the letter 'A' to the screen under DOS. A few more lines and
I'll have EDLIN! :)


Thanks again.


Post a followup to this message

Return to the comp.compilers page.
Search the comp.compilers archives again.