chiark / gitweb /
Initial revision
[ssr] / StraySrc / Libraries / BAS / src / sh / bas
1 ;
2 ; bas.sh
3 ;
4 ; Base code for BAS
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 ;  bas_argString
32 ;  bas_badCall
33 ;  bas_noMem
34
35 ; --- bas_argString ---
36 ;
37 ; On entry:     R1 == address of destination buffer
38 ;               R9 == pointer to argument entry
39 ;               R10 == number of arguments left
40 ;
41 ; On exit:      R9 increased by 8
42 ;               R10 decreased by 1
43 ;
44 ; Use:          Reads a string argument into a buffer and null terminates
45 ;               it sensibly so we can use it.
46
47                 IMPORT  bas_argString
48
49 ; --- bas_badCall ---
50 ;
51 ; On entry:     --
52 ;
53 ; On exit:      Generates an error
54 ;
55 ; Use:          Generates an error about bad arguments.  It saves space to
56 ;               just have this here.
57
58                 IMPORT  bas_badCall
59
60 ; --- bas_noMem ---
61 ;
62 ; On entry:     --
63 ;
64 ; On exit:      Generates an error
65 ;
66 ; Use:          Generates an error about not having any memory left.
67
68
69                 IMPORT  bas_noMem
70
71 ;----- That's all, folks ----------------------------------------------------
72
73                 END