#ifndef _TR8_H #define _TR8_H typedef struct { uint16_t pc; uint16_t sp; uint16_t ssp; uint8_t f; uint8_t regs[4]; uint8_t *ram; uint32_t icnt; } Tr8; void tr8_init(Tr8 *vm, uint8_t *ram); uint8_t tr8_eval(Tr8 *vm); #endif /* _TR8_H */