00001
00002
00003
00004
00005
00006
00007
00008
00017 #ifndef __ndk_stack_h__
00018 #define __ndk_stack_h__
00019
00020 #include "console.h"
00021
00022
00023
00024
00025
00026
00027
00028 #define STACK_EXPAND_UP (1)
00029 #define STACK_EXPAND_DOWN (0)
00030
00031 typedef struct
00032 {
00033 long flags;
00034
00035 long pointer;
00036 long base;
00037 } Stack;
00038
00039 void stackPush(Stack *stack, long data);
00040 long stackPop(Stack *stack);
00041 long stackPeek(Stack *stack, long offset);
00042 void stackPoke(Stack *stack, long offset, long data);
00043 void stackRemove(Stack *stack, long offset, long count);
00044 void stackInsert(Stack *stack, long offset, long *data, long count);
00045 void stackDisplay(Stack *stack);
00046
00047 #endif
00048