gipu/cpp/opcodes.h

36 lines
394 B
C
Raw Normal View History

2017-05-17 17:32:05 +01:00
/*
MEMORY LOCATIONS AND IMMEDIATES ARE 16 BITS LONG
*/
enum ops_starting_values {
MOVI,
MOVR,
LOAD,
STOR,
ADDI,
ADDR,
SUBI,
SUBR,
XORI,
XORR,
NOTI,
NOTR,
MULI,
MULR,
DIVI,
DIVR,
PUSH,
POOP,
JUMP,
SHIT,
NOPE,
GERM,
NUM_OPS
};
uint8_t OPS[NUM_OPS];
#define MOVI_SIZE 4
#define MOVR_SIZE 2
#define LOAD_SIZE 4
#define STOR_SIZE 4
#define ADDI_SIZE 4