assembler exe for low cost devices e.g. rs08

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

assembler exe for low cost devices e.g. rs08

2,988 Views
kicchip
Contributor I

Hello,

 

I'm building a software application for PIC & AVR, one of my users suggested I look at freescale (rs08?) device. Is there a free command line assembler available for this kind of device. I started to download "code warrior" but the download looks a bit too big for the piece of software I'm looking for.

 

Thanks in advance,

Michael

Labels (1)
0 Kudos
Reply
12 Replies

1,392 Views
Obetz
Contributor III

Michael, look for Alfred Arnold's AS macro assembler (alfsembler.de).

 

Oliver

0 Kudos
Reply

1,392 Views
J2MEJediMaster
Specialist I

If you start the assembler from within a Command Prompt window with arguments (such as options or output files) it should operate in the batch mode and the GUI window should not appear. Example:

 

C:\Program Files\Freescale\CodeWarrior for Microcontrollers Vx\MCU_x.x\prog\ahc08.exe a.s > asm_output.o.

 

(Sorry, trying to recall things from a leaky memory here.)

 

The command line process is going to take off once the assembler launches, so if you need batch commands to execute in precise sequential order, you'll need to use start /wait pairs to ensure that the command line process waits until the assembler completes. Example:

 

start /wait C:\Program Files\Freescale\CodeWarrior for Microcontrollers Vx\MCU_x.x\prog\ahc08.exe a.s > asm_output.o.

 

---Tom

 

Message Edited by J2MEJediMaster on 2009-12-10 08:32 AM
Message Edited by J2MEJediMaster on 2009-12-10 08:35 AM
0 Kudos
Reply

1,392 Views
kicchip
Contributor I

Cool, thanks for the feedback, will try out the suggestions..

0 Kudos
Reply

1,392 Views
rocco
Senior Contributor II

Hi Michael,

 

We could never get CodeWarrior to work, so we just use its assembler, linker and debugger separately (actually, from Motorola's old IDE, "MCUez").

 

They are all in CodeWarrior's "Prog" directory. The assembler is "ahc08.exe", the linker is "linker.exe", and the debugger is "hiwave.exe". There are other utilities there as well, and the manuals (both .pdf and help-files) are in the "Help" directory.

 

mark

0 Kudos
Reply

1,392 Views
J2MEJediMaster
Specialist I
You can download the free Special Edition version of CodeWarrior with the HCS08/RS08 tools and use those to write assembly. Being free there are code size restrictions, but depending upon your application, you might sneak under those limits. However, it sounds like you are looking for the assembly tools that can be found on this forum thread.
0 Kudos
Reply

1,392 Views
CompilerGuru
NXP Employee
NXP Employee
I don't think there are code size restrictions for assembly code (there are for C/C++ code).
0 Kudos
Reply

1,392 Views
kicchip
Contributor I

Thanks everyone it sounds like I can play around with this now, much appreciated!

 

To get an idea of what I'm attemting I have developed a cross compiler for PIC & AVR and want to include freescale products, so my users have the broadest choice of chip families. I have developed a low level language called KicASM (macros) and define the entire system using these macros. Assuming I can use macros with freescale and define my low level command set then the system should just "work". So far it sounds promising, if I can get the assembler to work and it supports macros the way I need it to then it "should" work out OK.

 

All the best,

Michael

0 Kudos
Reply

1,392 Views
kicchip
Contributor I

Hi,

 

I had a go with the ahc08.exe assembler to compile some test apps. I'd like to be able to call the assembler from within my own application so that users don't need to interact with the assembler window, does anyone know if that is possible?

 

Thanks in advance,

Michael

0 Kudos
Reply

1,392 Views
rocco
Senior Contributor II

Hi Michael,

 

I has been a few years, but I did try to run ahc08.exe and linker.exe from batch files. However, no matter what I did, I could not keep either of them from throwing up their GUI window. It seemed at the time that they could only be used interactively.

 

But Codewarrior needs to run and control these programs, so there must be a way.

 

mark

0 Kudos
Reply

1,392 Views
kicchip
Contributor I

Thanks, I have downloaded code warrior and the free links you gave me.

 

I looked in the code warrior directory for an assembler but it's not clear if an item there is a command line assembler, I was hoping to see something like "assembler.exe" but no luck.. Plenty of DLL's with promising sounding names like "Compiler".

 

Does anyone know if the assembler part of code warrior can be run stand alone?

0 Kudos
Reply

1,392 Views
bigmac
Specialist III

Hello Michael,

 

When running the assembler stand-alone, the linker is not used, and the S19 file is directly generated.  This requires that the code be an absolute assembly project, with only a single .asm file, (but with as many "include" files as needed).  An include file must not have an .asm extension.

 

For this type of project, I would normally keep all files in a single folder.  From within the CW installation, copy the .inc file for the derivative you are using into the folder.  Also find and copy a project.ini file into the same folder.  These steps are not required when using the IDE.

 

When you run the ahc08 program, firstly "drag" the project.ini file into the window.  This will enable the assembler to find the include files within the current folder.  Then, each time you require to assemble the code, drag the .asm file into the assembler window.

 

Regards,

Mac

0 Kudos
Reply

1,392 Views
CompilerGuru
NXP Employee
NXP Employee

The command line tools are in the prog folder, not in bin.

The assembler for both HC08 and RS08 is called prog\ahc08.exe.

 

Daniel

0 Kudos
Reply