Imported Upstream version 2.9.0
[debian/cc1111] / device / lib / pic16 / libsdcc / stack / stack.S
1 ;
2 ; stack.S - automatically allocate stack for PIC16 targets
3 ;           with out the need for using the #pragma stack
4 ;           directive
5 ;
6 ; written by Vangelis Rokas, 2006 <vrokas AT users.sourceforge.net>
7 ;
8 ; object will only be used if and only if #pragma stack is not
9 ; defined in one of the projet's sources
10
11         radix dec
12
13 ;--------------------------------------------------------
14 ; public variables in this module
15 ;--------------------------------------------------------
16         global _stack
17         global _stack_end
18
19 ; allocate space for stack
20 stack_section   udata
21 _stack          res     0xff
22 _stack_end      res     1
23
24         end