I just learned how to write cleo, I don't know why pressing Z crashing, can anyone help me!!!
Code:
{$CLEO .cs}
0000: NOP
:MAIN
wait 0
if 0AB0: key_pressed 52 // Z
then
if 0AAB: file_exists "cleo/test.txt"
then
0AD3: 2@ = format "This is a CLEO test line.\n"
0A9A: 1@ = openfile "cleo\test.txt" mode "wt+"
0AD8: write_string_to_file 1@ from 2@
0A9B: closefile 1@
end
end
jump @MAIN