37 lines
803 B
C
37 lines
803 B
C
// asmfuncs.h
|
|
// Author: Josh Holtrop
|
|
// Created: 02/26/04
|
|
// Modified: 05/21/04
|
|
|
|
#ifndef __HOS_ASMFUNCS__
|
|
#define __HOS_ASMFUNCS__ __HOS_ASMFUNCS__
|
|
|
|
#include "hos_defines.h"
|
|
|
|
extern "C" {
|
|
|
|
dword write_cr0(dword cr0);
|
|
dword read_cr0();
|
|
dword write_cr3(dword cr3);
|
|
dword read_cr2();
|
|
dword read_cr3();
|
|
void writeCursorPosition(dword pos);
|
|
dword getCursorPosition();
|
|
int puts(char *str);
|
|
int putDec(int number);
|
|
int putDecu(dword number);
|
|
void strcpy(char *dest, const char *src);
|
|
void memcpy(void *dest, const void *src, dword n);
|
|
void memcpyd(void *dest, const void *src, dword n);
|
|
void *memset(void *buffer, int c, int num);
|
|
void *memsetw(void *buffer, int c, int num);
|
|
void *memsetd(void *buffer, int c, int num);
|
|
dword strlen(const char *str);
|
|
void invlpg_(dword addr);
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|