diff options
| author | s-ol <s+removethis@s-ol.nu> | 2021-07-06 10:26:46 +0000 |
|---|---|---|
| committer | s-ol <s+removethis@s-ol.nu> | 2021-07-06 11:08:54 +0000 |
| commit | 631f09462050c8173dacb22a83e6ef3dacc3c8a1 (patch) | |
| tree | 4cbd147e158991e229ce1fc2001525078a020b83 /ex.subv | |
| parent | good helloworld example (diff) | |
| download | subv-631f09462050c8173dacb22a83e6ef3dacc3c8a1.tar.gz subv-631f09462050c8173dacb22a83e6ef3dacc3c8a1.zip | |
update README/ex example
Diffstat (limited to 'ex.subv')
| -rw-r--r-- | ex.subv | 11 |
1 files changed, 2 insertions, 9 deletions
@@ -12,12 +12,5 @@ main: # store 0x0a (\n) in UART0+0 13/opi 0/subop/add 6/rd/t1 0/rs/x0 0a/imm12 23/store 2/width/word 5/rs/t0 6/rs/t1 0/off12 - # jump back up to the top (three versions): - # a) jal 21bit relative (with 0th bit forced to 0) - # 6f/jal 0/rd/x0 main/off21 - # b) auipc+jalr 32bit relative (note label offset) - 17/auipc 7/rd/t2 main/off20hi - 67/jalr 0/subop 0/rd/x0 7/rs/t2 main+4/off12lo - # c) lui+jalr 32bit absolute - # 37/lui 7/rd/t2 main/imm32 - # 67/jalr 0/subop 0/rd/x0 7/rs/t2 main/imm32 + # jump back up to the top + 6f/jal 0/rd/x0 main/off21 |
