summaryrefslogtreecommitdiffstats
path: root/vmstk.h
diff options
context:
space:
mode:
Diffstat (limited to 'vmstk.h')
-rw-r--r--vmstk.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/vmstk.h b/vmstk.h
index 4e81f5a0..30bb9009 100644
--- a/vmstk.h
+++ b/vmstk.h
@@ -22,9 +22,14 @@
#ifndef INCLUDED_VMSTK_H
#define INCLUDED_VMSTK_H
+/* The max size of the stack - TODO: make configurable */
+#define VMSTK_SIZE 256
+
/* the vmstk object */
typedef struct vmstk_s {
BEGINobjInstance; /* Data to implement generic object - MUST be the first data element! */
+ var_t *vStk[VMSTK_SIZE];/* the actual stack */
+ int iStkPtr; /* stack pointer, points to next free location, grows from 0 --> topend */
} vmstk_t;