home *** CD-ROM | disk | FTP | other *** search
-
- PEEKs, POKEs, and SYSes -- Part 29
- -- continued from Part 28 --
-
-
-
-
- To tell the truth, not much of what
-
- we have covered here is very useful
-
- to a BASIC programmer. What WOULD
-
- be useful is a machine language
-
- program that would make use of all
-
- this knowledge and print out the
-
- values of all your array variables
-
- on demand. Well, we nice folks at
-
- LOADSTAR couldn't resist writing just
-
- such a tool and tacking it onto the
-
- VARPRINT program we gave you last
-
- month. So this month, look in the
-
- directory for ALLVARP.ML.
-
-
- To use ALLVARP.ML, do this:
-
-
- LOAD "ALLVARP.ML",8,1
- NEW
-
-
- Write, load, or run your own BASIC
-
- program, interrupting it when you want
-
- to look at the variables.
-
- To display the variables, including
-
- arrays, simply enter SYS 49664.
-
- You can include the SYS anywhere
-
- in your program, too. This will allow
-
- you to monitor variable values as
-
- the program executes. For example,
-
- 1 DIM AB(1,2), CD%(3), EF$(2)
- 2 REM REST OF YOUR PROGRAM
- 3 :
- 4 :
- : :
- : :
- 100 SYS 49664: REM PRINT VARIABLES
- 110 REM CONTINUE YOUR PROGRAM
- 120 :
- : :
- : :
-
-
- Remember, you can also send your
-
- list to the printer by using the
-
- following in a program or in immediate
-
- mode:
-
- OPEN4,4:CMD4:SYS49664
- PRINT#4:CLOSE4
-
-
- Hope you have learned something!
-
- Good luck!
-
- ---------< end of article >-----------
-
-
-
-
-
-
-
-
-