git @ Cat's Eye Technologies SixtyPical / 2c564f0
Add uncommitted example source, and fix names of 2 others. Chris Pressey 5 years ago
5 changed file(s) with 61 addition(s) and 51 deletion(s). Raw diff Collapse all Expand all
0 routine chrout
1 inputs a
2 trashes a
3 @ 65490
4
5 routine main
6 trashes a, x, y, z, n, c, v
7 {
8 ld a, 0
9 if z {
10 ld a, 89
11 call chrout
12 } else {
13 ld a, 78
14 call chrout
15 }
16
17 ld a, 1
18 if z {
19 ld a, 89
20 call chrout
21 } else {
22 ld a, 78
23 call chrout
24 }
25 }
+0
-26
eg/conditional.p60 less more
0 routine chrout
1 inputs a
2 trashes a
3 @ 65490
4
5 routine main
6 trashes a, x, y, z, n, c, v
7 {
8 ld a, 0
9 if z {
10 ld a, 89
11 call chrout
12 } else {
13 ld a, 78
14 call chrout
15 }
16
17 ld a, 1
18 if z {
19 ld a, 89
20 call chrout
21 } else {
22 ld a, 78
23 call chrout
24 }
25 }
0 routine chrout
1 inputs a
2 trashes a
3 @ 65490
4
5 routine main
6 trashes a, x, y, z, n, c, v
7 {
8 ld a, 0
9 if z {
10 ld a, 89
11 call chrout
12 ld a, 1
13 }
14
15 ld a, 65
16 call chrout
17
18 ld a, 1
19 if z {
20 ld a, 89
21 call chrout
22 ld a, 1
23 }
24 }
+0
-25
eg/conditional2.p60 less more
0 routine chrout
1 inputs a
2 trashes a
3 @ 65490
4
5 routine main
6 trashes a, x, y, z, n, c, v
7 {
8 ld a, 0
9 if z {
10 ld a, 89
11 call chrout
12 ld a, 1
13 }
14
15 ld a, 65
16 call chrout
17
18 ld a, 1
19 if z {
20 ld a, 89
21 call chrout
22 ld a, 1
23 }
24 }
0 byte bar
1 byte baz
2
3 routine main
4 inputs baz
5 outputs bar
6 trashes a, n, z
7 {
8 copy baz, bar
9 }