many improvements on VM and tooling
This commit is contained in:
@@ -8,4 +8,9 @@ export function frame(): void {
|
||||
do_touch();
|
||||
do_fs();
|
||||
print_orange();
|
||||
|
||||
{
|
||||
const x = 10;
|
||||
gfx.drawText(120, 100, "1. value of " + x, color.white);
|
||||
}
|
||||
}
|
||||
@@ -1,8 +1,8 @@
|
||||
export function do_fs(): void {
|
||||
let h = fs.open("test.txt");
|
||||
let h: number = fs.open("test.txt");
|
||||
if (h >= 0) {
|
||||
fs.write(h, "Hello Prometeu!");
|
||||
let content = fs.read(h);
|
||||
let content: string = fs.read(h);
|
||||
if (content) log.writeTag(2, 101, content);
|
||||
fs.close(h);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user