Exemplo n.º 1
0
 public static Tile MemAccessTile <T>()
 {
     return(new Tile(typeof(MemoryNode),
                     new [] {
         makeTile <ConstantNode <T> > ()
     },
                     (regNode, node) => {
         var root = node as MemoryNode;
         var add = root.Address as ConstantNode <T>;
         return new[] {
             InstructionFactory.MoveFromMemory(regNode, add)
         };
     }
                     ));
 }
Exemplo n.º 2
0
 public static Tile MemAccessTile()
 {
     return(new Tile(typeof(MemoryNode),
                     new [] {
         makeTile <RegisterNode> ()
     },
                     (regNode, node) => {
         var root = node as MemoryNode;
         var reg = root.Address as RegisterNode;
         return new[] {
             InstructionFactory.MoveFromMemory(regNode, reg)
         };
     }
                     ));
 }