Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

about ICM instruction.

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain the difference between various read and find statement?

1049


Explain how to initialize a register to 0000?

1008


Ap wkur,=p5 where wkur is a label?

1138


How many maximum base registers we can have in a program?

1030


Explain the difference in data type "x" and "p"?

1022


What is the use of trt instruction?

1014


What is need of start 0? In steed of can we use anyother numerics? If we use what will happen?

1042


Explain how to access vsam file?

1084


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

1021


what is need of start 0? In steed of

1092


Explain about house keeping in assembler?

1041


Explain how to produce soc7 abend?

1067


explain about maximum displacement and how to cross this limit?

1143


What does the following code do? Ap wkur,=p5 where wkur is a label?

1086


What will happen if we drop the base register in the program which contains only one basereg?

981