mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-01 00:33:09 +00:00
19 lines
268 B
C
19 lines
268 B
C
|
#include <stdio.h>
|
||
|
|
||
|
int main (int argc, char** argv) {
|
||
|
int a, b, c, d, i;
|
||
|
|
||
|
a = b = c = d = 1;
|
||
|
|
||
|
for (i=0; i < 15; i++) {
|
||
|
a = b + c;
|
||
|
c = d - b;
|
||
|
d = a + b;
|
||
|
b = c + i;
|
||
|
}
|
||
|
|
||
|
printf("a = %d, b = %d, c = %d, d = %d\n", a, b, c, d);
|
||
|
|
||
|
return 0;
|
||
|
}
|