Ejemplo n.º 1
0
        public override Program Load(Address addrLoad)
        {
            var arch = new Pdp11Architecture();

            arch.Name = "pdp11";

            var  rdr = new LeImageReader(RawImage);
            byte b;

            while (rdr.TryPeekByte(0, out b) && b == 0)
            {
                rdr.Offset += 1;
            }

            var segMap = ReadDataBlocks(rdr);

            var platform = new RT11Platform(Services, arch);
            var program  = new Program
            {
                Architecture = arch,
                Platform     = platform,
                SegmentMap   = segMap
            };

            return(program);
        }