Codewarrior 10.1 and HCS08 Assembly

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

Codewarrior 10.1 and HCS08 Assembly

959 Views
terra
Contributor I

I have HC08 Assembly code was build using using P&E Microassembler and try to move (Port) this code into HCS08, I down laoded the codewarrior 10.1 with Win XP and giving me error for assembly directive such as

.base

.pagewidth

 

A1603

Any advice

Labels (1)
0 Kudos
2 Replies

375 Views
bigmac
Specialist III

Hello,

 

HC08 assembly code is backward compatible with HCS08 assembler.  However, the assembly directives (or pseudo-ops) used by P&E assembler are different from those of the CW assembler.  If you wish to use the CW assembler for an existing program, you will need to modify the code to suit.  Here are some examples:

 

Replace the directives DB with DC.B, and DW with DC.W.

Where braces {} are used, replace with parenthesis ().

The format of macros is quite different for the two assemblers.

For CW assembler, a directive must start at column 2, or greater, and does not require a prefixed symbol $ or #.

 

There are other differences.

 

Your existing HC08 code should assemble with P&E HCS08 assembler, but this would need to be purchased.

 

Regards,

Mac

 

0 Kudos

375 Views
terra
Contributor I

Thanks mac, It is really help a lot

0 Kudos