#ifndef _INL68_LOGIC_H_
#define _INL68_LOGIC_H_
#include "inl68_progctrl.h"
static inline
int68_t inl_and68(emu68_t * const emu68, const int68_t s, int68_t d)
{
d &= s;
inl_tst68(emu68, d);
return d;
}
static inline
int68_t inl_orr68(emu68_t * const emu68, const int68_t s, int68_t d)
{
d |= s;
inl_tst68(emu68, d);
return d;
}
static inline
int68_t inl_eor68(emu68_t * const emu68, const int68_t s, int68_t d)
{
d ^= s;
inl_tst68(emu68, d);
return d;
}
static inline
int68_t inl_not68(emu68_t * const emu68, int68_t d)
{
d = ~d;
inl_tst68(emu68, d);
return d;
}
#endif