diff options
| author | s-ol <s-ol@users.noreply.github.com> | 2020-05-28 15:34:15 +0000 |
|---|---|---|
| committer | s-ol <s-ol@users.noreply.github.com> | 2020-05-28 15:34:15 +0000 |
| commit | 82d3ddfc5c0bf2ba77c04d65630841f373cce709 (patch) | |
| tree | 6f81eaa122d04bb90e2c6b849c4cc0b0a32e0677 /ex.subv | |
| parent | survey, pack (diff) | |
| download | subv-82d3ddfc5c0bf2ba77c04d65630841f373cce709.tar.gz subv-82d3ddfc5c0bf2ba77c04d65630841f373cce709.zip | |
Add ex.*
Diffstat (limited to 'ex.subv')
| -rw-r--r-- | ex.subv | 16 |
1 files changed, 16 insertions, 0 deletions
@@ -0,0 +1,16 @@ +== code 0x80000000 +# repeatedly print "Hi\n" +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 0x69 (i) in UART0+0 + 13/opi 0/subop/add 6/rd/t1 0/rs/x0 69/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 |
