gipu/cpp/opcodes.h
Giulio De Pasquale ffb11f9a2e reg2reg assembler
2017-05-17 18:58:00 +02:00

36 lines
394 B
C

/*
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