Parse Value, Assign To Variable (.Changev) - Motorola M68CPU32BUG User Manual

Debug monitor
Table of Contents

Advertisement

.CHANGEV
5.2.2
Parse Value, Assign to Variable
SYSCALL
TRAP CODE: $0067
Parse a value in the user specified buffer. If the user specified buffer is empty, the user is
prompted for a new value, otherwise update the integer offset into the buffer to skip the value.
The new value is displayed and assigned to the variable unless the user's input is an empty string.
Entry Conditions:
SP ==>
Exit Conditions:
SP ==>
EXAMPLE
PROMPT
DC.B
GETCOUNT
PEA
PEA
PEA
PEA
SYSCALL
RTS
M68CPU32BUG/D REV 1
Parse Value, Assign to Variable
.CHANGEV
Address of 32-bit offset into user's buffer
Address of user's buffer (pointer/count format string)
Address of 32-bit integer variable to change
Address of string to use in prompting and displaying value
Top of stack
$14,'COUNT = |10,8|'
PROMPT(PC)
COUNT
BUFFER
POINT
.CHANGEV
Point to prompt string
Point to variable to change
Point to buffer
Point to offset into buffer
Make the system call
COUNT changed, return
5-5
SYSTEM CALLS
.CHANGEV

Advertisement

Table of Contents
loading

Table of Contents