From: brian Date: Thu, 18 Mar 2004 22:49:46 +0000 (-0800) Subject: tableswitch code X-Git-Tag: merge~52 X-Git-Url: http://git.megacz.com/?p=nestedvm.git;a=commitdiff_plain;h=9cf72f593ddd22555811ee8d3e191386a1caea71 tableswitch code darcs-hash:20040318224946-24bed-2e6e5ece8dbbf94f50269928751211786329b4ca.gz --- diff --git a/doc/nestedvm.ivme04.tex b/doc/nestedvm.ivme04.tex index 87be5a3..5511fcd 100644 --- a/doc/nestedvm.ivme04.tex +++ b/doc/nestedvm.ivme04.tex @@ -409,7 +409,11 @@ switch(pc&0xffffff00) { \begin{figure} {\footnotesize\begin{verbatim} -Brian, we're missing the code here... can you put it in? +switch(pc>>>8) { + case 0x1: run_100(); + case 0x2: run_200(); + case 0x3: run_300(); +} \end{verbatim}} \caption{\label{tableswitch} Code which {\it is} optimized into a tableswitch} \end{figure}