diff options
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" |