Hi guys,

Im having an issue with CodeWarrior, I wrote a small test program to test the LCD on a micromouse I'm building, and it seems CodeWarrior is throwing errors for HCS12 instructions, even though it is an HCS12 instruction. The code is as follows:

Code:
lcd_banner:   EQU     $0FEE
lcd_clear:    EQU     $0FE4
lcd_cmd:      EQU     $0FEA
lcd_init:     EQU     $0FEC
lcd_putc:     EQU     $0FE8
lcd_puts:     EQU     $0FE6

        ORG  $1000
Msg1:   FCC  "Line 1"
        DB   0
Msg2:   FCC  "Line 2"
        DB   0
        ORG  $2000
start:  JSR  [lcd_init-*-4,PC] ;Only has to be called once to setup LCD
        LDD  #Msg1
        JSR  [lcd_puts-*-4,PC]
        LDAB #$C0              ;Go to start of the next line
        JSR  [lcd_cmd-*-4,PC]
        LDD  #Msg2
        JSR  [lcd_puts-*-4,PC]
        SWI
        ldd  #$FFFF
        END
The lines throwing the error are:

Code:
DB      0
Anyone know what could be causing this? I have mc9s12dp256.inc included, which is the HCS12 I am using.

Thanks,

Mike.