System Debug Reference Manual (32650-90888)
204 Chapter6
System Debug Command Specifications M-X
MAC[RO]
Dot "." terminates modifications.
The modifications for DST 1.34 through 1.37 have been successfully completed.
%cmdebug > mq-30,6
% Q-30 = ".P" %27120 := "AB"
% Q-27 = "UB" %52502 := 'CD'
% Q-26 = ".S" %27123 := u16("EF")
% Q-25 = "YS" %54523 :=
% Q-24 = ".." %177772 := [q-2]
% Q-23 = ".." %7 := !s + (1000-[db+22]/2)
Modify 6 words starting at Q-%30. The current values are displayed in ASCII and octal
(current output base).
Q-30 is assigned the (implicitly coerced) integer value of "AB".
Q-27 is assigned the implicitly coerced) integer value of 'CD'.
Q-26 is assigned the explicitly coerced unsigned 16-bit integer value of "EF".
Q-25 is left unchanged.
Q-24 is assigned the contents of Q-2.
Q-23 is assigned the value of the S register + ( 1000 - the contents of DB+22 divided by
2).
Limitations, Restrictions
When CM code has been translated, modification of the original object code has no effect.
The NM translated code must be modified.
MAC[RO]
Defines a macro.
Syntax
MAC[RO]
name
{
body
}
MAC[RO]
name
[ (
parameters
) ] {
body
}
MAC[RO]
name
[ (
parameters
) ] [
options
] {
body
}
Macros are a body of commands that are executed (invoked) by
name
. Macros can have
optional parameters.
Macros can be executed as if they were commands.
Macros can also be invoked as functions within expressions to return a value.
Macro definitions can include three special options in order to specify a version number