View difference between Paste ID: snLb27Qk and cndTwfvj
SHOW: | | - or go back to the newest paste.
1
fn print_str(str : int)
2-
	var x : int;
2+
3
	while (1)
4
	{
5
  x : int;
6
  --
7
		x := read8(str);
8
		if (x = 0) {
9
			break;
10
		}
11
		putc(x);
12
		str := str + 1;
13
	}
14
}