From 4992be54731ac3a0299a7d611e1f617ca97e1e38 Mon Sep 17 00:00:00 2001 From: John Winans Date: Tue, 10 Mar 2020 11:29:20 -0500 Subject: [PATCH] Mention pcrel_21/13 & describe jal w/pcrel_21 --- book/rv32/chapter.tex | 20 ++++++++++++++------ 1 file changed, 14 insertions(+), 6 deletions(-) diff --git a/book/rv32/chapter.tex b/book/rv32/chapter.tex index 58f2495..9d88ce1 100644 --- a/book/rv32/chapter.tex +++ b/book/rv32/chapter.tex @@ -5,11 +5,6 @@ \label{chapter:RV32} \index{RV32} -\section{Introduction} - -{\em XXX NOTE: This is a first draft of what is being detailed in the previous chapter} - -%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \section{Conventions and Terminology} @@ -206,6 +201,19 @@ The address of the current instruction plus a numeric offset. The address of the current instruction minus a numeric offset. +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +\subsection{pcrel\_13} + +An address that is within $[-4096..4095]$ of the current instruction location. +These addresses are typically expressed in assembly source code by using labels. + +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +\subsection{pcrel\_21} + +An address that is within $[-1048576..1048575]$ of the current instruction +location. +These addresses are typically expressed in assembly source code by using labels. + %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \subsection{pc} @@ -454,7 +462,7 @@ capable of expressing a wider range of target addresses than the 20-bit imm value alone. \begin{itemize} -\item\instructionHeader{jal\ \ \ rd,imm} +\item\instructionHeader{jal\ \ \ rd,pcrel\_21} \label{insn:jal} Set register \verb@rd@ to the address of the next instruction that would