; ; lit.sh ; ; Literal pool management ; ; © 1994-1998 Straylight ; ;----- Licensing note ------------------------------------------------------- ; ; This file is part of Straylight's BASIC Assembler Supplement. ; ; BAS is free software; you can redistribute it and/or modify ; it under the terms of the GNU General Public License as published by ; the Free Software Foundation; either version 2, or (at your option) ; any later version. ; ; BAS is distributed in the hope that it will be useful, ; but WITHOUT ANY WARRANTY; without even the implied warranty of ; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ; GNU General Public License for more details. ; ; You should have received a copy of the GNU General Public License ; along with BAS. If not, write to the Free Software Foundation, ; 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. ;----- Overview ------------------------------------------------------------- ; ; Functions provided: ; ; lit_add ; lit_ltorg ; lit_init ; lit_end ; --- lit_add --- ; ; On entry: R0 == address of literal data ; R1 == size of literal data ; R2 == word align flag ; ; On exit: R0 set up as described below. ; ; Use: Adds the given data to the current literal pool. On the ; first pass, it returns the value of P% in R0. On the ; second pass, it returns the address of the literal item. IMPORT lit_add ; --- lit_ltorg --- ; ; On entry: -- ; ; On exit: -- ; ; Use: Inserts a literal pool at the current position. IMPORT lit_ltorg ; --- lit_init --- ; ; On entry: -- ; ; On exit: -- ; ; Use: Initialises things for the Literal Manager. IMPORT lit_init ; --- lit_end --- ; ; On entry: -- ; ; On exit: -- ; ; Use: Tidies up the Literal Manager after saving an AOF file. IMPORT lit_end ;----- That's all, folks ---------------------------------------------------- END