[<<Previous Entry]
[^^Up^^]
[Next Entry>>]
[Menu]
[About The Guide]
##############################################################################
###+------+###################################################################
#+-| LOAD |----------------------------------------+##########################
#| +------+ The LOAD command allocates memory for |##########################
#| a file and loads the file into memory. |##########################
#+-------------------------------------------------+##########################
##############################################################################
##############################################################################
#+--| Syntax |----------+#####################################################
#| LOAD <C-exp> |#####################################################
#+----------------------+#####################################################
##############################################################################
##############################################################################
########+---| Description |------------------------------------------+########
########| FORCE parses the <C-exp> for a filename, then attaches the |########
########| filename string to the memory buffer. Use CALL to execute |########
########| the code in the allocated buffer. |########
########| ---------------------------------------------------------- |########
########| The FORCE CALL table allows 10 entries, providing for only |########
########| 10 CALL buffers in memory at one time. Use RELEASE MODULE |########
########| to deallocate memory. |########
########| ---------------------------------------------------------- |########
########| LOAD and CALL are supported by FORCE for compatibility. |########
########| Because of memory overhead, use of LOAD and CALL is not |########
########| recommended. |########
########| ---------------------------------------------------------- |########
########| If possible, rewrite a "binary" program as a FUNCTION or |########
########| PROCEDURE. |########
########+------------------------------------------------------------+########
##############################################################################
##############################################################################
#########+--| Example 1 |-------------------------------------------+#########
#########| * Load an call utility programs for cursor |#########
#########| * control. |#########
#########| |#########
#########| LOAD "cursoff.com" && String "cursoff" will be |#########
#########| && put in the call table. |#########
#########| LOAD "curson.com" && String "curson" will be |#########
#########| && put in the call table. |#########
#########| CALL "cursoff" && Turn off the cursor. |#########
#########| |#########
#########| {...} |#########
#########| |#########
#########| CALL "curson" |#########
#########| RELEASE "cursoff.com" && Return the memory to |#########
#########| && the system. |#########
#########| RELEASE "curson.com" |#########
#########+----------------------------------------------------------+#########
##############################################################################
##############################################################################
#########+--| Example 2 |-------------------------------------------+#########
#########| * Two files with the same name cannot have |#########
#########| * different extensions. |#########
#########| |#########
#########| LOAD "abc.com" && Places the name 'abc' in |#########
#########| && the call table. |#########
#########| LOAD "abc.bin" && Releases the current |#########
#########| && 'abc' file and |#########
#########| && loads "abc.bin". |#########
#########+----------------------------------------------------------+#########
##############################################################################
See Also:
CALL
RELEASE MODULE
This page created by ng2html v1.05, the Norton guide to HTML conversion utility.
Written by Dave Pearson