aboutsummaryrefslogtreecommitdiff
path: root/Semestr 4/ask/lista8/start.c
diff options
context:
space:
mode:
Diffstat (limited to 'Semestr 4/ask/lista8/start.c')
-rw-r--r--Semestr 4/ask/lista8/start.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/Semestr 4/ask/lista8/start.c b/Semestr 4/ask/lista8/start.c
new file mode 100644
index 0000000..a875ace
--- /dev/null
+++ b/Semestr 4/ask/lista8/start.c
@@ -0,0 +1,8 @@
+int is_even(long);
+
+void _start(void) {
+ asm volatile(
+ "syscall"
+ : /* no output */
+ : "a" (0x3c), "D" (is_even(42)));
+}