Esculapio Flores

ILEGAL OPERAND WHEN INSERT ASM CODE INTO C CODING

Discussion created by Esculapio Flores on Sep 21, 2006
Latest reply on Sep 22, 2006 by CrasyCat
Hi guys!
 
When use the Codewarrior ASM statement inserting this portion below the compiler gives me some error "ilegal operand".
 
 
THis is what I mean:
 
asm  
    {          
        
        
      mov #$00,DDRD    
      mov  #$30,T2SC        
                         
      mov  #$7F,T2MODH
      mov  #$FF,T2MODL      
      mov  #$08,T2SC0       
      mov  #$08,T2SC1       

        lda   #0x00  
        sta   HexDW
       
        lda   #0x00 
        sta   HexDW+1  --->ilegal operand
       
        lda   #0x00  
        sta   HexDW+2  --->ilegal operand
       
        lda   #0x00 
        sta   HexDW+3  --->ilegal operand
       
        lda   #0x00  
        sta   HexDW+4  --->ilegal operand
       
        lda   #0x00 
        sta   HexDW+5  --->ilegal operand
       
  bla bla bla.....
 
How do I fix this problem?.

Cheers.
 
Ganimides 

Outcomes