adspace


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

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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

No New Questions to Answer in this Category !!    You can

Post New Questions

Answer Questions in Different Category