Gordons Projects

--> Projects Top-Level GIT

Initial commit into GIT
[cesil] / mtable.csl
1
2 # mtable:
3 #       Multiplication table generator
4
5         line
6         print   "Multiplication table generator"
7         line
8         print   "What table"
9         in
10         store   table
11
12         load    1
13         store   index
14
15 loop:
16         load    index
17         out     
18         print   " TIMES "
19         load    table
20         out
21         print   " = "
22
23         mul     index
24
25         out
26         line
27
28         load    index
29         add     1
30         store   index
31         sub     11
32         jineg   loop
33         halt
34