Esempio n. 1
0
 public HunkFileParser(BeImageReader f, bool? v37_compat = null)
 {
     this.f = f;
     this.v37_compat = v37_compat;
     // Commodore famously used ISO 8859-1 for the Amiga. Different
     // national variants may need to override this.
     this.textEncoding = Encoding.GetEncoding("ISO_8859-1");
     this.hunk_file = new HunkFile();
     this.hunks = hunk_file.hunks;
 }
Esempio n. 2
0
        public override Program Load(Address addrLoad)
        {
            arch = new M68kArchitecture();
            var imgReader = new BeImageReader(RawImage, 0);
            var parse = new HunkFileParser(imgReader, false);
            this.hunkFile = parse.Parse();
            BuildSegments();
            this.firstCodeHunk = parse.FindFirstCodeHunk();
            var image = new LoadedImage(addrLoad, RelocateBytes(addrLoad));

            return new Program(
                image,
                image.CreateImageMap(),
                arch,
                new AmigaOSPlatform(Services, arch));
        }
Esempio n. 3
0
 public HunkShow(HunkFile hunk_file, bool show_relocs, bool show_debug, bool disassemble, uint disassemble_start, bool hexdump, bool brief, bool use_objdump, string cpu)
 {
     this.hunk_file = hunk_file;
     // clone file refs
     this.header = hunk_file.header;
     this.segments = hunk_file.segments;
     this.overlay = hunk_file.overlay;
     this.overlay_headers = hunk_file.overlay_headers;
     this.overlay_segments = hunk_file.overlay_segments;
     this.libs = hunk_file.libs;
     this.units = hunk_file.units;
     this.show_relocs = show_relocs;
     this.show_debug = show_debug;
     this.disassemble = disassemble;
     this.disassemble_start = disassemble_start;
     this.use_objdump = use_objdump;
     this.cpu = cpu;
     this.hexdump = hexdump;
     this.brief = brief;
 }
Esempio n. 4
0
 public HunkRelocator(HunkFile hunk_file)
 {
     this.hunk_file = hunk_file;
 }
Esempio n. 5
0
 public HunkShow(HunkFile hunk_file, bool show_relocs, bool show_debug, bool disassemble, uint disassemble_start, bool hexdump, bool brief, bool use_objdump)
     : this(hunk_file, show_relocs, show_debug, disassemble, disassemble_start, hexdump, brief, use_objdump, "68000")
 {
 }
Esempio n. 6
0
 public HunkShow(HunkFile hunk_file, bool show_relocs, bool show_debug, bool disassemble, uint disassemble_start, bool hexdump)
     : this(hunk_file, show_relocs, show_debug, disassemble, disassemble_start, hexdump, false, false, "68000")
 {
 }
Esempio n. 7
0
 public HunkShow(HunkFile hunk_file, bool show_relocs, bool show_debug, bool disassemble)
     : this(hunk_file, show_relocs, show_debug, disassemble, 0, false, false, false, "68000")
 {
 }
Esempio n. 8
0
 public HunkShow(HunkFile hunk_file, bool show_relocs)
     : this(hunk_file, show_relocs, false, false, 0, false, false, false, "68000")
 {
 }
Esempio n. 9
0
 public HunkShow(HunkFile hunk_file)
     : this(hunk_file, false, false, false, 0, false, false, false, "68000")
 {
 }