440 These operations set the reserved memory locations to the values specified in the operand field. The operand field may contain a string (in double quotes) or a string variable for the EQUS operation, or a number or a numeric variable for the other EQU operations. The assembler will use the least significant part of the value if too large a value is specified. As an example of the use of EQUD , lines 30 and 170 to 230 of the triangle drawing example could be replaced with:
141 .data EQUD &04190416 142 EQUD &00C800C8 143 EQUD &00C80119 144 EQUD &01190000 145 EQUD &00ADFF9C 146 EQUD &FF9C0119 147 EQUD &0000FF53 The following example program illustrates the effects of including each of the EQU pseudo-operations within an assembly language program: 10 P%=&3000 20 A$="stringvar" 30 [ 40 EQUS "string" 50 EQUS A$ 60 EQUB 180 70 EQUW 12500 80 EQUD 6E6 90 ] >RUN 3000 3000 73 74 72 69 6E 67 EQUS "string" 3006 73 74 72 69 6E 67 76 61 72 EQUS A$ 300F B4 EQUB 180 3010 D4 30 EQUW 12500 3012 80 8D 5B 00 EQUD 6E6 The above printout shows that location &3000 contains &73, the hexadecimal ASCII code for ‘s’, &3001 contains the hexadecimal ASCII code for ‘t’, etc