4 ; Interface to BASIC's weird routines
6 ; © 1994-1998 Straylight
9 ;----- Licensing note -------------------------------------------------------
11 ; This file is part of Straylight's BASIC Assembler Supplement.
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)
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.
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.
27 ;----- Overview -------------------------------------------------------------
38 [ :LNOT::DEF:basTalk__dfn
41 ; --- bTalk_lvblnk ---
43 ; On entry: R0 == pointer to variable name to find (not tokenised)
45 ; On exit: R0 == address of lvalue
46 ; R1 == type of lvalue
48 ; Use: Tries to locate the given BASIC variable.
52 ; --- bTalk_create ---
54 ; On entry: R0 == pointer to name of variable
56 ; On exit: R0 == address of variable lvalue
57 ; R1 == type of variable created
59 ; Use: Creates a variable, if it doesn't already exist. Otherwise
60 ; a pointer to the existing variable is returned.
66 ; On entry: R0 == lvalue in which to store
67 ; R1 == type of lvalue
68 ; R2 == (integer) value to store
72 ; Use: Stores an integer value in a BASIC variable. The value is
73 ; converted to floating point if required (without loss of
80 ; On entry: R0 == address of lvalue
81 ; R1 == type of lvalue
83 ; On exit: R2 == integer value of lvalue
85 ; Use: Loads an integer variable from an lvalue.
91 ; On entry: R1 == pointer to a control-terminated string
93 ; On exit: R0 == value of expression
95 ; Use: Evaluates a BASIC expression.
101 ; On entry: R1 == ctrl terminated string
102 ; R2 == destination pointer
106 ; Use: Tokenises the given sting, and puts the result in the
107 ; destination buffer given.
113 ;----- That's all, folks ----------------------------------------------------