chiark / gitweb /
Initial revision
[ssr] / StraySrc / Libraries / Core / sh / flexws
1 ;
2 ; flexws.sh
3 ;
4 ; Flexible memory handling workspace (MDW)
5 ;
6 ; © 1998 Straylight
7 ;
8
9 ;----- Licensing note -------------------------------------------------------
10 ;
11 ; This file is part of Straylight's flex.
12 ;
13 ; Flex is free software; you can redistribute it and/or modify
14 ; it under the terms of the GNU General Public License as published by
15 ; the Free Software Foundation; either version 2, or (at your option)
16 ; any later version.
17 ;
18 ; Flex is distributed in the hope that it will be useful,
19 ; but WITHOUT ANY WARRANTY; without even the implied warranty of
20 ; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
21 ; GNU General Public License for more details.
22 ;
23 ; You should have received a copy of the GNU General Public License
24 ; along with Flex.  If not, write to the Free Software Foundation,
25 ; 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
26
27 ;----- Options --------------------------------------------------------------
28 ;
29 ; Options must be defined, although the value is irrelevant.
30 ;
31 ; FLEXWS_DYNAREA        Define workspace for dynamic area support
32 ; FLEXWS_STACK          Define workspace for relocation stack support
33
34 flex__flags     #       4                       ;Various interesting flags
35 flex__base      #       4                       ;Base of the flex area
36 flex__free      #       4                       ;Start of free area
37 flex__end       #       4                       ;End of the flex area
38 flex__chunk     #       4                       ;Page size to allocate in
39
40                 [       :DEF:FLEXWS_DYNAREA
41 flex__dynArea   #       4                       ;Dynamic area handle
42                 ]
43
44                 [       :DEF:FLEXWS_STACK
45 flex__relocSP   #       4                       ;Stack ptr for relocation stk
46 flex__relocStk  #       256*4                   ;Make space for 256 entries
47                 ]
48
49 ;----- That's all, folks ----------------------------------------------------
50
51                 END