How do I put asm code in a C function so it will compile
correctly with HITECH C compilator.
For ex.
 
 
A Function with variable access;
 
unsigned long UI_VAR;
void INC_VAR()
{
    __asm
color=#000000>    { 
        movf    offset     UI_VAR 
        movwf    0x04
       
         
        inc    0x00
        btfss    Z_FLAG
        return
       
        inc    0x04
        inc    0x00
        btfss    Z_FLAG
        return
       
        inc    0x04
        inc    0x00
        btfss    Z_FLAG
        return
 
        inc    0x04
        inc    0x00
    }
}
 
// Jörgen Tapani
jorgen.tapani@nacka.mail.telia.com