Guest User

Untitled

a guest
Jul 16th, 2012
37
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.42 KB | None | 0 0
  1. int main(){
  2.     char *video = (char*)0xB8000;
  3.     char *hello = "Hello World";
  4.  
  5.     for(video+=4000; video !=(char*)0xB8000; video--)
  6.         *video=0;   // <==== sobald der compiler diese zeile erreicht, stürzt das Programm noch im ersten durchschlauf ab
  7.  
  8.     while (*hello) {
  9.         *video = *hello;
  10.         ++video;
  11.         *video = 0x07;
  12.         ++video;
  13.         ++hello;
  14.     }
  15.  
  16.     while (1);
  17.     return 0;
  18. }
Advertisement
Add Comment
Please, Sign In to add comment