Motorola M68CPU32BUG User Manual page 120

Debug monitor
Table of Contents

Advertisement

.CHANGEV
If the above code was called with a syscall routine and BUFFER contained ''1 3'' in pointer/count
format and POINT contained 2 (longwords), then COUNT would be assigned the value 3, and
POINT would contain 4 (pointing to first character past 3). Note that POINT is the offset of the
buffer start address (not the address of the first character in the buffer) to the next character to
process. In this case, a value of 2 in POINT indicates that the space between 1 and 3 is the next
character to be processed. After calling .CHANGEV, the screen displays:
COUNT = 3
If the above code was called again, nothing could be parsed from BUFFER, so a prompt would
be issued. For example, if the string 5 is entered in response to the prompt.
COUNT = 3? 5<CR>
COUNT = 5
If in the previous example nothing had been entered at the prompt, COUNT would retain its prior
value.
COUNT = 3? <CR>
COUNT = 3
M68CPU32BUG/D REV 1
Parse Value, Assign to Variable
5-6
SYSTEM CALLS
.CHANGEV

Advertisement

Table of Contents
loading

Table of Contents