Advertisement
Guest User

Untitled

a guest
Oct 22nd, 2019
119
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 2.37 KB | None | 0 0
  1. #ifndef OVER_H
  2. #define OVER_H
  3.  
  4. #include <stdlib.h>
  5. #include <stdio.h>
  6. #include <stdint.h>
  7. #include <string.h>
  8.  
  9. #define OPADD 0xD5
  10. #define OPADC 0x10
  11. #define OPAND 0x20
  12. #define OPCALL 0x9A
  13. #define OPCLI 0xFA
  14. #define OPCLC 0x0F8
  15. #define OPDEC 0x48
  16. #define OPIN 0xE4
  17. #define OPINC 0xE4
  18. #define OPINT 0x40
  19. #define OPINTO 0xCE
  20. #define OPIRET 0xCF
  21. #define OPJCC 0x7F
  22. #define OPJCXZ 0xE4
  23. #define OPLEA 0x8D
  24. #define OPLES 0xC4
  25. #define OPMOV 0xA0
  26. #define OPMOVSB 0xA4
  27. #define OPMOVSW 0xA5
  28. #define OPNOT 0xF6/2
  29. #define OPOUT 0xE6
  30. #define OPPOP 0x07
  31. #define OPPOPF 0x9D
  32. #define OPPUSH 0x06
  33. #define OPPUSHF 0x9C
  34. #define OPRCL 0xC0
  35. #define OPPUSHF 0x9C
  36. #define OPRETN 0xC2
  37. #define OPRETF 0xCA
  38. #define OPROL 0xD0
  39. #define OPROR 0xD3/1
  40. #define OPSTI 0xFB
  41. #define OPSTD 0xFD
  42. #define OPSTC 0xF9
  43. #define OPSUB 0x28
  44. #define OPWAIT 0x9B
  45. #define OPXOR 0x30
  46.  
  47. typedef struct file_logs
  48. {
  49.     char nontype[1000];
  50.     char yestype[1000];
  51.     unsigned char operant[1000];
  52. } FILE_LOGS;
  53. const unsigned static char OPCODES[] =     {    OPADD, OPADC, OPAND, OPAND, OPCALL,
  54.                                                 OPCLI, OPCLC, OPDEC, OPIN, OPINC ,
  55.                                                 OPINT, OPINTO, OPIRET, OPJCC,
  56.                                                 OPJCXZ, OPLEA, OPLES, OPMOV, OPMOVSB,
  57.                                                 OPNOT, OPOUT, OPPOP, OPPOPF, OPPUSHF,
  58.                                                 OPRETN, OPRETF, OPROL, OPROR, OPSTI,
  59.                                                 OPSTD, OPSTC, OPSUB, OPWAIT, OPXOR
  60.  
  61.                                            };
  62. unsigned char IDENT[36][10] = {                  "ADD", "ADC", "AND", "CALL",
  63.                                                 "CLI", "CLC", "DEC", "IN", "INC"
  64.                                                 "INT", "INTO", "IRET", "JCC",
  65.                                                 "JCXZ", "LEA", "LES", "MOV",
  66.                                                 "MOVSB", "NOT", "OUT", "POP",
  67.                                                 "POPF", "PUSHF", "RETN", "RETF",
  68.                                                 "ROL", "ROR", "STI", "STD", "STC",
  69.                                                 "SUB", "WAIT", "XOR"
  70.                                            };
  71. unsigned char buffer[100];
  72. int linecontrol;
  73. FILE *fp;
  74. FILE *tmp;
  75. char res[50];
  76.  
  77. #endif
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement