diff options
| author | s-ol <s-ol@users.noreply.github.com> | 2020-05-28 15:22:11 +0000 |
|---|---|---|
| committer | s-ol <s-ol@users.noreply.github.com> | 2020-05-28 15:22:11 +0000 |
| commit | 51091f7355a89aab6347523f3e3e53ed328b4dfc (patch) | |
| tree | c3a11ca809ba075a8e2b37c217c6ed6278905ff2 /test.subv | |
| parent | tests, cleanup, verify.py (diff) | |
| download | subv-51091f7355a89aab6347523f3e3e53ed328b4dfc.tar.gz subv-51091f7355a89aab6347523f3e3e53ed328b4dfc.zip | |
survey, pack
Diffstat (limited to 'test.subv')
| -rw-r--r-- | test.subv | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/test.subv b/test.subv new file mode 100644 index 0000000..f1c73fd --- /dev/null +++ b/test.subv @@ -0,0 +1,24 @@ +== code 0x80000000 +main: + # load 0x10010000 (UART0) into t0 + 37/lui 5/rd/t0 0x10010/imm20 + # store 0x48 (H) in UART0+0 + 13/opi 0/subop/add 6/rd/t1 0/rs/x0 48/imm12 + 23/store 2/subop/word 5/rs/t0 6/rs/t1 0/off12 + # store 0x65 (e) in UART0+0 + 13/opi 0/subop/add 6/rd/t1 0/rs/x0 65/imm12 + 23/store 2/subop/word 5/rs/t0 6/rs/t1 0/off12 + # store 0x6c (l) in UART0+0 + 13/opi 0/subop/add 6/rd/t1 0/rs/x0 6c/imm12 + 23/store 2/subop/word 5/rs/t0 6/rs/t1 0/off12 + # store 0x6c (l) in UART0+0 + 13/opi 0/subop/add 6/rd/t1 0/rs/x0 6c/imm12 + 23/store 2/subop/word 5/rs/t0 6/rs/t1 0/off12 + # store 0x6f (o) in UART0+0 + 13/opi 0/subop/add 6/rd/t1 0/rs/x0 6f/imm12 + 23/store 2/subop/word 5/rs/t0 6/rs/t1 0/off12 + # store 0x0a (\n) in UART0+0 + 13/opi 0/subop/add 6/rd/t1 0/rs/x0 0a/imm12 + 23/store 2/subop/word 5/rs/t0 6/rs/t1 0/off12 + # jump back up to the top + 6f/jal 0/rd/x0 main/off21 |
