Migrating Assembly Code from HC11 to HC12 (MC9S12A32, specifically)

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

Migrating Assembly Code from HC11 to HC12 (MC9S12A32, specifically)

953 Views
drewrainwater
Contributor I

I'm looking for a starting point for documentation on migrating existing HC11 assembly code (written by a previous employee) to the MC9S12A32.

 

It was my understanding that there should be complete coverage of HC11-based assembly code by the HC12 assembler, but I'm seeing assembly errors on BSET/BCLR and BRSET/BRCLR instructions.

 

All of my previous experience has been with 8052 processors, so I apologize for starting from scratch here.  Like I said, I'm looking for someone to hopefully point out a good starting point.

 

If it helps, a few of the instructions that are throwing assembly errors:

 

BSET   2,Y  $04  (illegal addressing mode error)

BRCLR  FLAG #$20 DBDELAY (illegal addressing mode error)

 

Thanks in advance.

Drew 

Labels (1)
0 Kudos
1 Reply

270 Views
kef
Specialist I

Commas are missing. Probably your HC11 assembler had weaker errors checking.

 

BSET   2,Y,  #$04

BRCLR  FLAG, #$20, DBDELAY

0 Kudos