Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Where can I find Motorola as format?

Status
Not open for further replies.

PaperPilot

Programmer
May 31, 2006
2
0
0
US
I have a large (40,000 line) assembly program for the M680040 processor which I am porting to run on VxWorks. Trouble is VxWorks uses C language calls to access system services. I can write a C routine calling a service and compile it with an option that produces a .s assembly file, but the assembly is in as format while my code is in asm format.

It's been years since I had an as assembler and I've forgotten the nuances of the as format. Does anyone know where I can find a reference on the as format assemble language for the Motorola M68k processor family?

PaperPilot

 
These reference all use the asm format. Here is an example of what I am seeing:

.global _helloWorld
_hellowWorld:
pea a6@
movel sp.a6
pea 20:w
jbsr _exit
unlk a6
rts


For example, the asm format does not have a jbsr operation. There is:

jsr - jump to subroutine
bsr - branch to subroutine

An is the operand a6@ the same as (a6)? I don't know.

PaperPilot
Simulation programmer
Shuttle Training Aircraft
 
in that case i have no idea.

maybe the MIT to Motorola and Motorola to MIT conversion program here can help you?

ftp://ftp.luth.se/pub/misc/motorola/m68k.

If somethings hard to do, its not worth doing - Homer Simpson
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top