; ; bas.sh ; ; Base code for BAS ; ; © 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: ; ; bas_argString ; bas_badCall ; bas_noMem ; --- bas_argString --- ; ; On entry: R1 == address of destination buffer ; R9 == pointer to argument entry ; R10 == number of arguments left ; ; On exit: R9 increased by 8 ; R10 decreased by 1 ; ; Use: Reads a string argument into a buffer and null terminates ; it sensibly so we can use it. IMPORT bas_argString ; --- bas_badCall --- ; ; On entry: -- ; ; On exit: Generates an error ; ; Use: Generates an error about bad arguments. It saves space to ; just have this here. IMPORT bas_badCall ; --- bas_noMem --- ; ; On entry: -- ; ; On exit: Generates an error ; ; Use: Generates an error about not having any memory left. IMPORT bas_noMem ;----- That's all, folks ---------------------------------------------------- END