Subversion Repositories Kolibri OS

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
7873 rgimad 1
// -------------------------------------------------------------
2
// KWINE is a fork of program PELoad written by 0CodErr
3
// author of fork - rgimad
4
//-------------------------------------------------------------
5
#ifndef MSVCRT_DLL_H
6
#define MSVCRT_DLL_H
7
 
8
#define NULL ((void*)0)
9
 
10
#define cdecl   __attribute__ ((cdecl))
11
#define stdcall __attribute__ ((stdcall))
12
 
13
//#define cdecl   __cdecl
14
//#define stdcall __stdcall
15
 
16
 
17
static inline void debug_board_write_byte(const char ch){
18
    __asm__ __volatile__(
19
    "int $0x40"
20
    :
21
    :"a"(63), "b"(1), "c"(ch));
22
}
23
 
24
static inline void debug_board_write_string(char *str){
25
	char ch;
26
	while (ch = *(str++))
27
	{
28
	    __asm__ __volatile__(
29
	    "int $0x40"
30
	    :
31
	    :"a"(63), "b"(1), "c"(ch));
32
	}
33
}
34
//
35
 
36
#endif