Quantcast
Channel: Active questions tagged kernel - Stack Overflow
Viewing all articles
Browse latest Browse all 6502

How to write a string in 32 protected mode in C language

$
0
0

I would like to print a string on screen in protected mode.I enclose the code.When I go to run it, GCC warns me that the function argument has a type that is incompatible with the parameter.Can anyone help me out?

void write_string( int colour, const char *string );void main(){   int colour = 4;   const char string[] = "Ciaoooooo";     write_string(colour, &string);  }void write_string( int colour, const char *string ){   volatile char *video = (volatile char*)0xB8000;   while( *string != 0 )   {       *video++ = *string++;       *video++ = colour;   }}```

Viewing all articles
Browse latest Browse all 6502

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>