WKern
Loading...
Searching...
No Matches
stdwex.h
Go to the documentation of this file.
1/*
2WKern - A Bare Metal OS / Kernel I am making (For Fun)
3Copyright (C) 2025 Wdboyes13
4
5This program is free software: you can redistribute it and/or modify
6it under the terms of the GNU General Public License as published by
7the Free Software Foundation, either version 3 of the License, or
8any later version.
9
10This program is distributed in the hope that it will be useful,
11but WITHOUT ANY WARRANTY; without even the implied warranty of
12MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13GNU General Public License for more details.
14
15You should have received a copy of the GNU General Public License
16along with this program. If not, see <https://www.gnu.org/licenses/>.
17*/
18
19#pragma once
28static unsigned char smt[] = {
29 0x0A, // Write
30 0x0B, // Read
31 0x0C, // Shutdown system
32 0x0D, // Sleep 1
33 0x01 // Clear Screen
34};
35
36unsigned char *Execr();
37void Runwex(unsigned char *wexexecu);
38int *ReadVals(const unsigned char *exec);
39int Chkwex(const unsigned char *smt, int smt_len, const unsigned char *st,
40 int st_len);
41
42void Exec(unsigned char *exec);
void Exec(unsigned char *exec)
Definition wexexec.c:29
void Runwex(unsigned char *wexexecu)
Automatically checks and executes an executable.
Definition wexent.c:73
int * ReadVals(const unsigned char *exec)
int Chkwex(const unsigned char *smt, int smt_len, const unsigned char *st, int st_len)
unsigned char * Execr()
Definition testexec.c:34