WKern
Loading...
Searching...
No Matches
wexent.c File Reference
#include <io/kio.h>
#include <wex/stdwex.h>

Go to the source code of this file.

Functions

int * read_vals (const unsigned char *exec)
 Read First Values of WEX Executable.
int chKwex (const unsigned char *smt, int smt_len, const unsigned char *st, int st_len)
 Verify symbols in executable.
void Runwex (unsigned char *wexexecu)
 Automatically checks and executes an executable.

Function Documentation

◆ chKwex()

int chKwex ( const unsigned char * smt,
int smt_len,
const unsigned char * st,
int st_len )

Verify symbols in executable.

Parameters
SMT- Executables symbol table - Hex Array
SMT_LEN- Executable symbol table length - int
ST- Master Symbol Table
ST_LEN- Master Symbol Table Length
Returns
int - 0 if valid, 1 if invalid

Definition at line 51 of file wexent.c.

◆ read_vals()

int * read_vals ( const unsigned char * exec)

Read First Values of WEX Executable.

Parameters
exec- Executable in hexadecimal array format
Returns
Integer array containing executable data - ret[0]=Entry Point ret[1]=Symbol Table Size

Definition at line 30 of file wexent.c.

◆ Runwex()

void Runwex ( unsigned char * wexexecu)

Automatically checks and executes an executable.

Parameters
WEXEXECU- WEX Executable stored as Hexadecimal Array
Returns
Void Function - Does not return value

Definition at line 73 of file wexent.c.