Ejemplo n.º 1
0
        private void bWriteMemory_Click(object sender, EventArgs e)
        {
            UInt16 address = (UInt16)udAddress.Value;

            char[]   delimiters = new char[] { ' ', ',' };
            string[] parts      = tbValues.Text.Split(delimiters, StringSplitOptions.RemoveEmptyEntries);

            List <byte> vals = new List <byte>();

            foreach (string p in parts)
            {
                vals.Add(byte.Parse(p));
            }

            Ultimate64Commands.WriteMemory(cfg, address, vals.ToArray());
        }
Ejemplo n.º 2
0
        private static void Poke(Config config, string param, string[] args)
        {
            try
            {
                string[] vals = args.SubArray(3, args.Length - 3);
                byte[]   data = new byte[vals.Length];

                for (int i = 0; i < vals.Length; i++)
                {
                    data[i] = Byte.Parse(vals[i]);
                }

                Ultimate64Commands.WriteMemory(config, UInt16.Parse(param), data);
            }
            catch (Exception e)
            {
                Handle(e);
            }
        }