Page 40 - slides.dvi
P. 40

•
                                                                                  We
                                                                                            x
                                                                                        y
                               This
                                                                                                               The
                                            Then
   Operating
                                                         where
                                                                        ldr
                                                                             str
                                                                                        =
                                                                                            =
                                                                                                 int
                                                                    add
                                                               str
                    e.g.
                          loaded
                               is
                                                                                  can
                                      what
                                                    memory
                                                                                        x
                                                                                                      Consider
                    if
                               a
                                            the
                                                                                            5;
                                                                                                 x,
               loaded
                                                         the
                                                                                        +
                                                               R2,
                                                                             #5,
                                                                    R2,
                                                                        R1,
                                                    at
   Systems
               at
                                                                                                 y;
                          when
                                                                                                      the
   —
                                                                                        3;
                                                                    R1,
                                      values
                                                                             [Rx]
                                                               [Ry]
                                                                        [Rx]
                          we
                    loaded
                                                                                  imagine
                                                                                                               Address
                                            address
                               problem
                                                                    #3
                                      do
                    at
                                                    address
   Relocation
                          run
                                                                                  this
                                                         expression
               0x5000,
                                      we
                                                                                                      following
                          it:
                                                         ‘[
                                            binding
                               because
               then
                                                    addr”.
                                      give
                                                                                  would
                                                                    //
                                                               //
                                                                        //
                                                                             //
                    0x1000,
                                                                                                               Binding
               x
                                                                                                      simple
                               we
                                                         addr
                                      Rx
                                                               and
                                                                    and
                                                                        load
               and
                    then
                                                         ]’
                                                                             store
                                                                                  result
                                            problem
               y
                    x
                                      and
                                                                             5
                                                                    add
                               don’t
                                                                                  in
                                            is:
                                                               store
                                                                    3
                                                                        value
                                      Ry
                    and
                                                                                                      program:
                                                                                                               Problem
                                                         should
                                                                             into
                                                                    to
                                      ?
                    y
               might
                               know
                                                                        of
                                                                                  some
                                                         be
                                                                    it
                                                                        x
               be
                                                                             ’x’
                                                               result
               at
                    might
                               where
                                                               in
                                                         read
                                                                        from
                               in
                    be
                                                         to
                                                                                  assembly
                                                               ’y’
               0x6000,
                                                                        memory
                                                                                  code
                                                         mean
                    stored
                               memory
                    at
                                                         “the
                               our
                                                                                  which
               0x6004.
                    0x2000,
                                                                                  looks
                                                         contents
                               program
                                                         of
                               will
                    0x2004,
                                                         the
                               be
                                                                                  something
                    but
                    if
                                                                                  like:
   36
   35   36   37   38   39   40   41   42   43   44   45