1 #ifndef MICROS_OPCODES_H 2 #define MICROS_OPCODES_H 6 #define OPCODE_PROTO_NAME(name) v8086_opcode_##name 7 #define OPCODE_PROTO(name) int16_t OPCODE_PROTO_NAME(name)(v8086* machine, uint8_t opcode) 8 #define ASSIGN_NULL(i) machine->operations[i] = NULL 9 #define ASSIGN_NULL_0FH(i) machine->operations_0fh[i] = NULL 10 #define ASSIGN_OPCODE(i, name) machine->operations[i] = OPCODE_PROTO_NAME(name) 11 #define ASSIGN_0FH_OPCODE(i, name) machine->operations_0fh[i] = OPCODE_PROTO_NAME(name) 12 #define GROUP_OF_OPCODES(from, to, name) for(uint8_t i = from; i <= to; i++) ASSIGN_OPCODE(i, name) 13 #define GROUP_OF_0FH_OPCODES(from, to, name) for(uint8_t i = from; i <= to; i++) ASSIGN_0FH_OPCODE(i, name) 161 #endif //MICROS_OPCODES_H int16_t enter(v8086 *machine, uint8_t width)
Definition: stack_operations.c:133
int16_t pop_gpr(v8086 *machine, uint8_t opcode)
Definition: stack_operations.c:20
int16_t far_call(v8086 *machine)
Definition: procedure_operations.c:19
int16_t push_all(v8086 *machine)
Definition: stack_operations.c:47
int16_t pop_all(v8086 *machine)
Definition: stack_operations.c:75
#define OPCODE_PROTO(name)
Definition: opcodes.h:7
int16_t push_gpr(v8086 *machine, uint8_t opcode)
Definition: stack_operations.c:8
int16_t leave(v8086 *machine, uint8_t width)
Definition: stack_operations.c:189
int16_t pop_rm(v8086 *machine)
Definition: stack_operations.c:32