These operands are specied using the same notation as

Info iconThis 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: ames were chosen to reflect these different purposes. With flat addressing, the need for specialized registers is greatly reduced. For the most part, the first 6 registers can be considered general-purpose registers with no restrictions placed on their use. We said “for the most part,” because some instructions use fixed registers as sources and/or destinations. In addition, within procedures there are different conventions for saving and restoring the first three registers (%eax, %ecx, and %edx), than for the next three (%ebx, %edi, and %esi). This will be discussed in Section 3.7. The final two 100 Type Immediate Register Memory Memory Memory Memory Memory Memory Memory Memory Memory Form $ÁÑÑ CHAPTER 3. MACHINE-LEVEL REPRESENTATION OF C PROGRAMS Operand Value ÁÑÑ Ê Å Ñ ÁÑÑ Å ÑÊ Å Ñ ÁÑÑ · Ê Å ÑÊ ·Ê Å Ñ ÁÑÑ · Ê Å ÑÊ ¡× Å Ñ ÁÑÑ · Ê Å ÑÊ ·Ê Å Ñ ÁÑÑ · Ê Name Immediate Register Absolute Indirect Base + Displacement Indexed Indexed Scaled Indexed Sc...
View Full Document

Ask a homework question - tutors are online