From 05f9aaab9f6f20a32eb12a2abc89efe1893dec16 Mon Sep 17 00:00:00 2001
From: David Phillips <david@yeah.nah.nz>
Date: Sat, 28 Dec 2019 17:26:09 +1300
Subject: Add infinite loop code and Makefile

---
 loop/Makefile | 15 +++++++++++++++
 1 file changed, 15 insertions(+)
 create mode 100644 loop/Makefile

(limited to 'loop/Makefile')

diff --git a/loop/Makefile b/loop/Makefile
new file mode 100644
index 0000000..9933bc5
--- /dev/null
+++ b/loop/Makefile
@@ -0,0 +1,15 @@
+.PHONY: all clean
+all: loop.bin
+
+CROSS_COMPILE ?=
+AS = $(CROSS_COMPILE)as
+OBJCOPY = $(CROSS_COMPILE)objcopy
+
+loop.bin: loop.elf
+	$(OBJCOPY) -O binary $? $@
+
+loop.elf: loop.asm
+	$(AS) -o $@ $?
+
+clean:
+	rm -f loop.{bin,elf}
-- 
cgit v1.1