Codewarrior 10.1 and HCS08 Assembly

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

Codewarrior 10.1 and HCS08 Assembly

1,553 次查看
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

标签 (1)
0 项奖励
回复
2 回复数

969 次查看
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 项奖励
回复

969 次查看
terra
Contributor I

Thanks mac, It is really help a lot

0 项奖励
回复