forked from falltergeist/int2ssl
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathStartupCode.cpp
58 lines (51 loc) · 1.33 KB
/
StartupCode.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
/**
*
* Copyright (c) 2005-2009 Anchorite (TeamX), <[email protected]>
* Copyright (c) 2014-2015 Nirran, phobos2077
* Copyright (c) 2015 alexeevdv <[email protected]>
* Distributed under the GNU GPL v3. For full terms see the file license.txt
*
*/
// C++ standard includes
// int2ssl includes
#include "StartupCode.h"
// Third party includes
CStartupCode::CStartupCode()
{
}
CStartupCode::~CStartupCode()
{
}
void CStartupCode::Serialize()
{
uint16_t wExpectOpcodes[17] = {
COpcode::O_CRITICAL_START,
COpcode::O_INTOP,
COpcode::O_D_TO_A,
COpcode::O_INTOP,
COpcode::O_JMP,
COpcode::O_EXIT_PROG,
COpcode::O_POP,
COpcode::O_POP_FLAGS_RETURN,
COpcode::O_POP,
COpcode::O_POP_FLAGS_EXIT,
COpcode::O_POP,
COpcode::O_POP_FLAGS_RETURN_EXTERN,
COpcode::O_POP,
COpcode::O_POP_FLAGS_EXIT_EXTERN,
COpcode::O_POP_FLAGS_RETURN_VAL_EXTERN,
COpcode::O_POP_FLAGS_RETURN_VAL_EXIT,
COpcode::O_POP_FLAGS_RETURN_VAL_EXIT_EXTERN
};
for(uint32_t i = 0; i < 17; i++)
{
if (i == 1)
{
m_Code[i].Expect(wExpectOpcodes[i], true, 18);
}
else
{
m_Code[i].Expect(wExpectOpcodes[i]);
}
}
}