home *** CD-ROM | disk | FTP | other *** search
/ Crawly Crypt Collection 1 / crawlyvol1.bin / program / books / 68k_book / arp_src / prg_2ar.s < prev    next >
Text File  |  1985-11-20  |  514b  |  16 lines

  1.  ; Program Name: RELOCATE.S
  2.  ;          aka: PRG_2AR.S
  3.  
  4.  move.l    up_1, d0
  5.  move.l    up_2, d0
  6.  move.l    #-4, d0        ; The statement below will resemble this one
  7.                           ; after assembly.  Both are relocatable.
  8.  move.l    #up_1-up_2,d0  ; This is Mr. Schulz's example.
  9.  move.l    up_1-up_2, d0  ; I think he meant to use this type of example,
  10.  data                     ; because this one does cause a problem.
  11. pointer:   dc.l  up_1
  12. up_1:      dc.l  5
  13. up_2:      dc.l  3
  14.  end
  15.  
  16.