diff options
| author | Kimplul <kimi.h.kuparinen@gmail.com> | 2023-10-28 11:48:28 +0300 |
|---|---|---|
| committer | Kimplul <kimi.h.kuparinen@gmail.com> | 2023-10-28 11:48:28 +0300 |
| commit | 8153447847aeaa0e1181cf62579cc3264ba44a8b (patch) | |
| tree | 08d2d9992748e04c94f201acdccc28504d236df6 /tasm/tests | |
| parent | d96b8c7d12fc61ec609d6138627b9d6d18139a9a (diff) | |
| download | tri-8153447847aeaa0e1181cf62579cc3264ba44a8b.tar.gz tri-8153447847aeaa0e1181cf62579cc3264ba44a8b.zip | |
add initial relocation stuff
Diffstat (limited to 'tasm/tests')
| -rw-r--r-- | tasm/tests/labels.t | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/tasm/tests/labels.t b/tasm/tests/labels.t new file mode 100644 index 0000000..5ad0d42 --- /dev/null +++ b/tasm/tests/labels.t @@ -0,0 +1,13 @@ +start: + /* RELOC_LA */ + la x1, other_func + /* RELOC_B */ + beq x0, x0, other_func + +other_func: + /* RELOC_J */ + jal x0, final_func + jal x0, start + +final_func: + nop |
