aboutsummaryrefslogtreecommitdiff
path: root/vm.h
blob: 81a0de06f3af50bbe9e994ef7317f51a203e7427 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#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 */