summaryrefslogtreecommitdiff
path: root/misc/pascal/insn16/include
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2008-01-05 00:13:43 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2008-01-05 00:13:43 +0000
commit92a9c5cac10d3dea8f340b9e6d3d09596f1ca539 (patch)
treebf71b895e80501522ccf396230e0ec42a5760500 /misc/pascal/insn16/include
parenteca8fc5427fae36404c8f3772f8ed4f2f36100ea (diff)
downloadnuttx-92a9c5cac10d3dea8f340b9e6d3d09596f1ca539.tar.gz
nuttx-92a9c5cac10d3dea8f340b9e6d3d09596f1ca539.tar.bz2
nuttx-92a9c5cac10d3dea8f340b9e6d3d09596f1ca539.zip
Remove pmach.h
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@486 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'misc/pascal/insn16/include')
-rw-r--r--misc/pascal/insn16/include/pexec.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/misc/pascal/insn16/include/pexec.h b/misc/pascal/insn16/include/pexec.h
index de35589d9..2b705ea34 100644
--- a/misc/pascal/insn16/include/pexec.h
+++ b/misc/pascal/insn16/include/pexec.h
@@ -44,10 +44,27 @@
* Definitions
****************************************************************************/
+#define BPERI 2
+#define ITOBSTACK(i) ((i) << 1)
+#define BTOISTACK(i) ((i) >> 1)
+#define ROUNDBTOI(i) (((i) + 1) >> 1)
+
/****************************************************************************
* Type Definitions
****************************************************************************/
+typedef uint16 uStackType; /* Stack values are 16-bits in length */
+typedef sint16 sStackType;
+typedef uint16 addrType; /* Addresses are 16-bits in length */
+typedef uint16 levelType; /* Limits to MAXUINT16 levels */
+
+union stack_u
+{
+ uStackType *i;
+ ubyte *b;
+};
+typedef union stack_u stackType;
+
/* This structure describes the parameters needed to initialize the p-code
* interpreter.
*/