Exercise 1: Computing a Full SIB Effective Address — Possible Solution ==================================================================== GIVEN ------------------------------ Base (RBX) = 0x1000 Index (RCX) = 5 Scale = 8 Displacement = 16 APPLYING THE FORMULA ------------------------------ Per this chapter's own formula: effective address = Base + (Index x Scale) + Displacement Step 1 -- compute Index x Scale: 5 x 8 = 40 (decimal) = 0x28 (hex) Step 2 -- add Base: 0x1000 + 0x28 = 0x1028 Step 3 -- add Displacement: 0x1028 + 16 (decimal) = 0x1028 + 0x10 = 0x1038 RESULT ------------------------------ The effective address of [RBX + RCX*8 + 16] is 0x1038. WHY THIS WORKS AS AN ANSWER ------------------------------ It applies the chapter's own three-term formula in order (index times scale first, then adding the base, then adding the displacement), converting between decimal and hex carefully at each step, arriving at a single final hexadecimal address with the arithmetic shown.