OpenGothic
Open source reimplementation of Gothic I and II
Loading...
Searching...
No Matches
Cpu32 Class Reference

#include <cpu32.h>

Public Types

using ptr32_t = Compatibility::ptr32_t
 

Public Member Functions

 Cpu32 (DirectMemory &owner, Mem32 &mem32)
 
void exec (const ptr32_t basePc, const uint8_t *code, size_t len)
 
template<class R , class... Args>
void register_stdcall (ptr32_t addr, const std::function< R(Args...)> &callback)
 
template<class R , class... Args>
void register_thiscall (ptr32_t addr, const std::function< R(Args...)> &callback)
 
template<class R , class... Args>
void register_cdecl (ptr32_t addr, const std::function< R(Args...)> &callback)
 
template<typename T >
void register_stdcall (ptr32_t addr, const T &cb)
 
template<typename T >
void register_thiscall (ptr32_t addr, const T &cb)
 
template<typename T >
void register_cdecl (ptr32_t addr, const T &cb)
 

Detailed Description

Definition at line 14 of file cpu32.h.

Member Typedef Documentation

◆ ptr32_t

Definition at line 16 of file cpu32.h.

Constructor & Destructor Documentation

◆ Cpu32()

Cpu32::Cpu32 ( DirectMemory owner,
Mem32 mem32 
)

Definition at line 12 of file cpu32.cpp.

Member Function Documentation

◆ exec()

void Cpu32::exec ( const ptr32_t  basePc,
const uint8_t *  code,
size_t  len 
)

Definition at line 16 of file cpu32.cpp.

◆ register_cdecl() [1/2]

template<class R , class... Args>
void Cpu32::register_cdecl ( ptr32_t  addr,
const std::function< R(Args...)> &  callback 
)
inline

Definition at line 38 of file cpu32.h.

◆ register_cdecl() [2/2]

template<typename T >
void Cpu32::register_cdecl ( ptr32_t  addr,
const T &  cb 
)
inline

Definition at line 55 of file cpu32.h.

◆ register_stdcall() [1/2]

template<class R , class... Args>
void Cpu32::register_stdcall ( ptr32_t  addr,
const std::function< R(Args...)> &  callback 
)
inline

Definition at line 23 of file cpu32.h.

◆ register_stdcall() [2/2]

template<typename T >
void Cpu32::register_stdcall ( ptr32_t  addr,
const T &  cb 
)
inline

Definition at line 45 of file cpu32.h.

◆ register_thiscall() [1/2]

template<class R , class... Args>
void Cpu32::register_thiscall ( ptr32_t  addr,
const std::function< R(Args...)> &  callback 
)
inline

Definition at line 30 of file cpu32.h.

◆ register_thiscall() [2/2]

template<typename T >
void Cpu32::register_thiscall ( ptr32_t  addr,
const T &  cb 
)
inline

Definition at line 50 of file cpu32.h.


The documentation for this class was generated from the following files: