diff options
-rw-r--r-- | .gitignore | 3 | ||||
-rw-r--r-- | loop/Makefile | 15 | ||||
-rw-r--r-- | loop/loop.asm | 2 |
3 files changed, 20 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..0fa6929 --- /dev/null +++ b/.gitignore @@ -0,0 +1,3 @@ +*.bin +*.elf +*.swp 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 |