#if defined LATA
    LATA = state;
#elif defined PORTA
    // devices that have no latch but have the port
    PORTA = state;
#else
    #error compiling for device with no recognised port configuration
#endif