Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #ifndef OVER_H
- #define OVER_H
- #include <stdlib.h>
- #include <stdio.h>
- #include <stdint.h>
- #include <string.h>
- #define OPADD 0xD5
- #define OPADC 0x10
- #define OPAND 0x20
- #define OPCALL 0x9A
- #define OPCLI 0xFA
- #define OPCLC 0x0F8
- #define OPDEC 0x48
- #define OPIN 0xE4
- #define OPINC 0xE4
- #define OPINT 0x40
- #define OPINTO 0xCE
- #define OPIRET 0xCF
- #define OPJCC 0x7F
- #define OPJCXZ 0xE4
- #define OPLEA 0x8D
- #define OPLES 0xC4
- #define OPMOV 0xA0
- #define OPMOVSB 0xA4
- #define OPMOVSW 0xA5
- #define OPNOT 0xF6/2
- #define OPOUT 0xE6
- #define OPPOP 0x07
- #define OPPOPF 0x9D
- #define OPPUSH 0x06
- #define OPPUSHF 0x9C
- #define OPRCL 0xC0
- #define OPPUSHF 0x9C
- #define OPRETN 0xC2
- #define OPRETF 0xCA
- #define OPROL 0xD0
- #define OPROR 0xD3/1
- #define OPSTI 0xFB
- #define OPSTD 0xFD
- #define OPSTC 0xF9
- #define OPSUB 0x28
- #define OPWAIT 0x9B
- #define OPXOR 0x30
- typedef struct file_logs
- {
- char nontype[1000];
- char yestype[1000];
- unsigned char operant[1000];
- } FILE_LOGS;
- const unsigned static char OPCODES[] = { OPADD, OPADC, OPAND, OPAND, OPCALL,
- OPCLI, OPCLC, OPDEC, OPIN, OPINC ,
- OPINT, OPINTO, OPIRET, OPJCC,
- OPJCXZ, OPLEA, OPLES, OPMOV, OPMOVSB,
- OPNOT, OPOUT, OPPOP, OPPOPF, OPPUSHF,
- OPRETN, OPRETF, OPROL, OPROR, OPSTI,
- OPSTD, OPSTC, OPSUB, OPWAIT, OPXOR
- };
- unsigned char IDENT[36][10] = { "ADD", "ADC", "AND", "CALL",
- "CLI", "CLC", "DEC", "IN", "INC"
- "INT", "INTO", "IRET", "JCC",
- "JCXZ", "LEA", "LES", "MOV",
- "MOVSB", "NOT", "OUT", "POP",
- "POPF", "PUSHF", "RETN", "RETF",
- "ROL", "ROR", "STI", "STD", "STC",
- "SUB", "WAIT", "XOR"
- };
- unsigned char buffer[100];
- int linecontrol;
- FILE *fp;
- FILE *tmp;
- char res[50];
- #endif
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement