예제 #1
0
        private SpanGenerator CreateSpanifier(ImageMapItem item, Address addr)
        {
            SpanGenerator sp;
            var           b = item as ImageMapBlock;

            if (b != null)
            {
                sp = new AsmSpanifyer(program, instructions[b], addr);
            }
            else
            {
                sp = new MemSpanifyer(program, item, addr);
            }
            return(sp);
        }
예제 #2
0
        private SpanGenerator CreateSpanifier(
            ImageMapItem item,
            ModelPosition pos)
        {
            SpanGenerator sp;

            if (item is ImageMapBlock b)
            {
                sp = new AsmSpanifyer(program, instructions[b], pos);
            }
            else
            {
                sp = new MemSpanifyer(program, item, pos);
            }
            return(sp);
        }
 private SpanGenerator CreateSpanifier(ImageMapItem item, Address addr)
 {
     SpanGenerator sp;
     var b = item as ImageMapBlock;
     if (b != null)
     {
         sp = new AsmSpanifyer(program, instructions[b], addr);
     }
     else
     {
         sp = new MemSpanifyer(program, item, addr);
     }
     return sp;
 }