Previous Topic

Next Topic

Book Contents

Book Index

NV0Ptr Directive [D>=15]

This applies only to SPLat/PC versions 6.15.0 or later, and is relevant only to SPLat controllers with language dialect 15 or later.

The NV0Ptr directive causes SPLat/PC to create a 2-byte pointer in NVEM0 memory that points to another NVEM location. It is used for creating tables of pointers. This may be useful where for example you have a table of different length strings, and therefore need a table to point into it.

Example:

TextTable:
Text0      NVByte     16,"I can't do that,"
Text1      NVByte     6," Dave."
Text2      NVByte     23,"I'm not really wicked, "
Text3      NVByte     27,"I was simply drawn that way"

PointerTable:
           NV0Ptr     Text0
           NV0Ptr     Text1
           NV0Ptr     Text2
           NV0Ptr     Text3

Please refer to the NVEM0 documentation for more details. In particular see the NVReadToPtr instruction.

Previous Topic

Next Topic