Sunteți pe pagina 1din 1

Section: TE-C Roll #

Computer Organization and Architecture TE-D


Wednesday, April 18, 2007
QUIZ # 5: Pentium and PowerPC Addressing Modes
Max Marks = 20; Max Time: 25 minutes
A computer system consists of one Pentium processor, one PowerPC processor and one shared main
memory, as shown in the following diagram:

Pentium PowerPC
Processor MAIN Memory Processor
The following Table A shows values for Pentium Registers, Table B shows values for PowerPC registers and
Table C shows values for some memory locations.

Table A Table B Table C


Pentium Values PowerP Values Address Values
Register C 8000 4000
AX 1000 Register AF00 2000
B 7000 R0 BF00 3000
IP BR BEFF CF00 4000
SR 1000 L A103 DF00
I 1000 PC EF00 4000
CR
IR fill in the
In the following table please 0001
blank cells:
Address Instruction Pentium Source Destination Source Destination Contents of
or Addressing Addressing Effective Effective Destination
PowerPC Mode Mode Address Address
A100 MOV AX, Pentium Direct Register AF00 AX 2000
[AF00]
A101 LWZ R0, PowerPC Direct Register BF00 R0 3000
[BF00]
A102 BR L PowerPC Branch Register L PC A103
Indirect
A103 MOV Pentium Base Direct [B]+[SR] = CF00 4000
[CF00],[B] 8000
A104 MOV Pentium Immediate Displaceme NA [SR]+CF00 F00
CF00, F00 nt =
1000+CF00
= DF00
A105 BR -5 PowerPC Branch Register PC PC A100
Relative

S-ar putea să vă placă și