1
2; ===============================================================
3; Dec 2013
4; ===============================================================
5;
6; void p_stack_push(p_stack_t *s, void *item)
7;
8; Push item onto stack.
9;
10; ===============================================================
11
12SECTION code_clib
13SECTION code_adt_p_stack
14
15PUBLIC asm_p_stack_push
16
17EXTERN asm_p_forward_list_insert_after
18
19defc asm_p_stack_push = asm_p_forward_list_insert_after
20
21   ; enter : hl = stack *
22   ;         de = void *item
23   ;
24   ; exit  : hl = void *item
25   ;         de = stack *
26   ;         z flag set if item is the only one in stack
27   ;
28   ; uses  : af, de, hl
29