From 05f9aaab9f6f20a32eb12a2abc89efe1893dec16 Mon Sep 17 00:00:00 2001 From: David Phillips Date: Sat, 28 Dec 2019 17:26:09 +1300 Subject: Add infinite loop code and Makefile --- loop/Makefile | 15 +++++++++++++++ loop/loop.asm | 2 ++ 2 files changed, 17 insertions(+) create mode 100644 loop/Makefile create mode 100644 loop/loop.asm (limited to 'loop') 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 -- cgit v1.1