* doc/sdccman.lyx: updated PIC14/16 command line args, updated PIC14
[fw/sdcc] / device / lib / pic16 / libsdcc / stack / stack.S
1
2
3 ;
4 ; stack.S - automatically allocate stack for PIC16 targets
5 ;           with out the need for using the #pragma stack
6 ;           directive
7 ;
8 ; written by Vangelis Rokas, 2006 <vrokas AT users.sourceforge.net>
9 ;
10 ;
11 ; $Id$
12 ;
13
14 ; object will only be used if and only if #pragma stack is not
15 ; defined in one of the projet's sources
16
17         radix dec
18
19 ;--------------------------------------------------------
20 ; public variables in this module
21 ;--------------------------------------------------------
22         global _stack
23         global _stack_end
24
25
26 ; allocate space for stack
27 stack_section   udata   0x0200
28 _stack          res     0xff
29 _stack_end      res     1
30
31         end