Atlas - HELLO.C

Home / systems / IBM-PC / PhotonX / src / demos Lines: 3 | Size: 636 bytes [Download] [Show on GitHub] [Search similar files] [Raw] [Raw (proxy)]
[FILE BEGIN]
1#include "VGA.H" 2 3int main() 4{ 5 vga_set_mode(VGA_MODE_TEXT_80x25); 6 vga_text_setcolor(15, 1); 7 vga_text_cls(); 8 vga_text_gotoxy(0, 0); 9 vga_text_puts("PhotonX Demo: Hello World\r\n"); 10 vga_text_setcolor(14, 0); 11 vga_text_puts("Press any key to continue...\r\n"); 12 vga_wait_key(); 13 14 vga_set_mode(VGA_MODE_320x200x256); 15 vga_gfx_setclscolor(1); 16 vga_gfx_cls(); 17 vga_gfx_puts("HELLO WORLD", 108, 96, 15); 18 vga_gfx_puts("PRESS KEY", 116, 110, 14); 19 vga_wait_key(); 20 21 vga_set_mode(VGA_MODE_TEXT_80x25); 22 vga_text_setcolor(15, 0); 23 vga_text_cls(); 24 25 return 0; 26} 27
[FILE END]
(C) 2025 0x4248 (C) 2025 4248 Media and 4248 Systems, All part of 0x4248 See LICENCE files for more information. Not all files are by 0x4248 always check Licencing.