This discussion is closed.
maljosh
Badges: 0
#1
Report Thread starter 16 years ago
#1
can some1 explain how exactly index addressing works. I've got cpt4 (AQA) exam tomorrow... and still not quite sure of a good defenition of index addressing...
0
maljosh
Badges: 0
#2
Report Thread starter 16 years ago
#2
anyone sitting cpt4 tomorrow?
0
watford110
Badges: 1
Rep:
?
#3
Report 16 years ago
#3
(Original post by maljosh)
anyone sitting cpt4 tomorrow?
yeah i am. i was dreading it but when i looked at what u need to get an A i thought it cant be that bad.

Indexed Addressing

The operand should be added to the value in the index register to find the address in Main Memory of the data to be operated on.

Hope this helps!
0
maljosh
Badges: 0
#4
Report Thread starter 16 years ago
#4
thanks for the defenition mate. How about an example?

January 2003 paper

Q8 part 4

ADD X (120)

At the moment 121 is in accumulator...and you have these locations:

120 1
121 2
122 3
123 4
124 5
125 6

and the answer is 127.. i don't get it?
0
maljosh
Badges: 0
#5
Report Thread starter 16 years ago
#5
oh i got it...

i forgot about the register (index register was X=5), so it's 121+5(X)+1(address in main memory)=127

Thanks a lot mate,
0
watford110
Badges: 1
Rep:
?
#6
Report 16 years ago
#6
(Original post by maljosh)
thanks for the defenition mate. How about an example?

January 2003 paper

Q8 part 4

ADD X (120)

At the moment 121 is in accumulator...and you have these locations:

120 1
121 2
122 3
123 4
124 5
125 6

and the answer is 127.. i don't get it?

Sorry Mate. I tried doing that question yesterday and i got it wrong. For some reason i got 123.

N E ways i figure its definately worth knowing the definition as its likely to pop in the exams.

Good luck tomoz!
0
maljosh
Badges: 0
#7
Report Thread starter 16 years ago
#7
good luck to you too,

I have a bad feeling we gonna get a horrid recursive algorithm,
0
Joey_Johns
Badges: 10
Rep:
?
#8
Report 16 years ago
#8
Lol I took this exam exactly a year ago and can remember soooo little about it. In my mind it is just the harder programming paper. Cant believe I got an A for that paper.
0
D.O.A
Badges: 1
Rep:
?
#9
Report 16 years ago
#9
Yeah I got this exam tomorrow...trouble is my lecturer knows jack-all so I have had to learn the entire module in a just a short while on my own :mad:
0
X
new posts
Back
to top
Latest
My Feed

See more of what you like on
The Student Room

You can personalise what you see on TSR. Tell us a little about yourself to get started.

Personalise

People at uni: do initiations (like heavy drinking) put you off joining sports societies?

Yes (529)
66.71%
No (264)
33.29%

Watched Threads

View All