Pentium Addressing Modes Virtual or effective address is offset into segment – Starting address...
-
Upload
judith-harrington -
Category
Documents
-
view
217 -
download
0
Transcript of Pentium Addressing Modes Virtual or effective address is offset into segment – Starting address...
![Page 1: Pentium Addressing Modes Virtual or effective address is offset into segment – Starting address plus offset gives linear address – This goes through page.](https://reader036.fdocuments.in/reader036/viewer/2022082709/56649d6e5503460f94a4f3cb/html5/thumbnails/1.jpg)
Pentium Addressing Modes• Virtual or effective address is offset into segment
– Starting address plus offset gives linear address– This goes through page translation if paging enabled
• Different addressing modes:– Immediate– Register operand– Displacement– Base– Base with displacement– Scaled index with displacement– Base with index and displacement– Base scaled index with displacement– Relative
![Page 2: Pentium Addressing Modes Virtual or effective address is offset into segment – Starting address plus offset gives linear address – This goes through page.](https://reader036.fdocuments.in/reader036/viewer/2022082709/56649d6e5503460f94a4f3cb/html5/thumbnails/2.jpg)
Pentium Addressing Mode Calculation
![Page 3: Pentium Addressing Modes Virtual or effective address is offset into segment – Starting address plus offset gives linear address – This goes through page.](https://reader036.fdocuments.in/reader036/viewer/2022082709/56649d6e5503460f94a4f3cb/html5/thumbnails/3.jpg)
PowerPC Addressing Modes• Load/store architecture
– Indirect• Instruction includes 16 bit displacement to be added to base register (may be GP
register)• Can replace base register content with new address
– Indirect indexed• Instruction references base register and index register (both may be GP)• EA is sum of contents
• Branch address– Absolute -- unconditional -- 24 bit immediate value extended to 32 bit value by
adding 2 zeroes to LS end.• Conditional – 16 bit immediate value extended to 32 bit value by adding 2 zeroes to LS end and
sign extending– Relative – 24 bit immediate value (unconditional), 14 bit immediate value
(conditional) is extended as before then added to PC– Indirect from either the link reg or count reg.
• Arithmetic– Operands in registers or part of instruction– Floating point is register only
![Page 4: Pentium Addressing Modes Virtual or effective address is offset into segment – Starting address plus offset gives linear address – This goes through page.](https://reader036.fdocuments.in/reader036/viewer/2022082709/56649d6e5503460f94a4f3cb/html5/thumbnails/4.jpg)
PowerPC Memory Operand Addressing Modes
![Page 5: Pentium Addressing Modes Virtual or effective address is offset into segment – Starting address plus offset gives linear address – This goes through page.](https://reader036.fdocuments.in/reader036/viewer/2022082709/56649d6e5503460f94a4f3cb/html5/thumbnails/5.jpg)
Instruction Formats
• Layout of bits in an instruction• Includes opcode• Includes (implicit or explicit) operand(s)• Usually more than one instruction format in
an instruction set
![Page 6: Pentium Addressing Modes Virtual or effective address is offset into segment – Starting address plus offset gives linear address – This goes through page.](https://reader036.fdocuments.in/reader036/viewer/2022082709/56649d6e5503460f94a4f3cb/html5/thumbnails/6.jpg)
Instruction Length
• Affected by and affects:– Memory size– Memory organization– Bus structure– CPU complexity– CPU speed
• Trade off between powerful instruction repertoire and saving space
![Page 7: Pentium Addressing Modes Virtual or effective address is offset into segment – Starting address plus offset gives linear address – This goes through page.](https://reader036.fdocuments.in/reader036/viewer/2022082709/56649d6e5503460f94a4f3cb/html5/thumbnails/7.jpg)
Allocation of Bits
• Number of addressing modes• Number of operands• Register versus memory• Number of register sets• Address range• Address granularity
![Page 8: Pentium Addressing Modes Virtual or effective address is offset into segment – Starting address plus offset gives linear address – This goes through page.](https://reader036.fdocuments.in/reader036/viewer/2022082709/56649d6e5503460f94a4f3cb/html5/thumbnails/8.jpg)
Pentium Instruction Format
![Page 9: Pentium Addressing Modes Virtual or effective address is offset into segment – Starting address plus offset gives linear address – This goes through page.](https://reader036.fdocuments.in/reader036/viewer/2022082709/56649d6e5503460f94a4f3cb/html5/thumbnails/9.jpg)
PowerPC Instruction Formats (1)
![Page 10: Pentium Addressing Modes Virtual or effective address is offset into segment – Starting address plus offset gives linear address – This goes through page.](https://reader036.fdocuments.in/reader036/viewer/2022082709/56649d6e5503460f94a4f3cb/html5/thumbnails/10.jpg)
PowerPC Instruction Formats (2)