Guest User

Untitled

a guest
Oct 8th, 2014
190
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.45 KB | None | 0 0
  1. #include "console.h"
  2.  
  3. void init(void)
  4. {
  5.  
  6. clrscr();
  7.  
  8. puts("Hallo Welt");
  9.  
  10. /*
  11. const char hw[] = "Mein kleines Betriebssystem";
  12. int i;
  13. char* video = (char*) 0xb8000;
  14.  
  15. // C-Strings haben ein Nullbyte als Abschluss
  16. for (i = 0; hw[i] != '\0'; i++) {
  17.  
  18. // Zeichen i in den Videospeicher kopieren
  19. video[i * 2] = hw[i];
  20.  
  21. // 0x07 = Hellgrau auf Schwarz
  22. video[i * 2 + 1] = 0x04;
  23. }
  24. */
  25.  
  26. }
Advertisement
Add Comment
Please, Sign In to add comment