Re: base,index,scale,disp help

From: Bjarni Juliusson (bjarni.ferret_at_update.ferret.uu.se_remove_the_animal)
Date: 05/21/04


Date: Fri, 21 May 2004 02:45:40 +0000 (UTC)

v3ct0r99 wrote:
> Hi all,
> how does this work on intel?
>
> On IBM mainframe it's pretty simple and we dont use a 'scale' ...
> eg. LA(load adress):
> LA 11, 4(7,6) ;6 = BASE REG , 7 = INDEX REG ,4 = DISP
> assuming base reg is 100 and index reg is 10 then after
> execution reg 11 = 114 ( base 100 + index 10 + disp 4)
>
> could someone explain the rules for intel?

The address is displacement+base+index*scale. Base and index can be any
general purpose registers on the 80386 and later, unlike the previous
processors.

Bjarni

-- 
                        INFORMATION WANTS TO BE FREE


Relevant Pages

  • Re: XGrid Question
    ... >>>3.8Ghz models and your doing advanced video work... ... >> don't do any advanced video work, (actually I don't do any video work ... This is far more efficient than the old Intel Way. ... > have 16 general purpose registers, but only 64-bit programs will utilize ...
    (comp.sys.mac.advocacy)
  • Re: Dell wakes up
    ... Mike Dahmus wrote: ... But what about the Intel Coreseries? ... available in all 32bit AMD and Intel processors. ...
    (rec.sport.football.college)