diff options
Diffstat (limited to 'sw-z80')
-rw-r--r-- | sw-z80/hello/hello.s | 9 | ||||
-rw-r--r-- | sw-z80/hello/makefile | 11 |
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 $@ $< |