diff options
author | David Phillips <david@yeah.nah.nz> | 2019-12-28 17:26:09 +1300 |
---|---|---|
committer | David Phillips <david@yeah.nah.nz> | 2019-12-28 17:28:06 +1300 |
commit | 05f9aaab9f6f20a32eb12a2abc89efe1893dec16 (patch) | |
tree | f199f048ae547bd613070bf85b6bb09e3b324166 /loop | |
download | pi-zero-jtag-05f9aaab9f6f20a32eb12a2abc89efe1893dec16.tar.xz |
Add infinite loop code and Makefile
Diffstat (limited to 'loop')
-rw-r--r-- | loop/Makefile | 15 | ||||
-rw-r--r-- | loop/loop.asm | 2 |
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 |