Re: Configurable Assembler? (Mayan Moudgill)
9 Nov 1997 12:07:23 -0500

          From comp.compilers

Related articles
Configurable Assembler? (Todd L. Cignetti) (1997-11-02)
Re: Configurable Assembler? (Michael Meissner) (1997-11-03)
Re: Configurable Assembler? (1997-11-07)
Re: Configurable Assembler? (Robert Hansen) (1997-11-07)
Re: Configurable Assembler? (1997-11-09)
| List of all articles for this month |

From: (Mayan Moudgill)
Newsgroups: comp.compilers
Date: 9 Nov 1997 12:07:23 -0500
Organization: IBM_Research
References: 97-11-014
Keywords: assembler

Todd L. Cignetti <> wrote:
>I am looking for an assembler that allows me to specify the instructions
>and the corresponding opcodes. Basically, I need to add new opcodes to
>an existing instruction set.

A problem with using an arbitrary assembler is that it doesn't
necessarily support the executable format used by your system. This
may or may not be a concern for you.

The simplest way to do this is to see if your current system
assembler allows you to put arbitrary words in the text section
of your code; e.g. can your assembler handle:

add r3, r5, 100
.long 0x047f8000 ; this is machine code for new insn
add r4, r9, r3

If so, the simplest way to accomplish what you want is to
write a preprocessor that reads in the assembler file, convert
all the new instructions to their equivalent machine code, and
then run the system assembler on the output.

Mayan Moudgill
| Mayan Moudgill

Post a followup to this message

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