tableswitch code
authorbrian <brian@brianweb.net>
Thu, 18 Mar 2004 22:49:46 +0000 (14:49 -0800)
committerbrian <brian@brianweb.net>
Thu, 18 Mar 2004 22:49:46 +0000 (14:49 -0800)
darcs-hash:20040318224946-24bed-2e6e5ece8dbbf94f50269928751211786329b4ca.gz

doc/nestedvm.ivme04.tex

index 87be5a3..5511fcd 100644 (file)
@@ -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}