From d3713129e61a8953a61b8f15f7be6a3110197ed5 Mon Sep 17 00:00:00 2001 From: Ian C Date: Fri, 6 May 2016 16:12:42 +0100 Subject: Added simple library format. --- src/test/lib1 | 14 ++++++++++++++ src/test/lib2 | 15 +++++++++++++++ src/test/link | 6 ++++++ 3 files changed, 35 insertions(+) create mode 100644 src/test/lib1 create mode 100644 src/test/lib2 create mode 100644 src/test/link (limited to 'src/test') diff --git a/src/test/lib1 b/src/test/lib1 new file mode 100644 index 0000000..8974fd5 --- /dev/null +++ b/src/test/lib1 @@ -0,0 +1,14 @@ + option output-file,lib1.lib + option output-format,lib + + org $8000 + +start_lib1: + ld hl,$1234 + call $bb5a +end_lib1: + +data1: + db "I'm data from lib1" + +var_lib1 equ $ffff diff --git a/src/test/lib2 b/src/test/lib2 new file mode 100644 index 0000000..a1c6224 --- /dev/null +++ b/src/test/lib2 @@ -0,0 +1,15 @@ + option output-file,lib2.lib + option output-format,lib + + org $8800 + +start_lib2: + ld hl,$4321 + call $0100 +end_lib2: + +data2: + db "I'm data from lib2" + +var_lib2 equ $7fff +var_lib1 equ $1234 diff --git a/src/test/link b/src/test/link new file mode 100644 index 0000000..ec09bd6 --- /dev/null +++ b/src/test/link @@ -0,0 +1,6 @@ + option output-file,"link.out" + option +list + option list-labels,all + + import "lib2.lib" + import "lib1.lib" -- cgit v1.2.3