;
; stack.S - automatically allocate stack for PIC16 targets
;           with out the need for using the #pragma stack
;           directive
;
; written by Vangelis Rokas, 2006 <vrokas AT users.sourceforge.net>
;
; object will only be used if and only if #pragma stack is not
; defined in one of the projet's sources

        radix dec

;--------------------------------------------------------
; public variables in this module
;--------------------------------------------------------
        global _stack
        global _stack_end

; allocate space for stack
stack_section   udata
_stack          res     0xff
_stack_end      res     1

        end
