levo

Types of Programming Language

Modes of addressing memory

  • 3 things to know
  • Component 01
Start revising · £5/month

Overview

Recall questions on immediate, direct, indirect and indexed addressing, what the operand means in each mode, working out what LDA loads under each mode, using indexed addressing for arrays, and memory accesses per mode.

What you need to know

Answer each one before you reveal it.

Your recallNot started
Key term

In immediate addressing, what does the operand actually mean?

Key term

In direct addressing, what does the operand actually mean?

Key term

Name the four modes of addressing memory.

Questions from this subtopic

Each one with the model answer underneath.

  1. 1

    What is an addressing mode?

    Model answer

    The rule that says how the operand part of an instruction should be interpreted in order to find the data the instruction is to act on. The same bit pattern in the operand field can mean the value itself, an address, an address of an address, or an offset, depending on which addressing mode the instruction specifies.

  2. 2

    Name the four modes of addressing memory.

    Model answer

    Immediate, direct, indirect and indexed.

  3. 3

    In immediate addressing, what does the operand actually mean?

    Model answer

    The operand is the data itself. No memory access is needed to fetch it, because the value to be used is held in the instruction, so the processor simply uses it. If the instruction is LDA with immediate addressing and the operand is 7, the accumulator is set to 7.

  4. 4

    In direct addressing, what does the operand actually mean?

    Model answer

    The operand is the memory address at which the data is stored. The processor goes to that address and fetches its contents. If the instruction is LDA with direct addressing and the operand is 40, the processor reads whatever is in location 40 and puts that into the accumulator.

  5. 5

    In indirect addressing, what does the operand actually mean?

    Model answer

    The operand is the address of a location that itself holds the address of the data. The processor makes two memory accesses: first it reads the location the operand names to obtain a second address, then it goes to that second address for the actual data.

  6. 6

    In indexed addressing, what does the operand actually mean?

    Model answer

    The operand is a base address, to which the current contents of the index register are added to give the effective address of the data. The data is then fetched from that calculated address. Changing the index register changes which location the same instruction reaches.

Other ways to work this

The same content, four other ways.

Everything in your subscription

Runs, plus a mode for every other kind of session.

1Flash
2Imposter
3Fade
4Brain dump

Learn every subtopic in runs of four questions

Facts flash and fade, a wrong word hides in some of them, and a brain dump decides which questions are locked in.

Processors: Structure, Performance and Types
Input, Output and Storage
Systems Software
Applications Generation

Cram the night before, weakest topic first

A quick scan finds your weakest topics. Recall each fact you missed three times in a row.

If it matches, the search .
succeedsfailsrestarts

Blank Blitz consolidates the facts

Rapid timed gap-fills on the terms and numbers you need to recall without thinking.

✓What it iscovered
~Why it happenspartly there
How long it lastsnot there yet

Explain It tests your understanding

Explain a concept in your own words and see which of its points you covered.

A global variable means a variable reachable from anywhere in the program.
TrueFalse

Test It catches misconceptions

Spot the fault in a statement. The faults are the mistakes students make most often.

721941163128510

Brain Breaks between sessions

Short focus games to reset attention, so the next set lands better than the last.

Every question in Types of Programming Language, on a schedule.

Learn it in runs of four questions, each ending on a brain dump against the clock. Every question you lock in comes back the next day, then at longer gaps, each time just before you would forget it.

Or £46 a year, about £3.83 a month. Cancel anytime.