Skip to content

Commit

Permalink
ted: Yield after printing each row
Browse files Browse the repository at this point in the history
  • Loading branch information
ry755 committed May 5, 2024
1 parent ce70bdc commit a82f002
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion applications/ted/OS.okm
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ MODULE OS;
REDRAW = 0FFH;

EXTERN PROCEDURE end_current_task, open, create, read, write, get_size, get_current_disk_id,
allocate_memory, free_memory, string_length, copy_memory_bytes, copy_string: INT;
allocate_memory, free_memory, string_length, copy_memory_bytes, copy_string, save_state_and_yield_task: INT;

EXTERN PROCEDURE brk: INT;

Expand Down
3 changes: 1 addition & 2 deletions applications/ted/TEd.okm
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,6 @@ MODULE TEd;
rowAt: POINTER TO Row;
fileRow: INT;
BEGIN
(* draw tildes *)
y := 0;
WHILE y <| 24 DO
fileRow := y + rowOffset;
Expand Down Expand Up @@ -214,7 +213,7 @@ MODULE TEd;
END;

PrintChar(10);

save_state_and_yield_task();
y := y + 1;
END;
END;
Expand Down

0 comments on commit a82f002

Please sign in to comment.