diff --git a/programs/cmm/example/example.c b/programs/cmm/example/example.c index be5bec7142..a96987b380 100644 --- a/programs/cmm/example/example.c +++ b/programs/cmm/example/example.c @@ -1,13 +1,13 @@ #define MEMSIZE 0x3E80 #include "../lib/io.h" -#include "../lib/draw.h" void main() { - int id, key; + int id, key, i; + dword file; mem_Init(); - io.set("/sys/RUN",ATR_HIDDEN); + io.dir_buffer("/sys/",DIR_ONLYREAL); loop() { switch(WaitEvent()) @@ -20,7 +20,9 @@ void main() case evKey: key = GetKey(); if (key==013){ //Enter - WriteText(50,90,0x80,0xFF00FF,"Pressed Enter"); + draw_window(); + WriteText(50,90,0x80,0xFF00FF,io.dir_position(i)); + if(i