aforth

FORTH for Linux x86-64, written in assembly.
git clone git://henryandlizzy.uk/aforth
Log | Files | Refs | README

commit 177a6513ed36a9fadbca1df44845e62dc5c3ff0d
parent 17f3aa7f100c2c6af63d08fe8d5930b7055a98fc
Author: Henry Wilson <m3henry@googlemail.com>
Date:   Sat, 17 Jun 2017 17:00:57 +0100

moved to makefile

Diffstat:
Dcompile.sh | 4----
Mmain.s | 2+-
Amakefile | 14++++++++++++++
3 files changed, 15 insertions(+), 5 deletions(-)

diff --git a/compile.sh b/compile.sh @@ -1,4 +0,0 @@ -#! /bin/bash - -gcc -c -o obj/main.o main.s && ld -o bin/aFORTH obj/* && echo -ne "Testing, 123! \xe2\x9c\x93" | bin/aFORTH -echo "Returns:" $? diff --git a/main.s b/main.s @@ -74,7 +74,7 @@ .data cold: forthword -_cold: saycr "aFORTH alpha" +_cold: saycr "aFORTH alpha \xe2\x9c\x93" const 0 do numtib do store diff --git a/makefile b/makefile @@ -0,0 +1,14 @@ +all: bin/aFORTH + @echo Testing... + @/bin/echo -ne "Testing, 123! \xe2\x9c\x93" | bin/aFORTH + +bin/aFORTH: obj/main.o + @echo Linking... + @ld -o bin/aFORTH obj/main.o + +obj/main.o: main.s + @echo Compiling... + @gcc -c -o obj/main.o main.s + +clean: + @rm obj/*