Assignment command (assembler and disassembly)

The Assignment command assigns the value of an expression to a specified memory location or register.

Read syntax diagramSkip visual syntax diagramreceiver <receiverlen> =sourceexpr;
receiver
A valid z/OS® Debugger assembler reference or expression.
receiverlen
A valid z/OS Debugger assembler reference or expression enclosed in opening and closing brackets (<, >). The value of this reference is used as the length of the receiver.
sourceexpr
A valid z/OS Debugger assembler expression.

Usage notes

  • When the receiver expression does not have an implicit length, you must specify a length override and enclose it in angle brackets (<>). For example %R1->+10 <4> = 20; requires an explicit length expression because the receiver expression has no implicit length. However, X=X+1; (where X is defined as X DS F) would not normally have an explicit length specification.
  • The Assignment command cannot be used while you replay recorded statements by using the PLAYBACK commands.

Examples

  • Assign the value 6 to variable x.
    x = 6 ;
  • Increment the value of X by 5.
    X = X + 5 ;
  • Assign to R5 the address of name_table.
    %R5 = addr'name_table ;
  • Assign to the prg_name variable the value of the character string 'MYPROG'.
    prg_name = 'MYPROG' ;
  • Assign the value of X to the 4 bytes at offset 8 from the contents of R8.
    %R8->+8 <l'x> = x;
  • Move a string of 14 bytes pointed to by the contents of R8 (where R8 was an equated register used in the program) to 6 bytes past the location pointed to by R2.
    %R2->+6 <14> = R8->+0;
  • Set 32 bytes pointed to by R6 to zero.
    %R6->+0 <X'20'> = X'00';

Refer to the following topics for more information related to the material discussed in this topic.