| OCR Text |
Show • dsputstate(ic,pc,regs). Routine dsgetmem copies a block of memory from the executor to the director. It has three parameters: the address of the block in the executor's address space, the size of the block, and the address of the buffer in the director's address space. Routine dsputmem is the same as dsgetmem, except that it copies from the director to the executor. Routine dsgetptr copies a block from the executor to the director, but the address in the director is not specified. Instead, the space for the block is dynamically allocated in the director and its address is returned by the routine. Routine dsputptr copies a block from the director to the executor, by allocating space in the executor's state. Routines dsgetstr and dsputstr are versions of dsgetptr and dsputptr, respectively, specialized to copy strings between the executor and the director. The size of the block is automatically determined. Routines dsgetstate and dsput state get and put the state of the hypothetical processor. This state contains the instruction counter, the program counter, and internal registers. Routines to deal with symbols are: • dsgetsym(symbol_name), • dsgetint(symbol_name). Routine dsgetsym has a parameter which is a symbol name. The routine returns the value of the symbol in the program of the executor. Routine dsgetint has a parameter which is a symbol name. The routine returns the value of the symbol in the interpreter. It is used to access symbol tables maintained by the interpreter. Reverse execution is supported by routines: • dshistory(TRUE) or dshistory(FALSE), • dsrollback(ic). 71 |