Buy Contact NSDSP Home

mcu_instruction_spacing

This function returns the number of address bytes occupied by an instruction

Syntax

int mcu_instruction_spacing(
        mcu_t             mcu
);

Parameters

mcu - a reference to the MCU object returned by mcu_create or mcu_get_slave_core function.

Return

The function returns the difference between addresses of two consecutive instructions.

Notes

Some of the target devices have variable instruction length. For example, PIC32MM uses MicroMIPS where the instructions may be 16-bit or 32-bit long. In such cases, the function returns the spacing for full size instructions (4 for PIC32MM).

 

Minimum library version - 163

Northern Software Home NSDSP Contact Us Purchase/View Cart

© 2007-2025 Northern Software Inc. All Rights Reserved.