summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorIan C <ianc@noddybox.co.uk>2004-08-22 22:51:39 +0000
committerIan C <ianc@noddybox.co.uk>2004-08-22 22:51:39 +0000
commit6cee147b6b1f583a03844978c706a9a75749eef5 (patch)
tree42c9c308083fc54199698c71ebf2fb48f2761685 /test
parent5b510f1aeab809f8265004ed6e64cd353f6005cc (diff)
Added -c switch
Diffstat (limited to 'test')
-rw-r--r--test/Makefile25
-rw-r--r--test/reset.asm23
2 files changed, 47 insertions, 1 deletions
diff --git a/test/Makefile b/test/Makefile
index a4cf8c3..c3ebafb 100644
--- a/test/Makefile
+++ b/test/Makefile
@@ -18,36 +18,56 @@
#
# -------------------------------------------------------------------------
#
-# $Id: Makefile,v 1.1 2004-08-22 01:06:09 ianc Exp $
+# $Id: Makefile,v 1.2 2004-08-22 22:51:39 ianc Exp $
#
+# One file with loader test
+#
test1: ../int2tap code.bin
../int2tap test1.tap code.bin
fuse test1.tap
+# Two file with loader test, split and with forced address test
+#
test2: ../int2tap code.bin screen.bin
../int2tap -a 0x8000 -s test2.tap screen.bin code.bin
fuse test2.tap
+# Binary only test
+#
test3: ../int2tap screen.bin
../int2tap -b test3.tap screen.bin
fuse test3.tap
+# Test for examination to see if it matches .TAP docs
+#
test4: ../int2tap b2.bin
../int2tap -b test4.tap b2.bin
+# Binary only test (again for some reason...)
+#
test5: ../int2tap code.bin
../int2tap -b test5.tap code.bin
fuse test5.tap
+# M/C with just a RET (so the BASIC can be examined)
+#
test6: ../int2tap ret.bin
../int2tap test6.tap ret.bin
fuse test6.tap
+# Two files into one binary test
+#
test7: ../int2tap part1.bin part2.bin
../int2tap test7.tap part1.bin part2.bin
fuse test7.tap
+# CLEAR test
+#
+test8: ../int2tap reset.bin
+ ../int2tap -c 0x8000 test8.tap reset.bin
+ fuse test8.tap
+
code.bin: code.asm
tpasm -P Z80 -o intel code.bin code.asm
@@ -66,6 +86,9 @@ part1.bin: part1.asm
part2.bin: part2.asm
tpasm -P Z80 -o intel part2.bin part2.asm
+reset.bin: reset.asm
+ tpasm -P Z80 -o intel reset.bin reset.asm
+
../int2tap: ../*.[ch]
cd .. ; make ; cd test
diff --git a/test/reset.asm b/test/reset.asm
new file mode 100644
index 0000000..9210842
--- /dev/null
+++ b/test/reset.asm
@@ -0,0 +1,23 @@
+; Test code - used with a CLEAR line to resist a new
+;
+; $Id$
+;
+ org 32768
+
+ ld d,8
+loop:
+ ld bc,6912
+ ld hl,16384
+
+loop1:
+ ld a,r
+ out (0xfe),a
+ inc (hl)
+ inc hl
+ dec c
+ jr nz,loop1
+ djnz loop1
+
+ dec d
+ jr nz,loop
+ ret