all repos — xyw @ cfe0c99a0edf1bcdf038aec5d5461082688da8d3

A minimal virtual machine and assembler for terminals.

xyw.h

 1
 2
 3
 4
 5
 6
 7
 8
 9
 10
 11
 12
 13
 14
 15
#ifndef XYW_H
#define XYW_H

#define XYW_MODE_X 0x20
#define XYW_MODE_Y 0x40
#define XYW_MODE_W 0x80

typedef unsigned char xyw_byte;
typedef unsigned short xyw_word;

extern int xyw_debug;
int xyw_assemble(const char *input, const char *output);
int run();

#endif // XYW_H