\section{lib/mint/modsi3.c File Reference}
\label{modsi3_8c}\index{lib/mint/modsi3.c@{lib/mint/modsi3.c}}
\subsection*{Functions}
\begin{CompactItemize}
\item 
{\bf \_\-\_\-asm\_\-\_\-} (\char`\"{}.section .text$\backslash$n$\backslash$t\char`\"{}\char`\"{}.global \_\-\_\-\_\-modsi3$\backslash$n\char`\"{}\char`\"{}\_\-\_\-\_\-modsi3:$\backslash$n$\backslash$t\char`\"{}\char`\"{}push r4$\backslash$n$\backslash$t\char`\"{}\char`\"{}push r5$\backslash$n$\backslash$t\char`\"{}\char`\"{}push r6$\backslash$n$\backslash$t\char`\"{}\char`\"{}push r0$\backslash$n$\backslash$t\char`\"{}\char`\"{}mov.w r1,r6$\backslash$n$\backslash$t\char`\"{}\char`\"{}mov.w r0,r5$\backslash$n$\backslash$t\char`\"{}\char`\"{}mov.w r3,r4$\backslash$n$\backslash$t\char`\"{}\char`\"{}mov.w r2,r3$\backslash$n$\backslash$t\char`\"{}\char`\"{}jsr @@88$\backslash$n$\backslash$t\char`\"{}\char`\"{}mov.w r4,r1$\backslash$n$\backslash$t\char`\"{}\char`\"{}mov.w r3,r0$\backslash$n$\backslash$t\char`\"{}\char`\"{}\# negate remainder if numerator was less than zero$\backslash$n$\backslash$t\char`\"{}\char`\"{}btst \#0x7,@r7$\backslash$n$\backslash$t\char`\"{}\char`\"{}beq skipnegate$\backslash$n$\backslash$t\char`\"{}\char`\"{}not.b r0l$\backslash$n$\backslash$t\char`\"{}\char`\"{}not.b r0h$\backslash$n$\backslash$t\char`\"{}\char`\"{}not.b r1l$\backslash$n$\backslash$t\char`\"{}\char`\"{}not.b r1h$\backslash$n$\backslash$t\char`\"{}\char`\"{}add.b \#0x1,r1l$\backslash$n$\backslash$t\char`\"{}\char`\"{}addx \#0x0,r1h$\backslash$n$\backslash$t\char`\"{}\char`\"{}addx \#0x0,r0l$\backslash$n$\backslash$t\char`\"{}\char`\"{}addx \#0x0,r0h$\backslash$n\char`\"{}\char`\"{}skipnegate:$\backslash$n$\backslash$t\char`\"{}\char`\"{}adds \#0x2,r7$\backslash$n$\backslash$t\char`\"{}\char`\"{}pop r6$\backslash$n$\backslash$t\char`\"{}\char`\"{}pop r5$\backslash$n$\backslash$t\char`\"{}\char`\"{}pop r4$\backslash$n$\backslash$t\char`\"{}\char`\"{}rts\char`\"{})
\end{CompactItemize}


\subsection{Function Documentation}
\index{modsi3.c@{modsi3.c}!__asm__@{\_\-\_\-asm\_\-\_\-}}
\index{__asm__@{\_\-\_\-asm\_\-\_\-}!modsi3.c@{modsi3.c}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}\_\-\_\-asm\_\-\_\- (\char`\"{}.section .text$\backslash$n$\backslash$t\char`\"{}\char`\"{}.global \_\-\_\-\_\-modsi3$\backslash$n\char`\"{}\char`\"{}\_\-\_\-\_\-modsi3:$\backslash$n$\backslash$t\char`\"{}\char`\"{}push r4$\backslash$n$\backslash$t\char`\"{}\char`\"{}push r5$\backslash$n$\backslash$t\char`\"{}\char`\"{}push r6$\backslash$n$\backslash$t\char`\"{}\char`\"{}push r0$\backslash$n$\backslash$t\char`\"{}\char`\"{}mov.w  {\em r1}, r6$\backslash$n$\backslash$t\char`\"{}\char`\"{}mov.w {\em r0}, r5$\backslash$n$\backslash$t\char`\"{}\char`\"{}mov.w {\em r3}, r4$\backslash$n$\backslash$t\char`\"{}\char`\"{}mov.w {\em r2}, r3$\backslash$n$\backslash$t\char`\"{}\char`\"{}jsr @@88$\backslash$n$\backslash$t\char`\"{}\char`\"{}mov.w {\em r4}, r1$\backslash$n$\backslash$t\char`\"{}\char`\"{}mov.w {\em r3}, r0$\backslash$n$\backslash$t\char`\"{}\char`\"{}\#negate remainder if numerator was less than zero$\backslash$n$\backslash$t\char`\"{}\char`\"{}btst\# {\em 0x7}, @r7$\backslash$n$\backslash$t\char`\"{}\char`\"{}beq skipnegate$\backslash$n$\backslash$t\char`\"{}\char`\"{}not.b r0l$\backslash$n$\backslash$t\char`\"{}\char`\"{}not.b r0h$\backslash$n$\backslash$t\char`\"{}\char`\"{}not.b r1l$\backslash$n$\backslash$t\char`\"{}\char`\"{}not.b r1h$\backslash$n$\backslash$t\char`\"{}\char`\"{}add.b\# {\em 0x1}, r1l$\backslash$n$\backslash$t\char`\"{}\char`\"{}addx\# {\em 0x0}, r1h$\backslash$n$\backslash$t\char`\"{}\char`\"{}addx\# {\em 0x0}, r0l$\backslash$n$\backslash$t\char`\"{}\char`\"{}addx\# {\em 0x0}, r0h$\backslash$n\char`\"{}\char`\"{}skipnegate:$\backslash$n$\backslash$t\char`\"{}\char`\"{}adds\# {\em 0x2}, r7$\backslash$n$\backslash$t\char`\"{}\char`\"{}pop r6$\backslash$n$\backslash$t\char`\"{}\char`\"{}pop r5$\backslash$n$\backslash$t\char`\"{}\char`\"{}pop r4$\backslash$n$\backslash$t\char`\"{}\char`\"{}rts\char`\"{})}\label{modsi3_8c_a0}


