Initial revision
[ssr] / StraySrc / Libraries / BAS / src / sh / lit
1 ;
2 ; lit.sh
3 ;
4 ; Literal pool management
5 ;
6 ; © 1994-1998 Straylight
7 ;
8
9 ;----- Licensing note -------------------------------------------------------
10 ;
11 ; This file is part of Straylight's BASIC Assembler Supplement.
12 ;
13 ; BAS 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 ; BAS 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 BAS. If not, write to the Free Software Foundation,
25 ; 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
26
27 ;----- Overview -------------------------------------------------------------
28 ;
29 ; Functions provided:
30 ;
31 ; lit_add
32 ; lit_ltorg
33 ; lit_init
34 ; lit_end
35
36 ; --- lit_add ---
37 ;
38 ; On entry: R0 == address of literal data
39 ; R1 == size of literal data
40 ; R2 == word align flag
41 ;
42 ; On exit: R0 set up as described below.
43 ;
44 ; Use: Adds the given data to the current literal pool. On the
45 ; first pass, it returns the value of P% in R0. On the
46 ; second pass, it returns the address of the literal item.
47
48 IMPORT lit_add
49
50 ; --- lit_ltorg ---
51 ;
52 ; On entry: --
53 ;
54 ; On exit: --
55 ;
56 ; Use: Inserts a literal pool at the current position.
57
58 IMPORT lit_ltorg
59
60 ; --- lit_init ---
61 ;
62 ; On entry: --
63 ;
64 ; On exit: --
65 ;
66 ; Use: Initialises things for the Literal Manager.
67
68 IMPORT lit_init
69
70 ; --- lit_end ---
71 ;
72 ; On entry: --
73 ;
74 ; On exit: --
75 ;
76 ; Use: Tidies up the Literal Manager after saving an AOF file.
77
78 IMPORT lit_end
79
80 ;----- That's all, folks ----------------------------------------------------
81
82 END