-
Notifications
You must be signed in to change notification settings - Fork 4
/
InstructionsCALLX.tex
21 lines (20 loc) · 1.29 KB
/
InstructionsCALLX.tex
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
\section{Instructions encoded with CALLX format}
\begin{smalltables}
\begin{longtable}{llllllllllllllllllllllll p{1cm} p{6cm} | }
\caption{Encoding\label{long}}\\
23 & & & 20 & 19 & & & 16 & 15 & & & 12 & 11 & & & 8 & 7 & 6 & 5 & 4 & 3 & & & 0 & & \multicolumn{1}{c}{}\\
\hline
\multicolumn{4}{|c|}{0000} & \multicolumn{4}{c|}{0000} & \multicolumn{4}{c|}{0000} & \multicolumn{4}{c|}{s} & \multicolumn{2}{c|}{11} & \multicolumn{2}{c|}{00} & \multicolumn{4}{c|}{0000} & \multicolumn{1}{c|}{$CALLX0$} & $AR[0] \leftarrow next(PC)$ \newline $PC \leftarrow AR[s]$\\ \hline
\multicolumn{4}{|c|}{0000} & \multicolumn{4}{c|}{0000} & \multicolumn{4}{c|}{0000} & \multicolumn{4}{c|}{s} & \multicolumn{2}{c|}{10} & \multicolumn{2}{c|}{10} & \multicolumn{4}{c|}{0000} & \multicolumn{1}{c|}{$JX$} & $PC \leftarrow AR[s]$\\ \hline
\multicolumn{4}{|c|}{0000} & \multicolumn{4}{c|}{0000} & \multicolumn{4}{c|}{0000} & \multicolumn{4}{c|}{0000} & \multicolumn{2}{c|}{10} & \multicolumn{2}{c|}{00} & \multicolumn{4}{c|}{0000} & \multicolumn{1}{c|}{$RET$} & $PC \leftarrow AR[0]$\\ \hline
\end{longtable}
\begin{longtable}{|p{5cm}|p{5cm}|}
\caption{Assembler\label{long}}\\
\hline
Instruction & \\
\hline
CALLX & callx as\\ \hline
JX & jx as\\ \hline
RET & ret \\ \hline
\end{longtable}
\end{smalltables}