summaryrefslogtreecommitdiff
path: root/loop
diff options
context:
space:
mode:
authorDavid Phillips <david@yeah.nah.nz>2019-12-28 17:26:09 +1300
committerDavid Phillips <david@yeah.nah.nz>2019-12-28 17:28:06 +1300
commit05f9aaab9f6f20a32eb12a2abc89efe1893dec16 (patch)
treef199f048ae547bd613070bf85b6bb09e3b324166 /loop
downloadpi-zero-jtag-05f9aaab9f6f20a32eb12a2abc89efe1893dec16.tar.xz
Add infinite loop code and Makefile
Diffstat (limited to 'loop')
-rw-r--r--loop/Makefile15
-rw-r--r--loop/loop.asm2
2 files changed, 17 insertions, 0 deletions
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}
diff --git a/loop/loop.asm b/loop/loop.asm
new file mode 100644
index 0000000..efc482e
--- /dev/null
+++ b/loop/loop.asm
@@ -0,0 +1,2 @@
+start:
+ b start