Пример #1
0
 private void listView1_SelectedIndexChanged(object sender, EventArgs e)
 {
     try
     {
         Sh4Block blk = (Sh4Block)listView1.SelectedItems[0].Tag;
         disasmview1.Text = x86Disasm.DisasmBytesBlock(blk.x86Code, blk.CompiledBlock);
     }
     catch { }
 }
Пример #2
0
        public static void GetBlocks(BlockListType type, u32 count)
        {
            nullDCInstance.dpa packet = new nullDCInstance.dpa();
            ndc.SendString("blocks " + ((u32)type).ToString() + " " + count.ToString() + " 0");//the last 0 is for binary transfer :)
            ndc.GetPacket(ref packet);
            u32 blk_num = (u32)(packet.sz / (9 * 4));

            blocks = new Sh4Block[blk_num];
            for (u32 i = 0; i < blk_num; i++)
            {
                blocks[i] = new Sh4Block();
                blocks[i].ReadFromPacket(ref packet);
            }
        }