Guest User

Untitled

a guest
Mar 17th, 2012
41
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.45 KB | None | 0 0
  1. #include "Screen.h"
  2.  
  3. Screen screen;
  4.  
  5. Screen::Screen(): mVideomemory((uint16*)__VIDEOMEMORY_ADDRESS_), mVideoXPos(0), mVideoYPos(0)
  6. {
  7.     uint16* video = (uint16*)0xB8000;
  8.     video[0] = 'H';
  9.     video[1] = 0x07;
  10.     video[2] = 'H';
  11.     video[3] = 0x07;
  12. }
  13.  
  14. Screen::~Screen()
  15. {
  16.     //
  17. }
  18.  
  19. void Screen::clear()
  20. {
  21.     uint16* video = (uint16*)0xB8000;
  22.     video[24] = 'H';
  23.     video[25] = 0x07;
  24.     video[26] = 'H';
  25.     video[27] = 0x07;
  26. }
Advertisement
Add Comment
Please, Sign In to add comment