Re: A89: the a68k assembler and how it makes machine code


[Prev][Next][Index][Thread]

Re: A89: the a68k assembler and how it makes machine code




more like the latter.

If you look in your manual you can get free from motorola, you can find exactly
what codes all the instructions have. The assembler has a table like this
(sortof) and find the word "rts" , looks in his big table and sees that rts is
equal to $4E75, and then put $4E75 in that position in the resulting binary.

//Olle

mxpxfifws@yahoo.com wrote:
> 
> I don't really get that.  Where does it come up with the $4E75?  Is it an algorythm or does it
> have all the code in the program and it just pulls it out of its butt?  Thanks for responding!
> 
> > ** Original Subject: Re: A89: the a68k assembler and how it makes machine code
> > ** Original Sender: Andrew Magness <AndrewM@ev1.net>
> > ** Original Date: Mon, 08 Nov 1999 22:43:07 -0800
> 
> > ** Original Message follows...
> 
> >
> > It knows the hex equate of the code you assemble...
> >
> > I.E.
> >
> > the compiler knows that
> >
> > RTS = $4E75
> >
> > so whenever the compiler comes to an rts in the code it replaces $4E75 for
> > rts.
> > and so on until all the code is assembled...
> >
> > get it?
> >
> >
> >
> > At 10:38 PM 11/8/99 -0600, you wrote:
> > >
> > >Ok, I'm not very new at assembly language (been programming for a year
> > now), but I still
> > >don't understand how an assembler works.  How does it change all the code
> > you put in to
> > >machine code.  In fact, how does it calculate all the hex code?  If
> > someone could explain all
> > >this or just give me a website to visit, I would be greatly appreciative.
> > Thanks!
> > >Bryan
> > >
> > >
> > >
> > >Download NeoPlanet at http://www.neoplanet.com
> > >
> > >
> > >__________________________________________________
> > >Do You Yahoo!?
> > >Bid and sell for free at http://auctions.yahoo.com
> > >
> > >
> > >
> >
> 
> >** --------- End Original Message ----------- **
> 
> >
> 
> Download NeoPlanet at http://www.neoplanet.com
> 
> __________________________________________________
> Do You Yahoo!?
> Bid and sell for free at http://auctions.yahoo.com


References: