chapter1-AppendixA-m2-ziavras

With 2 operands 1 byte for opcode address specifier 1

Info icon This preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: is adapted from D. Culler & D. Patterson (UCB) S. Ziavras Basic Variations in Instruction Encoding Variable Fixed Hybrid Some material is adapted from D. Culler & D. Patterson (UCB) S. Ziavras Basic Variations in Instruction Encoding (2) 1. Variable Length – smallest code size – all modes appear with all opcodes 2. Fixed Length – longest code size – operation & mode combined in opcode 3. Hybrid – reduce variability in size & work of variable variability in size work of variable architecture but provide multiple instr. lengths to reduce code size Some material is adapted from D. Culler & D. Patterson (UCB) S. Ziavras Variable Length Encoding Example Intel 80x86 example: “add EAX, 1000(EBX)” • add: 32-bit integer add instr. with 2 operands – 1 byte for opcode • Address specifier: – 1-2 bytes specifying » EAX: source/destination reg. (1st operand) » EBX: base reg. & 1000 (>2^8) displacement (2nd operand) • Total instr. length: 1(EAX)+1...
View Full Document

{[ snackBarMessage ]}

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern