Debug Manual

Table Of Contents
Sample Debug Sessions
Debug Manual421921-003
F-18
TNS Program Example
FNL Command
We use the FNL command to find data in 32-bit form. Because the value we are
searching for is 32-bit, the specified address must be aligned on a even 4-byte
boundary (last digit must be hexadecimal 0, 4, 8, or C).
We can also look for a specific pattern within the 32-bit word while ignoring the other
bits. We use the FNL command with a mask to look only for the bit pattern 0x3435 in
the second and third byte of the word.
Stopping the Program
Before we move to the examples we are going to demonstrate below, we must first
stop the program using the STOP command.
050,03,00013-fnl q0, '3456'
0008002C: 0x33343536
050,03,00013 (FNL)-
** DEBUG error 51: FNL reached address boundary. To continue, enter the following
address:
0x000A0000
050,03,00013-FNL 0x000A0000
000A22E0: 0x33343536
050,03,00013 (FNL)-
** DEBUG error 52: FNL stopped searching at the following address:
0x000BEFD0
Address not valid
Note. The output addresses for the FNL command are hexadecimal byte addresses. The FNL
command stops the search at either the end of the segment or when the low-order 17 bits of
the address are zero. If the address boundary is reached, it is necessary to restart only the
command with the address. The value to search for is the same as the last search.
050,03,00013-FNL q0, 0x00343500 & 0x00ffff00
0008002C: 0x33343536
050,03,00013 (FNL)-