From c7d7b50451924b8eccacb7540f58608eaf3017cb Mon Sep 17 00:00:00 2001 From: Nao Pross Date: Thu, 1 Nov 2018 01:23:45 +0100 Subject: [z80] Add hello project --- sw-z80/hello/hello.s | 9 +++++++++ sw-z80/hello/makefile | 11 +++++++++++ 2 files changed, 20 insertions(+) create mode 100644 sw-z80/hello/hello.s create mode 100644 sw-z80/hello/makefile diff --git a/sw-z80/hello/hello.s b/sw-z80/hello/hello.s new file mode 100644 index 0000000..d5d3323 --- /dev/null +++ b/sw-z80/hello/hello.s @@ -0,0 +1,9 @@ +org 100h +jp .loop + +.loop: + ; main loop code + ld a,1 + jp .loop + +halt diff --git a/sw-z80/hello/makefile b/sw-z80/hello/makefile new file mode 100644 index 0000000..80e3459 --- /dev/null +++ b/sw-z80/hello/makefile @@ -0,0 +1,11 @@ +.PHONY: all disassemble clean +all: hello.bin + +disassemble: hello.bin + z80dasm $< + +clean: + rm -f hello.bin + +hello.bin: hello.s + z80asm -o $@ $< -- cgit v1.2.1