Rizin
unix-like reverse engineering framework and cli tools
kfbsd-x86.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: 2015 pancake <pancake@nopcode.org>
2 // SPDX-License-Identifier: LGPL-3.0-only
3 
4 return strdup(
5  "=PC eip\n"
6  "=SP esp\n"
7  "=BP ebp\n"
8  "=A0 eax\n"
9  "=A1 ebx\n"
10  "=A2 ecx\n"
11  "=A3 edi\n"
12  "seg fs .32 0 0\n"
13  "seg es .32 4 0\n"
14  "seg ds .32 8 0\n"
15  "gpr edi .32 12 0\n"
16  "gpr di .16 12 0\n"
17  "gpr esi .32 16 0\n"
18  "gpr si .16 16 0\n"
19  "gpr ebp .32 20 0\n"
20  "gpr bp .16 20 0\n"
21  "gpr isp .32 24 0\n"
22  "gpr ebx .32 28 0\n"
23  "gpr bx .16 28 0\n"
24  "gpr bh .8 29 0\n"
25  "gpr bl .8 28 0\n"
26  "gpr edx .32 32 0\n"
27  "gpr dx .16 32 0\n"
28  "gpr dh .8 33 0\n"
29  "gpr dl .8 32 0\n"
30  "gpr ecx .32 36 0\n"
31  "gpr cx .16 36 0\n"
32  "gpr ch .8 37 0\n"
33  "gpr cl .8 36 0\n"
34  "gpr eax .32 40 0\n"
35  "gpr ax .16 40 0\n"
36  "gpr ah .8 41 0\n"
37  "gpr al .8 40 0\n"
38  "gpr trapno .32 44 0\n"
39  "gpr err .32 48 0\n"
40  "gpr eip .32 52 0\n"
41  "gpr ip .16 52 0\n"
42  "seg cs .32 56 0\n"
43  "gpr eflags .32 60 0 c1p.a.zstido.n.rv\n"
44 
45  "gpr cf .1 .480 0 carry\n"
46  "gpr pf .1 .482 0 parity\n"
47  "gpr af .1 .484 0 adjust\n"
48  "gpr zf .1 .486 0 zero\n"
49  "gpr sf .1 .487 0 sign\n"
50  "gpr tf .1 .488 0 trap\n"
51  "gpr if .1 .489 0 interrupt\n"
52  "gpr df .1 .490 0 direction\n"
53  "gpr of .1 .491 0 overflow\n"
54 
55  "gpr esp .32 64 0\n"
56  "gpr sp .16 64 0\n"
57  "seg ss .32 68 0\n"
58  "seg gs .32 72 0\n"
59  // TODO: implement flags like in linux --those flags are wrong
60 );
return strdup("=PC eip\n" "=SP esp\n" "=BP ebp\n" "=A0 eax\n" "=A1 ebx\n" "=A2 ecx\n" "=A3 edi\n" "seg fs .32 0 0\n" "seg es .32 4 0\n" "seg ds .32 8 0\n" "gpr edi .32 12 0\n" "gpr di .16 12 0\n" "gpr esi .32 16 0\n" "gpr si .16 16 0\n" "gpr ebp .32 20 0\n" "gpr bp .16 20 0\n" "gpr isp .32 24 0\n" "gpr ebx .32 28 0\n" "gpr bx .16 28 0\n" "gpr bh .8 29 0\n" "gpr bl .8 28 0\n" "gpr edx .32 32 0\n" "gpr dx .16 32 0\n" "gpr dh .8 33 0\n" "gpr dl .8 32 0\n" "gpr ecx .32 36 0\n" "gpr cx .16 36 0\n" "gpr ch .8 37 0\n" "gpr cl .8 36 0\n" "gpr eax .32 40 0\n" "gpr ax .16 40 0\n" "gpr ah .8 41 0\n" "gpr al .8 40 0\n" "gpr trapno .32 44 0\n" "gpr err .32 48 0\n" "gpr eip .32 52 0\n" "gpr ip .16 52 0\n" "seg cs .32 56 0\n" "gpr eflags .32 60 0 c1p.a.zstido.n.rv\n" "gpr cf .1 .480 0 carry\n" "gpr pf .1 .482 0 parity\n" "gpr af .1 .484 0 adjust\n" "gpr zf .1 .486 0 zero\n" "gpr sf .1 .487 0 sign\n" "gpr tf .1 .488 0 trap\n" "gpr if .1 .489 0 interrupt\n" "gpr df .1 .490 0 direction\n" "gpr of .1 .491 0 overflow\n" "gpr esp .32 64 0\n" "gpr sp .16 64 0\n" "seg ss .32 68 0\n" "seg gs .32 72 0\n")