This module contains API functions to handle SVM code instructions.
More...
This module contains API functions to handle SVM code instructions.
◆ svm_code_get_size()
This function returns the number of instructions of a given SVM code.
- Parameters
-
[in] | svm | The SVM pointer passed as first argument of the callback function. |
[in] | code | The code to be diagnosed. |
Valid addresses for this code are from 0 to the number returned by this function minus one.
- Returns
- The number of instructions of the SVM code.
- Exceptions
-
FAILURE | interruption when a parameter is incorrect. (Please refer to the main description page of this API.) |
◆ svm_code_instruction_get_location()
This function returns the text of the location of the instruction at a given address of a given SVM code.
- Parameters
-
[in] | svm | The SVM pointer passed as first argument of the callback function. |
[in] | code | The code to be diagnosed. |
[in] | address | The address of the instruction. |
- Returns
- A SVM_String with the text of the location in the code text of the instruction.
- Exceptions
-
FAILURE | interruption when a parameter is incorrect. (Please refer to the main description page of this API.) |
FAILURE | interruption when the address is outside the address range of the SVM code. |
◆ svm_code_instruction_get_text()
This function returns the text of the instruction at a given address of a given SVM code.
- Parameters
-
[in] | svm | The SVM pointer passed as first argument of the callback function. |
[in] | code | The code to be diagnosed. |
[in] | address | The address of the instruction. |
- Returns
- A SVM_String with the text of the instruction.
- Exceptions
-
FAILURE | interruption when a parameter is incorrect. (Please refer to the main description page of this API.) |
FAILURE | interruption when the address is outside the address range of the SVM code. |
◆ svm_code_instruction_is_system()
This function returns whether the instruction at a given address of a given SVM code has the system flag.
- Parameters
-
[in] | svm | The SVM pointer passed as first argument of the callback function. |
[in] | code | The code to be diagnosed. |
[in] | address | The address of the instruction. |
- Returns
- TRUE when the instruction is system, FALSE otherwise.
- Exceptions
-
FAILURE | interruption when a parameter is incorrect. (Please refer to the main description page of this API.) |
FAILURE | interruption when the address is outside the address range of the SVM code. |
◆ svm_code_instruction_is_waiting()
This function returns whether the instruction at a given address of a given SVM code has the waiting flag.
- Parameters
-
[in] | svm | The SVM pointer passed as first argument of the callback function. |
[in] | code | The code to be diagnosed. |
[in] | address | The address of the instruction. |
- Returns
- TRUE when the instruction is waiting, FALSE otherwise.
- Exceptions
-
FAILURE | interruption when a parameter is incorrect. (Please refer to the main description page of this API.) |
FAILURE | interruption when the address is outside the address range of the SVM code. |