Top Assembler Interview Questions :: ALLInterview.com http://www.allinterview.com Top Assembler Interview Questions en-us What is base register? http://www.allinterview.com/showanswers/75920.html Base Register is the register, acts as a address holder of the base storage location from where the datas were stored continuously. Assembler uses the Base register value to find the data that is required. What is the use of TRT instruction and how it is working? http://www.allinterview.com/showanswers/36943.html TRT is used to scan a string of characters, searching for the occurrence of any the characters which are specified in a translate table. TRT also sets the condition code to indicate the results of the scanning operation as follows: How are data passed from JCL parm to assembler program. And how is d http://www.allinterview.com/showanswers/75916.html - JCL PARM //SAMPPROG EXEC PGM=XXXXXXXX,PARM='XXXXXXXX......' CONTAINS A PARM FIELD WITH UP TO 100 BYTES OF DATA IN IT. THE PROGRAM BY DESIGN PICKUPS UP A POINTER TO THE DATA AND THE DATA LEN. REG 1 HAS WHAT YOU NEED TO EXTRAPOLAT How do you initialize a register to 0000? http://www.allinterview.com/showanswers/75922.html LA Rx,0 L Rx,=F'0' XR Rx,Rx how to find the dump http://www.allinterview.com/showanswers/98933.html use SYSDUMP in the JCL //SYSDUMP DD * about ICM instruction. http://www.allinterview.com/showanswers/98928.html 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 Why do we have multiple base registers in certain programs? http://www.allinterview.com/showanswers/76651.html A SINGLE BASE REGISTER ACCOUNTS FOR 4096 BYTES OF STORAGE. YOU NEED A BASE REG. FOR EACH 4K. IF YOUR PROGRAM IS 12K, YOU NEED AT LEAST 3 BASE REGS. How we can Pass the parameters from JCL to assembler Pgm? http://www.allinterview.com/showanswers/90838.html R1 contains a fullword that contains a address pointing to tyhe parm data. In pgm before accessing the parm data use L Rn,0(,R1) where n=3,..11 , Rn contains the address that points to parm data. Create DSECT that contains a halfword and the What is house keeping in assembler? And explain the following code http://www.allinterview.com/showanswers/75921.html Housekeeping is the work done at the start of an ALC program that saves the contents of regs 14,15,0,1,2,3,4,5,6,7,8,9,10,11,12 into an addr off R13. After that and in this example, R15(which contains prog. entry point) is loaded into R12. The How to initialize 20,000 bytes in the Assembler.. http://www.allinterview.com/showanswers/119270.html initalization done by using below code. MVI datafield,C' ' MVC datafield+1(L'datafield-1),datafield How we can retrieve the instream data in SYSIN ? http://www.allinterview.com/showanswers/90839.html Use Accept in procedure division. Example : WORKING-STORAGE SECTION. 01 empno. Pic x(05). 01 empname pic x(15). 01 empsal pic 9(10). PROCEDURE DIVISION. ................ PERFORM ACCEPT-PARA. ..... how to produce SOC7 abend http://www.allinterview.com/showanswers/98934.html S0C7 occurs when the data exception occurs.They are many ways to produce S0C7 1)Move non numeric data to a numeric feild 2)compare junk data with a numeric feild 3) Use a non numeric data in COMPUTE statement 4) Refer to the occurence in a t What is the difference in data type "X" and "P"? http://www.allinterview.com/showanswers/75924.html X is used for Alphanumeric and P is used for Packed Decimal. Why can only 256 bytes be moved from one address to another in a MVC http://www.allinterview.com/showanswers/75918.html THE LENGTH CODE FIELD IS 1 BYTE IN LENGTH. THE LARGEST VALUE YOU MAY SPECIFY IN A 1 BYTE FIELD IS X'FF' X'FF' = 255 DECIMAL THE LEN. IN THE OBJECT CODE FIELD WILL BE 1 LESS THAN ACTUAL LEN. Why do we use "drop"? What does "using" do? http://www.allinterview.com/showanswers/75923.html USING tells the assembler what your base reg. will be at that point in the code. DROP says to stop using the register coded on the DROP instruction