summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile6
-rw-r--r--jefs.s7
-rw-r--r--readme.md2
3 files changed, 11 insertions, 4 deletions
diff --git a/Makefile b/Makefile
index 61e58c0..ff03bbf 100644
--- a/Makefile
+++ b/Makefile
@@ -2,10 +2,10 @@ TARGET := jefs
SRCS = $(TARGET).s
$(TARGET): $(TARGET).o
- ld -static -m elf_i386 -o $@ $<
+ ld -static -o $@ $<
-$(TARGET): $(SRCS)
- nasm -g -F dwarf -O0 -f elf32 -o $@ $<
+$(TARGET).o: $(SRCS)
+ nasm -g -F dwarf -O0 -f elf64 -o $@ $<
.PHONY: clean
clean:
diff --git a/jefs.s b/jefs.s
new file mode 100644
index 0000000..1919416
--- /dev/null
+++ b/jefs.s
@@ -0,0 +1,7 @@
+; jewelforth
+section .text
+global _start
+_start:
+ mov rdi, 0
+ mov rax, 60
+ syscall
diff --git a/readme.md b/readme.md
index 4e88256..5710886 100644
--- a/readme.md
+++ b/readme.md
@@ -1,6 +1,6 @@
# jewelforth
-its a forth for linux x86. mostly made for personal stuff.
+its a forth for linux x86\_64. mostly made for personal stuff.
if you use it and it breaks, too bad
public domain