about ICM instruction.
Answers were Sorted based on User's Feedback
Answer / sanjeev mohindra
ICM means INsert character under mask. its a movement of character under mask bits
eg
ICM R8,B'0110',SRC
Before execution:
R8 ==> 12 34 56 78
SRC ==> AB CD EF 10
After Excecution:
R8 ==> 12 AB CD 78
| Is This Answer Correct ? | 35 Yes | 19 No |
Answer / steve holton
What about it? Loads selected bytes of a register selected
by a mask (leaves other bytes alone).
| Is This Answer Correct ? | 4 Yes | 1 No |
Answer / mohit neb
ICM stands for Insert Character under Mask. Operand 1 is a register, operand 2 is a 4-bit binary mask ( eg - B'1000' or the number 8) and operand 3 is a fullword in memory.
The important point is that contiguous memory bytes from the fullword (operand 3) are copied into selected bytes of the register (operand 1). The second operand say B'1100' does that selection. So a mask of B'1010' would insert two contiguous memory bytes from operand 3 to byte one and three of the operand 1 register.
Example :-
ICM 5,B'1010',FIELD
The above instruction would insert two contiguous bytes starting from FIELD into the first and the third byte of R5.
OBJECT CODE :- ( 4 Byte RS Instruction )
1 byte - OP Code
Next 1 byte - 4 bits for teh register and the other 4 for
the binary mask.
Next 2 bytes for operand 3 - B2D2D2D2
| Is This Answer Correct ? | 5 Yes | 2 No |
Answer / sri
ICM means INsert character under mask. its a movement of character under mask bits
eg
ICM R8,B'0110',SRC
Before execution:
R8 ==> 12 34 56 78
SRC ==> AB CD EF 10
After Excecution:
R8 ==> 12 CD EF 78
| Is This Answer Correct ? | 24 Yes | 28 No |
WHAT WILL HAPPEN IF WE DROP THE BASE REGISTER IN THE PGM WHICH CONTAINS ONLY ONE BASEREG?
What is need of start 0? In steed of can we use anyother numerics? If we use what will happen?
How to pass the parameters from jcl to assembler program?
what is need of START 0?. In steed of '0' can we use any other numerics?. if we use what will happen?.
how to retrieve the instream data in sysin?
How to pass instream data in sysin with Assembler?
How many maximum base registers we can have in a program?
What is house keeping in assembler? And explain the following code HELLOTSO START 0 * PRINT NOGEN BEGIN SAVE (14,12) LR 12,15 USING TYPE,12 ST 13,SAVE+4 LA 11,SAVE ST 11,8(13) LR 13,11
Can we use an equated value as operand for an MVC instruction? Reason for the same
Why do we use "drop"? What does "using" do?
How do you round the addition or subtraction of two numbers in assembler? what does the following code do? AP WKUR,=P'5' where WKUR is a label
How we can Pass the parameters from JCL to assembler Pgm?