Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int main(){
- char *video = (char*)0xB8000;
- char *hello = "Hello World";
- for(video+=4000; video !=(char*)0xB8000; video--)
- *video=0; // <==== sobald der compiler diese zeile erreicht, stürzt das Programm noch im ersten durchschlauf ab
- while (*hello) {
- *video = *hello;
- ++video;
- *video = 0x07;
- ++video;
- ++hello;
- }
- while (1);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment