Ejemplo n.º 1
0
 public Ptr(RAMRange Zp, string name)
 {
     //Bytes = new Address[2];//Address();
     Name    = name;
     Address = Zp.Dim(2);
     //Lo = Address[0];
     //Hi = Address[1];
     DebugFileNESASM.WriteVariable(Zp, Address[0], Address[1], name);
     VarRegistry.Add(name, this);
 }
Ejemplo n.º 2
0
        private static int vbytecount = 0;              //TODO: num is temporary til I move VarRegistry to RAM instances

        public override VByte Dim(RAMRange ram, string name)
        {
            if (Address != null)
            {
                throw new Exception("Var already dimmed");
            }
            Address = ram.Dim(1);
            Name    = name;
            DebugFileNESASM.WriteVariable(ram, Address[0], name);
            VarRegistry.Add(name + vbytecount++, this);                 //TODO: num is temporary til I move VarRegistry to RAM instances
            return(this);
        }
Ejemplo n.º 3
0
 public override VarN Dim(RAMRange ram, string name)
 {
     if (Address != null)
     {
         throw new Exception("Var already dimmed");
     }
     Address = ram.Dim(Size);
     Name    = name;
     DebugFileNESASM.WriteVariable(ram, Address[0], Address[Size - 1], name);
     VarRegistry.Add(name, this);
     return(this);
 }