Explain the difference in data type "x" and "p"?
Answer / Meenakshi Sharma
In IBM System/360 Assembly Language, data types 'X' and 'P' are used to define different types of addressing modes. They affect how memory locations are calculated during assembly.n
1. X (Implied):n - Used for immediate addressing mode, where the value is included directly in the instruction.n - Examples: LDA X'25'n // Loads the content of memory location 25 into the accumulatorn
2. P (Post-increment):n - Used for post-increment addressing mode, where the address is loaded first, and then incremented.n - Examples: LDA P1,0n // Loads the content of memory location 1 into the accumulator, and then increments register 1 by 1
| Is This Answer Correct ? | 0 Yes | 0 No |
how to access VSAm file
how to retrieve the instream data in sysin?
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?
cobol and assembler access
What is the difference in data type "X" and "P"?
what is need of start 0? In steed of
How are data passed from jcl parm to assembler program?
In the house keeping section of an MVS assembly language program, like the one below STM R14,R12,12(R13) BASR R12,R0 USING *,R12,R11 LA R11,2048 LA R11,2048(R11,R12) .... .... 1. What if BASR R12,R0 IS NOT PRECEDE USING *,R12,R11? 2. USING (base address), REGISTER does USING directive says assembler to treat particular Register as a base register with the mentioned base address..in the above case * i.e current location counter..well if that is the case why we need BASR R12,R0 ? 3. What if I write like STM R14,R12,12(R13) BASR R12,R0 LA R11,2048 LA R11,2048(R11,R12) USING *,R12,R11 there is no address resolution being calculated in both LA statements so is it a right way to set Base register?..will there be any issues with Domain regarding R11 and R12?
How to pass the parameters from jcl to assembler program?
Can we use an equated value as operand for an MVC instruction? Reason for the same
What is maximum displacement and how to cross this limit?
What does "using" do?