Exemple #1
0
        public Program GetImage()
        {
            var mem     = new MemoryArea(addrBase, m.GetBytes());
            var seg     = new ImageSegment("code", mem, AccessMode.ReadWriteExecute);
            var program = new Program(
                new SegmentMap(addrBase, seg),
                arch,
                platform);

            return(program);
        }
Exemple #2
0
        public Program GetImage()
        {
            var mem     = new MemoryArea(addrBase, m.GetBytes());
            var seg     = new ImageSegment("code", mem, AccessMode.ReadWriteExecute);
            var map     = new SegmentMap(addrBase, seg);
            var program = new Program
            {
                SegmentMap   = map,
                ImageMap     = map.CreateImageMap(),
                Architecture = arch,
            };

            return(program);
        }