4 Hello, world example - using graphic functions
6 Maciej 'YTM/Alliance' Witkowiak
15 // Let's define the window we're operating
16 struct window wholeScreen = {0, SC_PIX_HEIGHT-1, 0, SC_PIX_WIDTH-1};
21 // Let's show what we've got...
23 // Let's clear the screen - with different pattern, because apps have cleared screen upon
26 InitDrawWindow(&wholeScreen);
30 PutString(COUTLINEON "This is compiled using cc65!" CPLAINTEXT, 20, 10);
31 PutString(CBOLDON "This is bold", 30, 10);
32 PutString(CULINEON "and this is bold and underline!", 40, 10);
33 PutString(CPLAINTEXT "This is plain text", 50, 10);
36 // Note that this is multitasking sleep, and if there are any icons/menus onscreen,
37 // they would be usable, in this case you have only pointer usable
40 // Normal apps exit from main into system's mainloop, and app finish
41 // when user selects it from icons or menu, but here we want to exit
46 // (nothing as this is the end of main function)