summaryrefslogtreecommitdiff
path: root/other/burneye2/tmp/switchtab
diff options
context:
space:
mode:
authorRoot THC2026-02-24 12:42:47 +0000
committerRoot THC2026-02-24 12:42:47 +0000
commitc9cbeced5b3f2bdd7407e29c0811e65954132540 (patch)
treeaefc355416b561111819de159ccbd86c3004cf88 /other/burneye2/tmp/switchtab
parent073fe4bf9fca6bf40cef2886d75df832ef4b6fca (diff)
initial
Diffstat (limited to 'other/burneye2/tmp/switchtab')
-rw-r--r--other/burneye2/tmp/switchtab/Makefile19
-rw-r--r--other/burneye2/tmp/switchtab/switch.c39
-rw-r--r--other/burneye2/tmp/switchtab/switch.obin0 -> 932 bytes
-rw-r--r--other/burneye2/tmp/switchtab/switch_output.c41
-rw-r--r--other/burneye2/tmp/switchtab/switch_output.obin0 -> 1080 bytes
5 files changed, 99 insertions, 0 deletions
diff --git a/other/burneye2/tmp/switchtab/Makefile b/other/burneye2/tmp/switchtab/Makefile
new file mode 100644
index 0000000..c4224dd
--- /dev/null
+++ b/other/burneye2/tmp/switchtab/Makefile
@@ -0,0 +1,19 @@
1
2DFLAGS=
3CC=gcc-3.2
4LD=ld
5CFLAGS=$(DFLAGS) -Wall -O
6LIBS=-Lelf -lxelf -Lia32 -lia32
7
8all: switch
9
10clean:
11 rm -f switch.o
12
13switch: switch.c
14 $(CC) $(CFLAGS) -c -o switch.o switch.c
15# $(LD) -r -o switch-final.o switch.o \
16# /usr/lib/diet/lib-i386/libc.a \
17# /usr/lib/diet/lib-i386/start.o
18
19
diff --git a/other/burneye2/tmp/switchtab/switch.c b/other/burneye2/tmp/switchtab/switch.c
new file mode 100644
index 0000000..c6b12f8
--- /dev/null
+++ b/other/burneye2/tmp/switchtab/switch.c
@@ -0,0 +1,39 @@
1
2#include <unistd.h>
3
4int
5main (int argc, char *argv[])
6{
7 int change;
8
9 switch (argc) {
10 case (0):
11 change = 0;
12 break;
13 case (1):
14 change = 7;
15 break;
16 case (3):
17 change = 12;
18 break;
19 case (4):
20 change = 49;
21 break;
22 case (5):
23 change = 18;
24 break;
25 case (6):
26 change = 4;
27 break;
28 case (7):
29 change = 13;
30 break;
31 default:
32 change = 0;
33 break;
34 }
35
36 return (change);
37}
38
39
diff --git a/other/burneye2/tmp/switchtab/switch.o b/other/burneye2/tmp/switchtab/switch.o
new file mode 100644
index 0000000..8fc5f92
--- /dev/null
+++ b/other/burneye2/tmp/switchtab/switch.o
Binary files differ
diff --git a/other/burneye2/tmp/switchtab/switch_output.c b/other/burneye2/tmp/switchtab/switch_output.c
new file mode 100644
index 0000000..ef22580
--- /dev/null
+++ b/other/burneye2/tmp/switchtab/switch_output.c
@@ -0,0 +1,41 @@
1
2#include <unistd.h>
3
4int
5main (int argc, char *argv[])
6{
7 int change;
8
9 switch (argc) {
10 case (0):
11 change = 0;
12 break;
13 case (1):
14 change = 7;
15 break;
16 case (3):
17 change = 12;
18 break;
19 case (4):
20 change = 49;
21 break;
22 case (5):
23 change = 18;
24 break;
25 case (6):
26 change = 4;
27 break;
28 case (7):
29 change = 13;
30 break;
31 default:
32 change = 0;
33 break;
34 }
35
36 printf ("change: %d\n", change);
37
38 return (change);
39}
40
41
diff --git a/other/burneye2/tmp/switchtab/switch_output.o b/other/burneye2/tmp/switchtab/switch_output.o
new file mode 100644
index 0000000..0e81959
--- /dev/null
+++ b/other/burneye2/tmp/switchtab/switch_output.o
Binary files differ