fork download
  1. using System;
  2. using System.Collections.Generic;
  3. using System.ComponentModel;
  4. using System.Data;
  5. using System.Drawing;
  6. using System.Linq;
  7. using System.Text;
  8. using System.Windows.Forms;
  9.  
  10. namespace WindowsFormsApplication1
  11. {
  12. public partial class Form1 : Form
  13. {
  14. public Form1()
  15. {
  16. InitializeComponent();
  17. }
  18. //メモリイメージ
  19. byte[] Mem;
  20. //レジスタイメージ
  21. uint Eax = 0;
  22. uint Ebx = 0;
  23. uint Ecx = 0;
  24. uint Edx = 0;
  25. uint Esp = 0;
  26. uint Ebp = 0;
  27. uint Esi = 0;
  28. uint Edi = 0;
  29. uint Eip = 0;
  30. private void Form1_Load(object sender, EventArgs e)
  31. {
  32.  
  33. Mem = new byte[1 * 1024 * 1024 * 1024];
  34.  
  35. //
  36. //Memへコードセットする(省略)
  37. //
  38.  
  39. while(true)
  40. {
  41. //8086 ope code
  42. //http://w...content-available-to-author-only...e.net/8086/8086_table.txt
  43. switch (Mem[Eip])
  44. {
  45. //ADD Eb,Gb
  46. case 0x00:
  47. Eip++;
  48. break;
  49. //
  50. //中略
  51. //
  52.  
  53. //CALL
  54. case 0x9A:
  55. //ここでジャンプ先がwindowsAPIかどうか判断
  56. break;
  57. //CALL
  58. case 0xE8:
  59. //ここでジャンプ先がwindowsAPIかどうか判断
  60. break;
  61. //
  62. //中略
  63. //
  64.  
  65. //GRP5 Ev
  66. case 0xFF:
  67. break;
  68. }
  69. }
  70. }
  71. }
  72. }
  73.  
Not running #stdin #stdout 0s 0KB
stdin
Standard input is empty
stdout
Standard output is empty