25 lines
No EOL
404 B
C++
25 lines
No EOL
404 B
C++
#pragma once
|
|
|
|
#include <stdint.h>
|
|
|
|
struct CpuState
|
|
{
|
|
uint32_t eax;
|
|
uint32_t ebx;
|
|
uint32_t ecx;
|
|
uint32_t edx;
|
|
uint32_t esi;
|
|
uint32_t edi;
|
|
uint32_t ebp;
|
|
|
|
uint32_t interrupt;
|
|
uint32_t error;
|
|
|
|
uint32_t eip;
|
|
uint32_t cs;
|
|
uint32_t eflags;
|
|
uint32_t esp;
|
|
uint32_t ss;
|
|
} __attribute__((packed));
|
|
|
|
static_assert(sizeof(CpuState) == 56, "CpuState must be 56 bytes large."); |