Personal Computer News


Second Byte At Camputers Lynx Numeric Variables

 
Published in Personal Computer News #044

Second Byte At Camputer Lynx Numeric Variables

In response to a Microwave from Bob Towers (Issue 41) here is an improved version of the numeric variable dump. This program also displays the value of the variable.

To overcome the problem that Mr. Towers encountered with his program, i.e. the display of variables not used in the program; this program not only looks at the first byte of each variable, but also at the second byte. If this is &FF the variable is not used in the program. This program is in machine code, so it doesn't use any of the variables.

100 DEFPROC VAR DUMP
200 CODE 3E 04 CF 06 01 0E 40 C5 21 07 67 11 05 00 19 10 FD C1 7E FE 00 28 1C FE FF
28 18 23 7E FE FF 28 12 78 81 CF 3E 3D CF C5 2B CD B1 35 CD 59 1D C1 3E 09 CF 04 78
FE 35 28 08 FE 1B 20 CA 0E 46 18 C6 3E 1F CF C9
300 CALL LCTN(200)
400 ENDPROC

 
This routine can be renumbered and appended to programs that need to use it.

Andrew Marshall
Mansfield, Nottinghamshire

Andrew Marshall