diff options
Diffstat (limited to 'plugins/pychrysalide')
-rw-r--r-- | plugins/pychrysalide/arch/instructions/constants.c | 3 | ||||
-rw-r--r-- | plugins/pychrysalide/arch/instructions/undefined.c | 20 |
2 files changed, 12 insertions, 11 deletions
diff --git a/plugins/pychrysalide/arch/instructions/constants.c b/plugins/pychrysalide/arch/instructions/constants.c index b5e08e1..af7baa9 100644 --- a/plugins/pychrysalide/arch/instructions/constants.c +++ b/plugins/pychrysalide/arch/instructions/constants.c @@ -96,6 +96,7 @@ bool define_undefined_instruction_constants(PyTypeObject *type) result = add_const_to_group(values, "NOP", IEB_NOP); if (result) result = add_const_to_group(values, "UNDEFINED", IEB_UNDEFINED); if (result) result = add_const_to_group(values, "UNPREDICTABLE", IEB_UNPREDICTABLE); + if (result) result = add_const_to_group(values, "RESERVED", IEB_RESERVED); if (!result) { @@ -103,7 +104,7 @@ bool define_undefined_instruction_constants(PyTypeObject *type) goto exit; } - result = attach_constants_group_to_type(type, false, "InstrExpectedBehavior", values, + result = attach_constants_group_to_type(type, false, "ExpectedBehavior", values, "List of possible behaviors of undefined instructions."); exit: diff --git a/plugins/pychrysalide/arch/instructions/undefined.c b/plugins/pychrysalide/arch/instructions/undefined.c index ee7dc51..66ae4b6 100644 --- a/plugins/pychrysalide/arch/instructions/undefined.c +++ b/plugins/pychrysalide/arch/instructions/undefined.c @@ -145,7 +145,7 @@ static int py_undef_instruction_init(PyObject *self, PyObject *args, PyObject *k " UndefInstruction(behavior)" \ "\n" \ "Where behavior is a" \ - " pychrysalide.arch.instructions.UndefInstruction.InstrExpectedBehavior" \ + " pychrysalide.arch.instructions.UndefInstruction.ExpectedBehavior" \ " constant describing the state of the CPU once the instruction is run." /* Récupération des paramètres */ @@ -197,21 +197,21 @@ static PyObject *py_undef_instruction_get_behavior(PyObject *self, void *closure GUndefInstruction *instr; /* Version native */ InstrExpectedBehavior behavior; /* Comportement attendu */ -#define UNDEF_INSTRUCTION_BEHAVIOR_ATTRIB PYTHON_GET_DEF_FULL \ -( \ - behavior, py_undef_instruction, \ - "Consequence carried by the undefined instruction.\n" \ - "\n" \ - "The result is provided as a" \ - " pychrysalide.arch.instructions.UndefInstruction.InstrExpectedBehavior" \ - " constant." \ +#define UNDEF_INSTRUCTION_BEHAVIOR_ATTRIB PYTHON_GET_DEF_FULL \ +( \ + behavior, py_undef_instruction, \ + "Consequence carried by the undefined instruction.\n" \ + "\n" \ + "The result is provided as a" \ + " pychrysalide.arch.instructions.UndefInstruction.ExpectedBehavior" \ + " constant." \ ) instr = G_UNDEF_INSTRUCTION(pygobject_get(self)); behavior = g_undef_instruction_get_behavior(instr); result = cast_with_constants_group_from_type(get_python_undefined_instruction_type(), - "InstrExpectedBehavior", behavior); + "ExpectedBehavior", behavior); return result; |