WHEREIS Examples
Examples:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Examples of WHEREIS instruction. The first example will clear the ZERO flag indicating the comma was found. It will also store a value of four (4) in NVAR. The second and third examples will also clear the ZERO flag. Both examples are scanning for a comma that does exist in the SOURCE variable.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Examples of WHEREISLAST instruction. The first example will clear the ZERO flag indicating the comma was found. It will also store a value of four (8) in NVAR. The second and third examples will also clear the ZERO flag. Both examples are scanning for a comma that does exist in the SOURCE variable.
![]() |