Ejemplo n.º 1
0
        private void DumpEcl(byte[] data, string block_name)
        {
            addrDone = new Dictionary <int, string>();
            addrTodo = new Queue <int>();
            byteMap  = new Dictionary <int, int>();

            //	Debug.WriteLine(block_name);

            ecl_offset = MemStart;
            ecl_ptr    = new EclData(data);

            EclOpp[] opps;

            opps = LoadEclOpps(1);
            int vm_run_addr_1 = opps[0].Word;

            opps = LoadEclOpps(1);
            int SearchLocationAddr = opps[0].Word;

            opps = LoadEclOpps(1);
            int PreCampCheckAddr = opps[0].Word;

            opps = LoadEclOpps(1);
            int CampInterruptedAddr = opps[0].Word;

            opps = LoadEclOpps(1);
            int ecl_initial_entryPoint = opps[0].Word;

            AddAddr(ecl_initial_entryPoint, "StartUp");
            AddAddr(CampInterruptedAddr, "StartUp");
            AddAddr(PreCampCheckAddr, "StartUp");
            AddAddr(SearchLocationAddr, "StartUp");
            AddAddr(vm_run_addr_1, "StartUp");
            DecodeBlock(decodedEcl);
        }
Ejemplo n.º 2
0
        private void DumpEcl(byte[] data, string block_name)
        {
            addrDone = new Dictionary <int, string>();
            addrTodo = new Queue <int>();
            byteMap  = new Dictionary <int, int>();

            //	Debug.WriteLine(block_name);

            ecl_offset = MemStart;
            ecl_ptr    = new EclData(data);

            EclOpp[] opps;

            opps = LoadEclOpps(1);
            int vm_run_addr_1 = opps[0].Word;

            opps = LoadEclOpps(1);
            int SearchLocationAddr = opps[0].Word;

            opps = LoadEclOpps(1);
            int PreCampCheckAddr = opps[0].Word;

            opps = LoadEclOpps(1);
            int CampInterruptedAddr = opps[0].Word;

            opps = LoadEclOpps(1);
            int ecl_initial_entryPoint = opps[0].Word;


            // using (var sw = new StreamWriter(block_name + ".txt", false))
            // {
            //   sw.WriteLine("vm_run_1          0x{0:X4}", vm_run_addr_1);
            //   sw.WriteLine("SearchLocation    0x{0:X4}", SearchLocationAddr);
            //   sw.WriteLine("PreCampCheck      0x{0:X4}", PreCampCheckAddr);
            //   sw.WriteLine("CampInterrupted   0x{0:X4}", CampInterruptedAddr);
            //   sw.WriteLine("ecl_initial_entry 0x{0:X4}", ecl_initial_entryPoint);

            AddAddr(ecl_initial_entryPoint, "StartUp");
            AddAddr(CampInterruptedAddr, "StartUp");
            AddAddr(PreCampCheckAddr, "StartUp");
            AddAddr(SearchLocationAddr, "StartUp");
            AddAddr(vm_run_addr_1, "StartUp");
            DecodeBlock(decodedEcl);
            //   }
        }
Ejemplo n.º 3
0
        private void DumpEcl(byte[] data, string block_name)
        {
            addrDone = new Dictionary<int,string>();
            addrTodo = new Queue<int>();
            byteMap = new Dictionary<int, int>();

		//	Debug.WriteLine(block_name);

            ecl_offset = MemStart;
            ecl_ptr = new EclData(data);

            EclOpp[] opps;

            opps = LoadEclOpps(1);
            int vm_run_addr_1 = opps[0].Word;

            opps = LoadEclOpps(1);
            int SearchLocationAddr = opps[0].Word;
            opps = LoadEclOpps(1);
            int PreCampCheckAddr = opps[0].Word;
            opps = LoadEclOpps(1);
            int CampInterruptedAddr = opps[0].Word;
            opps = LoadEclOpps(1);
            int ecl_initial_entryPoint = opps[0].Word;


           // using (var sw = new StreamWriter(block_name + ".txt", false))
           // {
             //   sw.WriteLine("vm_run_1          0x{0:X4}", vm_run_addr_1);
             //   sw.WriteLine("SearchLocation    0x{0:X4}", SearchLocationAddr);
             //   sw.WriteLine("PreCampCheck      0x{0:X4}", PreCampCheckAddr);
             //   sw.WriteLine("CampInterrupted   0x{0:X4}", CampInterruptedAddr);
             //   sw.WriteLine("ecl_initial_entry 0x{0:X4}", ecl_initial_entryPoint);
            
                AddAddr(ecl_initial_entryPoint, "StartUp");
                AddAddr(CampInterruptedAddr, "StartUp");
                AddAddr(PreCampCheckAddr, "StartUp");
                AddAddr(SearchLocationAddr, "StartUp");
                AddAddr(vm_run_addr_1, "StartUp");
                DecodeBlock(decodedEcl);
         //   }
        }