8 #define DEFAULT_STACK_SIZE 0x4000
9 #define DEFAULT_CALL_DEPTH 0x400
11 void init_stack(void);
13 uint16_t variable(uint16_t);
14 void store_variable(uint16_t, uint16_t);
15 uint16_t *stack_top_element(void);
19 uint16_t direct_call(uint16_t);
21 void do_return(uint16_t);
23 int save_quetzal(zterp_io *, int);
24 int restore_quetzal(zterp_io *, int);
36 void zret_popped(void);
43 void zcheck_arg_count(void);
44 void zpop_stack(void);
45 void zpush_stack(void);
46 void zsave_undo(void);
47 void zrestore_undo(void);
51 void zcall_store(void);
52 void zcall_nostore(void);
54 #define zcall zcall_store
55 #define zcall_1n zcall_nostore
56 #define zcall_1s zcall_store
57 #define zcall_2n zcall_nostore
58 #define zcall_2s zcall_store
59 #define zcall_vn zcall_nostore
60 #define zcall_vn2 zcall_nostore
61 #define zcall_vs2 zcall_store