コード例 #1
0
        public static void  disassemble(ActionList list, ConstantPool pool, int startIndex, int endIndex, StreamWriter out_Renamed)
        {
            Disassembler d = new Disassembler(out_Renamed, pool, "    ");

            d.Format         = "    0x%08O  %a";
            d.ShowLineRecord = false;

            // probe backward for a register record if any to set up register to variable name mapping
            int at = list.lastIndexOf(ActionList.sactionRegisterRecord, startIndex);

            if (at > -1)
            {
                d.registerRecord_Renamed_Field = (RegisterRecord)list.getAction(at);
            }

            // now dump the contents of our request
            list.visit(d, startIndex, endIndex);
            out_Renamed.Flush();
        }
コード例 #2
0
		public static void  disassemble(ActionList list, ConstantPool pool, int startIndex, int endIndex, StreamWriter out_Renamed)
		{
			Disassembler d = new Disassembler(out_Renamed, pool, "    ");
			d.Format = "    0x%08O  %a";
			d.ShowLineRecord = false;
			
			// probe backward for a register record if any to set up register to variable name mapping
			int at = list.lastIndexOf(ActionList.sactionRegisterRecord, startIndex);
			if (at > - 1)
				d.registerRecord_Renamed_Field = (RegisterRecord) list.getAction(at);
			
			// now dump the contents of our request
			list.visit(d, startIndex, endIndex);
			out_Renamed.Flush();
		}