AnsweredAssumed Answered

Inline assembly for Codewarrior

Question asked by clayhowell on Mar 22, 2013
Latest reply on Mar 23, 2013 by clayhowell


This may be a real stupid question but I can’t figure it out. I’m using Special Edition Codewarrior Eclipse for MCUV10.3 and programming the 9S08PA4. I started a new bareboard project and want to add some inline assembly to the code. This simple code won’t compile, I get “Unknown Opcode C18701” for both MOV and DBZN. This is the only code in the main file:


#include <hidef.h> /* for EnableInterrupts macro */

#include "derivative.h" /* include peripheral declarations */


int delaycomm;


void main(void) {


  /* include your code here */



              MOV #$FF,delaycomm;       



              DBNZ delaycomm,LoopHere;  



  for(;;) {

    __RESET_WATCHDOG();    /* feeds the dog */

  } /* loop forever */

  /* please make sure that you never leave main */