Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include "Screen.h"
- Screen screen;
- Screen::Screen(): mVideomemory((uint16*)__VIDEOMEMORY_ADDRESS_), mVideoXPos(0), mVideoYPos(0)
- {
- uint16* video = (uint16*)0xB8000;
- video[0] = 'H';
- video[1] = 0x07;
- video[2] = 'H';
- video[3] = 0x07;
- }
- Screen::~Screen()
- {
- //
- }
- void Screen::clear()
- {
- uint16* video = (uint16*)0xB8000;
- video[24] = 'H';
- video[25] = 0x07;
- video[26] = 'H';
- video[27] = 0x07;
- }
Advertisement
Add Comment
Please, Sign In to add comment