Beispiel #1
0
        private void validateAddress()
        {
            LoRom value = new LoRom(
                (byte)numericUpDown1.Value,
                (ushort)numericUpDown2.Value);

            textBox1.Text = String.Format("{0:X6}", value.PCAddress);
        }
Beispiel #2
0
        public static void Main()
        {
            string path = @"C:\Users\Kyle\Desktop\metroid\mod\test.smc";

            byte[] file = System.IO.File.ReadAllBytes(path);

            LoRom lr     = new LoRom(0x909E8F);
            int   offset = lr.PCAddress;

            for (int i = 0; i < 4; i++)
            {
                file[offset + i] = 0;
            }

            //System.IO.File.WriteAllBytes(path, file);

            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            Application.Run(new Menu());
        }
Beispiel #3
0
        private void validateAddress2()
        {
            LoRom value = new LoRom(BitHelper.ToLoRom((int)numericUpDown3.Value));

            textBox2.Text = String.Format("{0:X6}", value.PackedValue);
        }