home *** CD-ROM | disk | FTP | other *** search
/ Amiga Plus 2000 #4 / Amiga Plus CD - 2000 - No. 4.iso / PowerPC / Dev / PPCRelease / LoadSegPatch / Segment.asm < prev    next >
Encoding:
Assembly Source File  |  1998-02-27  |  508 b   |  26 lines

  1.     xdef    @SegmentCode
  2.     xdef    @SegmentCode_Object
  3.     xdef    @SegmentCode_ID
  4.     xdef    @SegmentCode_End
  5.     xref    _RunElf
  6.  
  7.     identify    "text"        ;Same HUNK..-> PC Relative
  8.  
  9. @SegmentCode:
  10. ;a0=String
  11. @SegmentCode_Object:
  12.     move.l    #0,a1
  13. ;a0=String
  14. ;a1=ElfObject
  15.     move.l    a2,-(a7)
  16.     lea.l    .destroychecksum(pc),a2    ;destroy a possible checksum to 
  17.     addq.l    #1,(a2)            ;avoid a possible autoresident of the file
  18.     move.l    (a7)+,a2
  19.     jmp    _RunElf
  20. .destroychecksum:
  21.     dc.l    0
  22. @SegmentCode_ID:
  23.     dc.b    "ELFHUNKCLUDGOMATIC",0
  24.     cnop    0,4
  25. @SegmentCode_End:
  26.