about ICM instruction.

Answers were Sorted based on User's Feedback



about ICM instruction...

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 ?    33 Yes 19 No

about ICM instruction...

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

about ICM instruction...

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

about ICM instruction...

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

Post New Answer

More Assembler Interview Questions

How to initialize 20,000 bytes in the Assembler..

5 Answers   Amdocs, IBM,


how do you round the addition or subtraction of two numbers in assembler? what does the following code do? change process tool(code changes from dev to prd) the changes made to your code should be effected in live. How the process takes place. That is how can you move the code changes from development to production?

0 Answers   IBM,


Can we use MVC instruction to move pack field to pack field....which instruction you will use and why ?

4 Answers   Amdocs, IBM,


Explain how to initialize a register to 0000?

0 Answers  


Explain about maximum displacement?

0 Answers  






Ap wkur,=p5 where wkur is a label?

0 Answers   IBM,


What is the use of TRT instruction and how it is working?

7 Answers   HCL, IBM, Wipro,


What is icm instruction?

0 Answers  


Explain the difference between various read and find statement?

0 Answers  


How do you round the addition or subtraction of two numbers in assembler?

0 Answers  


What is base register?

23 Answers   IBM, Infosys,


cobol and assembler access

2 Answers   EDS,


Categories