6 Hello, world example - using graphic functions
8 Maciej 'YTM/Alliance' Witkowiak
16 /* Let's define the window we're operating */
17 struct window wholeScreen = {0, 199, 0, 319};
23 /* Let's show what we've got... */
25 /* Let's clear the screen - with different pattern, because apps have cleared screen upon
29 InitDrawWindow(&wholeScreen);
34 PutString(COUTLINEON "This is compiled using cc65!" CPLAINTEXT, 20, 10);
35 PutString(CBOLDON "This is bold", 30, 10);
36 PutString(CULINEON "and this is bold and underline!", 40, 10);
37 PutString(CPLAINTEXT "This is plain text", 50, 10);
39 /* Wait for 5 secs... */
40 /* Note that this is multitasking sleep, and if there are any icons/menus onscreen,
41 they would be usable, in this case you have only pointer usable */
45 /* Normal apps exit from main into system's mainloop, and app finish
46 when user selects it from icons or menu, but here we want to exit