hewlett-packard HP 9835A — 128

128 Communication Between BASIC and Assembly Language As with SUB, arrays are designated by following the type with an array identifier - (>i If the type is ANY, the array identifier is not allowed. Each pseudo-instruction reserves three words of memory when assembled. And, like SUB, the words are used to contain a descriptor. The descriptors are used by the variable retrieval utilities for fetching and storing values in the common area. THE SAME UTILITIES USED IN FETCHING AND STORING ARGUMENT VALUES ARE USED FOR THE SAME PURPOSES FOR VALUES IN THE COMMON AREA.

These utilities are- Get info Get value Get element Get_bytes Get_ elem _ bytes Put value Put element Put_bytes Put elem _ bytes The utilities are called in the same fashion and are subject to the same restrictions. See the description of the utilities in the preceding sections of this chapter to determine how they are used. The item pseudo-instructions used with the COM pseudo-instruction can have their own labels, just as the parameter declarations used with a SUB may have. And just as in a BASIC subprog- ram, they need not have the same names as were given the corresponding items in BASIC.

For example, suppose the following BASIC common statement exists at the time of a call to an assembly language routine - then you could access Q(*) and by using these pseudo-instructions - F.~EL. (.~~ ) Note the differences in names.