A couple of questions about [base + index*scale + disp]
问题 The general form for memory addressing in Intel and AT&T Syntax is the following: [base + index*scale + disp] disp(base, index, scale) My questions are the following: Can base and index be any register? What values can scale take, is it 1, 2, 4 and 8 (with 1 being the default)? Are index and disp interchangeable (with the only difference being that index is a register while disp is an immediate value)? 回答1: This is described in Intel's manual: 3.7.5 Specifying an Offset The offset part of a