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 main(void)9int main(void) 10 { 11 printf("disassemble this program to check the generated code.\n"); 12 return 0; 13 } 14 memchar()15memchar() { 16 char x, *p; 17 18 &x, &p; 19 x = *p++; 20 x = *++p; 21 x = *p--; 22 x = *--p; 23 } 24 memint()25memint() { 26 int x, *p; 27 28 &x, &p; 29 x = *p++; 30 x = *++p; 31 x = *p--; 32 x = *--p; 33 } 34 regchar()35regchar() { 36 register char x, *p; 37 38 x = *p++; 39 x = *++p; 40 x = *p--; 41 x = *--p; 42 } 43 regint()44regint() { 45 register int x, *p; 46 47 x = *p++; 48 x = *++p; 49 x = *p--; 50 x = *--p; 51 } 52