\doxysubsection{SVM code instructions}
\hypertarget{group__codeinstructions}{}\label{group__codeinstructions}\index{SVM code instructions@{SVM code instructions}}


This module contains API functions to handle SVM code instructions.  


\doxysubsubsubsection*{Functions}
\begin{DoxyCompactItemize}
\item 
\mbox{\hyperlink{group__apimacros_ga0d0dae93534c2ba22499a92705a4e391}{SVM\+\_\+\+FUNCTION}} \mbox{\hyperlink{group__api__types_gaab347fe7005c87722bd7d80cfe94333c}{SVM\+\_\+\+Size}} \mbox{\hyperlink{group__codeinstructions_ga3a88ecc14358b983439c3a6512133f89}{svm\+\_\+code\+\_\+get\+\_\+size}} (const void \texorpdfstring{$\ast$}{*}svm, const \mbox{\hyperlink{group__api__types_ga2bac50ec69e3f4b0b660eeb39a183927}{SVM\+\_\+\+Code}} code)
\begin{DoxyCompactList}\small\item\em This function returns the number of instructions of a given SVM code. \end{DoxyCompactList}\item 
\mbox{\hyperlink{group__apimacros_ga0d0dae93534c2ba22499a92705a4e391}{SVM\+\_\+\+FUNCTION}} \mbox{\hyperlink{struct_s_v_m___string}{SVM\+\_\+\+String}} \mbox{\hyperlink{group__codeinstructions_ga6a967b85ffde8dc63275b938e9d5ad61}{svm\+\_\+code\+\_\+instruction\+\_\+get\+\_\+text}} (const void \texorpdfstring{$\ast$}{*}svm, const \mbox{\hyperlink{group__api__types_ga2bac50ec69e3f4b0b660eeb39a183927}{SVM\+\_\+\+Code}} code, const \mbox{\hyperlink{group__api__types_gae19c9a8c6077446e11c34dd11059f647}{SVM\+\_\+\+Address}} address)
\begin{DoxyCompactList}\small\item\em This function returns the text of the instruction at a given address of a given SVM code. \end{DoxyCompactList}\item 
\mbox{\hyperlink{group__apimacros_ga0d0dae93534c2ba22499a92705a4e391}{SVM\+\_\+\+FUNCTION}} \mbox{\hyperlink{group__api__types_ga872facc2eea0e7296e689134f568b804}{SVM\+\_\+\+Boolean}} \mbox{\hyperlink{group__codeinstructions_ga72edbbd376483701c2a1e9cd11aba4e8}{svm\+\_\+code\+\_\+instruction\+\_\+is\+\_\+system}} (const void \texorpdfstring{$\ast$}{*}svm, const \mbox{\hyperlink{group__api__types_ga2bac50ec69e3f4b0b660eeb39a183927}{SVM\+\_\+\+Code}} code, const \mbox{\hyperlink{group__api__types_gae19c9a8c6077446e11c34dd11059f647}{SVM\+\_\+\+Address}} address)
\begin{DoxyCompactList}\small\item\em This function returns whether the instruction at a given address of a given SVM code has the system flag. \end{DoxyCompactList}\item 
\mbox{\hyperlink{group__apimacros_ga0d0dae93534c2ba22499a92705a4e391}{SVM\+\_\+\+FUNCTION}} \mbox{\hyperlink{group__api__types_ga872facc2eea0e7296e689134f568b804}{SVM\+\_\+\+Boolean}} \mbox{\hyperlink{group__codeinstructions_ga7eb4dbbb256ea50511bca86678cd712d}{svm\+\_\+code\+\_\+instruction\+\_\+is\+\_\+waiting}} (const void \texorpdfstring{$\ast$}{*}svm, const \mbox{\hyperlink{group__api__types_ga2bac50ec69e3f4b0b660eeb39a183927}{SVM\+\_\+\+Code}} code, const \mbox{\hyperlink{group__api__types_gae19c9a8c6077446e11c34dd11059f647}{SVM\+\_\+\+Address}} address)
\begin{DoxyCompactList}\small\item\em This function returns whether the instruction at a given address of a given SVM code has the waiting flag. \end{DoxyCompactList}\item 
\mbox{\hyperlink{group__apimacros_ga0d0dae93534c2ba22499a92705a4e391}{SVM\+\_\+\+FUNCTION}} \mbox{\hyperlink{struct_s_v_m___string}{SVM\+\_\+\+String}} \mbox{\hyperlink{group__codeinstructions_gae89dbe2e89f2f47d95cd0211531d0edc}{svm\+\_\+code\+\_\+instruction\+\_\+get\+\_\+location}} (const void \texorpdfstring{$\ast$}{*}svm, const \mbox{\hyperlink{group__api__types_ga2bac50ec69e3f4b0b660eeb39a183927}{SVM\+\_\+\+Code}} code, const \mbox{\hyperlink{group__api__types_gae19c9a8c6077446e11c34dd11059f647}{SVM\+\_\+\+Address}} address)
\begin{DoxyCompactList}\small\item\em This function returns the text of the location of the instruction at a given address of a given SVM code. \end{DoxyCompactList}\end{DoxyCompactItemize}


\doxysubsubsection{Detailed Description}
This module contains API functions to handle SVM code instructions. 



\doxysubsubsection{Function Documentation}
\Hypertarget{group__codeinstructions_ga3a88ecc14358b983439c3a6512133f89}\label{group__codeinstructions_ga3a88ecc14358b983439c3a6512133f89} 
\index{SVM code instructions@{SVM code instructions}!svm\_code\_get\_size@{svm\_code\_get\_size}}
\index{svm\_code\_get\_size@{svm\_code\_get\_size}!SVM code instructions@{SVM code instructions}}
\doxysubsubsubsection{\texorpdfstring{svm\_code\_get\_size()}{svm\_code\_get\_size()}}
{\footnotesize\ttfamily \mbox{\hyperlink{group__apimacros_ga0d0dae93534c2ba22499a92705a4e391}{SVM\+\_\+\+FUNCTION}} \mbox{\hyperlink{group__api__types_gaab347fe7005c87722bd7d80cfe94333c}{SVM\+\_\+\+Size}} svm\+\_\+code\+\_\+get\+\_\+size (\begin{DoxyParamCaption}\item[{const void \texorpdfstring{$\ast$}{*}}]{svm,  }\item[{const \mbox{\hyperlink{group__api__types_ga2bac50ec69e3f4b0b660eeb39a183927}{SVM\+\_\+\+Code}}}]{code }\end{DoxyParamCaption})}



This function returns the number of instructions of a given SVM code. 


\begin{DoxyParams}[1]{Parameters}
\mbox{\texttt{ in}}  & {\em svm} & The SVM pointer passed as first argument of the callback function. \\
\hline
\mbox{\texttt{ in}}  & {\em code} & The code to be diagnosed.\\
\hline
\end{DoxyParams}
Valid addresses for this code are from 0 to the number returned by this function minus one.

\begin{DoxyReturn}{Returns}
The number of instructions of the SVM code.
\end{DoxyReturn}

\begin{DoxyExceptions}{Exceptions}
{\em FAILURE} & interruption when a parameter is incorrect. (Please refer to the main description page of this API.) \\
\hline
\end{DoxyExceptions}
\Hypertarget{group__codeinstructions_gae89dbe2e89f2f47d95cd0211531d0edc}\label{group__codeinstructions_gae89dbe2e89f2f47d95cd0211531d0edc} 
\index{SVM code instructions@{SVM code instructions}!svm\_code\_instruction\_get\_location@{svm\_code\_instruction\_get\_location}}
\index{svm\_code\_instruction\_get\_location@{svm\_code\_instruction\_get\_location}!SVM code instructions@{SVM code instructions}}
\doxysubsubsubsection{\texorpdfstring{svm\_code\_instruction\_get\_location()}{svm\_code\_instruction\_get\_location()}}
{\footnotesize\ttfamily \mbox{\hyperlink{group__apimacros_ga0d0dae93534c2ba22499a92705a4e391}{SVM\+\_\+\+FUNCTION}} \mbox{\hyperlink{struct_s_v_m___string}{SVM\+\_\+\+String}} svm\+\_\+code\+\_\+instruction\+\_\+get\+\_\+location (\begin{DoxyParamCaption}\item[{const void \texorpdfstring{$\ast$}{*}}]{svm,  }\item[{const \mbox{\hyperlink{group__api__types_ga2bac50ec69e3f4b0b660eeb39a183927}{SVM\+\_\+\+Code}}}]{code,  }\item[{const \mbox{\hyperlink{group__api__types_gae19c9a8c6077446e11c34dd11059f647}{SVM\+\_\+\+Address}}}]{address }\end{DoxyParamCaption})}



This function returns the text of the location of the instruction at a given address of a given SVM code. 


\begin{DoxyParams}[1]{Parameters}
\mbox{\texttt{ in}}  & {\em svm} & The SVM pointer passed as first argument of the callback function. \\
\hline
\mbox{\texttt{ in}}  & {\em code} & The code to be diagnosed. \\
\hline
\mbox{\texttt{ in}}  & {\em address} & The address of the instruction.\\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
A \doxylink{struct_s_v_m___string}{SVM\+\_\+\+String} with the text of the location in the code text of the instruction.
\end{DoxyReturn}

\begin{DoxyExceptions}{Exceptions}
{\em FAILURE} & interruption when a parameter is incorrect. (Please refer to the main description page of this API.) \\
\hline
{\em FAILURE} & interruption when the address is outside the address range of the SVM code. \\
\hline
\end{DoxyExceptions}
\Hypertarget{group__codeinstructions_ga6a967b85ffde8dc63275b938e9d5ad61}\label{group__codeinstructions_ga6a967b85ffde8dc63275b938e9d5ad61} 
\index{SVM code instructions@{SVM code instructions}!svm\_code\_instruction\_get\_text@{svm\_code\_instruction\_get\_text}}
\index{svm\_code\_instruction\_get\_text@{svm\_code\_instruction\_get\_text}!SVM code instructions@{SVM code instructions}}
\doxysubsubsubsection{\texorpdfstring{svm\_code\_instruction\_get\_text()}{svm\_code\_instruction\_get\_text()}}
{\footnotesize\ttfamily \mbox{\hyperlink{group__apimacros_ga0d0dae93534c2ba22499a92705a4e391}{SVM\+\_\+\+FUNCTION}} \mbox{\hyperlink{struct_s_v_m___string}{SVM\+\_\+\+String}} svm\+\_\+code\+\_\+instruction\+\_\+get\+\_\+text (\begin{DoxyParamCaption}\item[{const void \texorpdfstring{$\ast$}{*}}]{svm,  }\item[{const \mbox{\hyperlink{group__api__types_ga2bac50ec69e3f4b0b660eeb39a183927}{SVM\+\_\+\+Code}}}]{code,  }\item[{const \mbox{\hyperlink{group__api__types_gae19c9a8c6077446e11c34dd11059f647}{SVM\+\_\+\+Address}}}]{address }\end{DoxyParamCaption})}



This function returns the text of the instruction at a given address of a given SVM code. 


\begin{DoxyParams}[1]{Parameters}
\mbox{\texttt{ in}}  & {\em svm} & The SVM pointer passed as first argument of the callback function. \\
\hline
\mbox{\texttt{ in}}  & {\em code} & The code to be diagnosed. \\
\hline
\mbox{\texttt{ in}}  & {\em address} & The address of the instruction.\\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
A \doxylink{struct_s_v_m___string}{SVM\+\_\+\+String} with the text of the instruction.
\end{DoxyReturn}

\begin{DoxyExceptions}{Exceptions}
{\em FAILURE} & interruption when a parameter is incorrect. (Please refer to the main description page of this API.) \\
\hline
{\em FAILURE} & interruption when the address is outside the address range of the SVM code. \\
\hline
\end{DoxyExceptions}
\Hypertarget{group__codeinstructions_ga72edbbd376483701c2a1e9cd11aba4e8}\label{group__codeinstructions_ga72edbbd376483701c2a1e9cd11aba4e8} 
\index{SVM code instructions@{SVM code instructions}!svm\_code\_instruction\_is\_system@{svm\_code\_instruction\_is\_system}}
\index{svm\_code\_instruction\_is\_system@{svm\_code\_instruction\_is\_system}!SVM code instructions@{SVM code instructions}}
\doxysubsubsubsection{\texorpdfstring{svm\_code\_instruction\_is\_system()}{svm\_code\_instruction\_is\_system()}}
{\footnotesize\ttfamily \mbox{\hyperlink{group__apimacros_ga0d0dae93534c2ba22499a92705a4e391}{SVM\+\_\+\+FUNCTION}} \mbox{\hyperlink{group__api__types_ga872facc2eea0e7296e689134f568b804}{SVM\+\_\+\+Boolean}} svm\+\_\+code\+\_\+instruction\+\_\+is\+\_\+system (\begin{DoxyParamCaption}\item[{const void \texorpdfstring{$\ast$}{*}}]{svm,  }\item[{const \mbox{\hyperlink{group__api__types_ga2bac50ec69e3f4b0b660eeb39a183927}{SVM\+\_\+\+Code}}}]{code,  }\item[{const \mbox{\hyperlink{group__api__types_gae19c9a8c6077446e11c34dd11059f647}{SVM\+\_\+\+Address}}}]{address }\end{DoxyParamCaption})}



This function returns whether the instruction at a given address of a given SVM code has the system flag. 


\begin{DoxyParams}[1]{Parameters}
\mbox{\texttt{ in}}  & {\em svm} & The SVM pointer passed as first argument of the callback function. \\
\hline
\mbox{\texttt{ in}}  & {\em code} & The code to be diagnosed. \\
\hline
\mbox{\texttt{ in}}  & {\em address} & The address of the instruction.\\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
TRUE when the instruction is system, FALSE otherwise.
\end{DoxyReturn}

\begin{DoxyExceptions}{Exceptions}
{\em FAILURE} & interruption when a parameter is incorrect. (Please refer to the main description page of this API.) \\
\hline
{\em FAILURE} & interruption when the address is outside the address range of the SVM code. \\
\hline
\end{DoxyExceptions}
\Hypertarget{group__codeinstructions_ga7eb4dbbb256ea50511bca86678cd712d}\label{group__codeinstructions_ga7eb4dbbb256ea50511bca86678cd712d} 
\index{SVM code instructions@{SVM code instructions}!svm\_code\_instruction\_is\_waiting@{svm\_code\_instruction\_is\_waiting}}
\index{svm\_code\_instruction\_is\_waiting@{svm\_code\_instruction\_is\_waiting}!SVM code instructions@{SVM code instructions}}
\doxysubsubsubsection{\texorpdfstring{svm\_code\_instruction\_is\_waiting()}{svm\_code\_instruction\_is\_waiting()}}
{\footnotesize\ttfamily \mbox{\hyperlink{group__apimacros_ga0d0dae93534c2ba22499a92705a4e391}{SVM\+\_\+\+FUNCTION}} \mbox{\hyperlink{group__api__types_ga872facc2eea0e7296e689134f568b804}{SVM\+\_\+\+Boolean}} svm\+\_\+code\+\_\+instruction\+\_\+is\+\_\+waiting (\begin{DoxyParamCaption}\item[{const void \texorpdfstring{$\ast$}{*}}]{svm,  }\item[{const \mbox{\hyperlink{group__api__types_ga2bac50ec69e3f4b0b660eeb39a183927}{SVM\+\_\+\+Code}}}]{code,  }\item[{const \mbox{\hyperlink{group__api__types_gae19c9a8c6077446e11c34dd11059f647}{SVM\+\_\+\+Address}}}]{address }\end{DoxyParamCaption})}



This function returns whether the instruction at a given address of a given SVM code has the waiting flag. 


\begin{DoxyParams}[1]{Parameters}
\mbox{\texttt{ in}}  & {\em svm} & The SVM pointer passed as first argument of the callback function. \\
\hline
\mbox{\texttt{ in}}  & {\em code} & The code to be diagnosed. \\
\hline
\mbox{\texttt{ in}}  & {\em address} & The address of the instruction.\\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
TRUE when the instruction is waiting, FALSE otherwise.
\end{DoxyReturn}

\begin{DoxyExceptions}{Exceptions}
{\em FAILURE} & interruption when a parameter is incorrect. (Please refer to the main description page of this API.) \\
\hline
{\em FAILURE} & interruption when the address is outside the address range of the SVM code. \\
\hline
\end{DoxyExceptions}
