This preview shows page 1. Sign up to view the full content.
Unformatted text preview: ames were chosen to reﬂect these different purposes. With ﬂat addressing, the need for specialized registers is greatly reduced. For the most part, the ﬁrst 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 ﬁxed registers as sources and/or destinations. In addition, within procedures there are different conventions for saving and restoring the ﬁrst three registers (%eax, %ecx, and %edx), than for the next three (%ebx, %edi, and %esi). This will be discussed in Section 3.7. The ﬁnal 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
- Spring '10
- The American