hewlett-packard HP 9835A — 019

Getting Started 19 Alternatively, modules which are already in memory may be stored into a single file using the "ISTORE" command. When the ISTORE command is executed, the designated modules are stored into an "option ROM" (OPRM) type of file (on tape cartridges) or an "Assembly" (ASMB) type of file (on non-tape mass storage media). After storage, the modules are still in memory. They may be removed (Le., the space they occupy in memory is "freed up") by using the "IDELETE" command. lar contiguous area which must be large enough to hold all of the object code you wish to have The area of memory where the modules are stored is called the "ICOM region".

It is a particu- resident in the memory at anyone time. Each module contains one or more routines. Your access to the routines is through the ICALL statement, which is very similar to the CALL statement used for BASIC subprograms. The ICALL statement may have arguments which you need to "pass" (send down) to the routine itself. What these arguments, if any, may be, and what meaning they hold depends upon what you have in mind for that routine. There are corresponding items in the assembly source code; these are discussed in Chapter 6. Setting Aside Memory As indicated by Figure 3, you cannot load a module until there is an ICOM region into which to load it.

Neither can you assemble your source code into object code unless there is an ICOM region into which the object code can go. The statement to use to create an ICOM region is - Ie::: ()!" .... ! {size} where {size} is an integer constant indicating the number of words to be used to form the ICOM region. The maximum size is 32 718 words. The ICOM statement is a "declaration", that is, it is not executable, but rather is used when assignment of memory takes place just before a program is run. This is similar to a DIM or COM statement. As with a DIM or COM statement, the statement cannot be executed from the keyboard.

Once created, the ICOM region remains in existence until it is explicitly destroyed. But it is possible to change the size by using another ICOM statement.