9 ;----- Overview -------------------------------------------------------------
21 ; On entry: R0 == type of variable
22 ; R1 == pointer to variable name
23 ; R2 == file address of label or DEF
24 ; R3 == line number of label or DEF
25 ; R12 == pointer to the anchor block
27 ; On exit: R0 == pointer to the variable
30 ; Use: Tries to find the variable given, and return a pointer
31 ; to it if it is found. Otherwise it will try to create the
32 ; variable and return a pointer to the new one.
38 ; On entry: R0 == type of the variable
39 ; R1 == name of the variable
41 ; On exit: CS if the variable was found, and
42 ; R0 == pointer to the variable block
45 ; Use: Tries to find the given variable in the current tree.
49 ;----- Workspace ------------------------------------------------------------
51 ; --- Variable types ---
54 vType_integer # 1 ;Integer
55 vType_string # 1 ;String
56 vType_dimInt # 1 ;DIM of integers
57 vType_dimStr # 1 ;DIM of strings
58 vType_label # 1 ;Label
59 vType_proc # 1 ;Procedure name
60 vType_fn # 1 ;Function name
62 ; --- Lvalue types ---
64 vType_lvInt # 1 ;Integer variable lvalue
65 vType_lvString # 1 ;String variable lvalue
66 vType_lvWord # 1 ;Word lvalue (from `!' op)
67 vType_lvByte # 1 ;Byte lvalue (from `?' op)
68 vType_lvBytes # 1 ;String lvalue (from `$' op)
69 vType_lvIntArr # 1 ;Integer array lvalue
70 vType_lvStrArr # 1 ;String array lvalue
74 ;----- That's all, folks ----------------------------------------------------