Having an issue with the following code,
Error : A12202: Not a hc12 instruction or directive main.asm line 18 Error : A12202: Not a hc12 instruction or directive main.asm line 20 Error : Compile failedThat is the error Im receiving, it is saying that 'DB 0' is not an HC12 instruction.
Although when I compile this exact code in the lab at my college it compiles just fine.
Has anyone used CodeWarrior before and know what might be causing this issue?
I have mc9s12dp512.inc included in the project. Its an absolute assembly program, so no C,
and is not relocatable, so there is no prm file to edit.
Any idea? this is driving me nuts as I'm working on a micro mouse and would much rather work
home than sit in the college's labs.
;*********************************************** ;* Program Name: LCD_Test.asm ;* ;* Name: Mike ;* Date: 11/07/2011 ;* ;* This program test the micromouse LCD ;************************************************ 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] LDD #Msg1 JSR [lcd_puts-*-4,PC] LDAB #$C0 JSR [lcd_cmd-*-4,PC] LDD #Msg2 JSR [lcd_puts-*-4,PC] SWI ldd #$FFFF END


Sign In
Create Account


Back to top









