Question
Download Solution PDFThe addressing mode/s, which uses the PC instead of a general-purpose register is :
Answer (Detailed Solution Below)
Detailed Solution
Download Solution PDFThe correct answer is Relative.
Key Points
- In computer architecture, the relative addressing mode uses the Program Counter (PC) instead of a general-purpose register to determine the address of the next instruction.
- This mode calculates the effective address by adding a constant value (offset) to the current value of the PC.
- It is commonly used in branch instructions where the target address is specified relative to the current instruction location.
- The relative addressing mode helps in writing position-independent code, which is useful for creating relocatable object files.
Additional Information
- Relative addressing mode is often used in loop control and conditional branch instructions.
- It simplifies code generation in assemblers and compilers by allowing more flexible code placement.
- It can enhance program security by making it more challenging for malicious actors to predict exact memory addresses.
- Examples of assembly instructions using relative addressing include conditional jumps like JZ (Jump if Zero), JNZ (Jump if Not Zero), etc.
Last updated on Jun 12, 2025
-> NIELIT Scientific Assistant city intimation slip 2025 has been released at the official website.
-> NIELIT Scientific Assistant exam 2025 is scheduled to be conducted on June 28.
-> A total number of 113 revised vacancies have been announced for the post of Scientific Assistant in Computer Science (CS), Information Technology (IT), and Electronics & Communication (EC) streams.
-> Online application form, last date has been extended up to from 17th April 2025.
->The NIELT has revised the Essential Qualifications for the post of Scientific Assistant. Candidates must possess (M.Sc.)/ (MS)/ (MCA) / (B.E.)/ (B.Tech) in relevant disciplines.
-> The NIELIT Scientific Assistant 2025 Notification has been released by the National Institute of Electronics and Information Technology (NIELIT).