Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdint.h>
- #define VIDEO_MEM_TEXT 0xb8000
- #define ATTR_BWHITE_ON_MAGENTA 0x5f
- static volatile uint16_t *video_mem = (uint16_t*)VIDEO_MEM_TEXT;
- int kernel_main()
- {
- video_mem[0] = (ATTR_BWHITE_ON_MAGENTA << 8) | 'H';
- video_mem[1] = (ATTR_BWHITE_ON_MAGENTA << 8) | 'e';
- video_mem[2] = (ATTR_BWHITE_ON_MAGENTA << 8) | 'l';
- video_mem[3] = (ATTR_BWHITE_ON_MAGENTA << 8) | 'l';
- video_mem[4] = (ATTR_BWHITE_ON_MAGENTA << 8) | 'o';
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement