diff options
author | Ian C <ianc@noddybox.co.uk> | 2016-05-06 16:12:42 +0100 |
---|---|---|
committer | Ian C <ianc@noddybox.co.uk> | 2016-05-06 16:12:42 +0100 |
commit | d3713129e61a8953a61b8f15f7be6a3110197ed5 (patch) | |
tree | 2b6bc2e0ca728dc17bb3fbcba7632b6a929797e4 /src/test | |
parent | 0b3c0e2a2e347db8af3f29d4dc8c86797981bc85 (diff) |
Added simple library format.
Diffstat (limited to 'src/test')
-rw-r--r-- | src/test/lib1 | 14 | ||||
-rw-r--r-- | src/test/lib2 | 15 | ||||
-rw-r--r-- | src/test/link | 6 |
3 files changed, 35 insertions, 0 deletions
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" |