]> git.sur5r.net Git - cc65/blob - test/ref/incr.c
remote TABs in doc/ and test/
[cc65] / test / ref / incr.c
1 /*
2   !!DESCRIPTION!! increment/decrement
3   !!ORIGIN!!      LCC 4.1 Testsuite
4   !!LICENCE!!     own, freely distributeable for non-profit. read CPYRIGHT.LCC
5 */
6
7 #include <stdio.h>
8
9 int main(void)
10 {
11     printf("disassemble this program to check the generated code.\n");
12     return 0;
13 }
14
15 memchar() {
16         char x, *p;
17
18         &x, &p;
19         x = *p++;
20         x = *++p;
21         x = *p--;
22         x = *--p;
23 }
24
25 memint() {
26         int x, *p;
27
28         &x, &p;
29         x = *p++;
30         x = *++p;
31         x = *p--;
32         x = *--p;
33 }
34
35 regchar() {
36         register char x, *p;
37
38         x = *p++;
39         x = *++p;
40         x = *p--;
41         x = *--p;
42 }
43
44 regint() {
45         register int x, *p;
46
47         x = *p++;
48         x = *++p;
49         x = *p--;
50         x = *--p;
51 }