committed ret/retn

--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%4089
This commit is contained in:
David Anderson
2006-09-21 01:48:19 +00:00
parent 894ac3c513
commit 2ada767528
4 changed files with 66 additions and 2 deletions
+5
View File
@@ -21,6 +21,10 @@ typedef int32_t cell_t;
#define SP_ERR_STACKERR 9 /* Stack/Heap collision */
#define SP_ERR_NOTDEBUGGING 10 /* Debug mode was not on or debug section not found */
#define SP_ERR_INVALID_INSTRUCTION 11 /* Invalid instruction was encountered */
#define SP_ERR_MEMACCESS 12 /* Invalid memory access */
#define SP_ERR_STACKMIN 13 /* Stack went beyond its minimum value */
#define SP_ERR_HEAPMIN 14 /* Heap went beyond its minimum value */
#define SP_ERR_DIVIDE_BY_ZERO 15 /* Division by zero */
/**********************************************
*** The following structures are reference structures.
@@ -203,6 +207,7 @@ typedef struct sp_context_s
cell_t alt; /* ALT register */
cell_t hp; /* heap pointer */
cell_t sp; /* stack pointer */
cell_t frm; /* frame pointer */
int32_t err; /* error code */
uint32_t pushcount; /* push count */
/* context rebased database */