argument parsing
This commit is contained in:
@@ -29,7 +29,7 @@ const Instruction instructions[] = {
|
||||
// Instruction_construct(CALL),
|
||||
};
|
||||
|
||||
const Instruction* Instruction_getFromOpcode(Opcode opcode){
|
||||
const Instruction* Instruction_getByOpcode(Opcode opcode){
|
||||
if(opcode >= ARRAY_SIZE(instructions))
|
||||
return NULL;
|
||||
|
||||
|
||||
@@ -33,4 +33,4 @@ typedef struct Instruction {
|
||||
/// @brief get instruction info from table
|
||||
/// @param opcode any byte
|
||||
/// @return ptr to struct or NULL
|
||||
const Instruction* NULLABLE(Instruction_getFromOpcode)(Opcode opcode);
|
||||
const Instruction* NULLABLE(Instruction_getByOpcode)(Opcode opcode);
|
||||
|
||||
Reference in New Issue
Block a user