summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNao Pross <naopross@thearcway.org>2018-11-01 01:23:45 +0100
committerNao Pross <naopross@thearcway.org>2018-11-01 01:23:45 +0100
commitc7d7b50451924b8eccacb7540f58608eaf3017cb (patch)
tree1a3fe45747064dc5537f028137e87b9f851672de
parentAdd Z80 user manual (diff)
downloadz80uPC-c7d7b50451924b8eccacb7540f58608eaf3017cb.tar.gz
z80uPC-c7d7b50451924b8eccacb7540f58608eaf3017cb.zip
[z80] Add hello projectnaopross
Diffstat (limited to '')
-rw-r--r--sw-z80/hello/hello.s9
-rw-r--r--sw-z80/hello/makefile11
2 files changed, 20 insertions, 0 deletions
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 $@ $<