2014-09-24 14:45:10 +00:00
|
|
|
/*
|
|
|
|
!!DESCRIPTION!! increment/decrement
|
|
|
|
!!ORIGIN!! LCC 4.1 Testsuite
|
|
|
|
!!LICENCE!! own, freely distributeable for non-profit. read CPYRIGHT.LCC
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include <stdio.h>
|
|
|
|
|
|
|
|
int main(void)
|
|
|
|
{
|
|
|
|
printf("disassemble this program to check the generated code.\n");
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
memchar() {
|
2019-02-12 21:50:49 +00:00
|
|
|
char x, *p;
|
2014-09-24 14:45:10 +00:00
|
|
|
|
2019-02-12 21:50:49 +00:00
|
|
|
&x, &p;
|
|
|
|
x = *p++;
|
|
|
|
x = *++p;
|
|
|
|
x = *p--;
|
|
|
|
x = *--p;
|
2014-09-24 14:45:10 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
memint() {
|
2019-02-12 21:50:49 +00:00
|
|
|
int x, *p;
|
2014-09-24 14:45:10 +00:00
|
|
|
|
2019-02-12 21:50:49 +00:00
|
|
|
&x, &p;
|
|
|
|
x = *p++;
|
|
|
|
x = *++p;
|
|
|
|
x = *p--;
|
|
|
|
x = *--p;
|
2014-09-24 14:45:10 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
regchar() {
|
2019-02-12 21:50:49 +00:00
|
|
|
register char x, *p;
|
2014-09-24 14:45:10 +00:00
|
|
|
|
2019-02-12 21:50:49 +00:00
|
|
|
x = *p++;
|
|
|
|
x = *++p;
|
|
|
|
x = *p--;
|
|
|
|
x = *--p;
|
2014-09-24 14:45:10 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
regint() {
|
2019-02-12 21:50:49 +00:00
|
|
|
register int x, *p;
|
2014-09-24 14:45:10 +00:00
|
|
|
|
2019-02-12 21:50:49 +00:00
|
|
|
x = *p++;
|
|
|
|
x = *++p;
|
|
|
|
x = *p--;
|
|
|
|
x = *--p;
|
2014-09-24 14:45:10 +00:00
|
|
|
}
|