From d16dab68aeb05518d61cb55ca08904dc3df32ea1 Mon Sep 17 00:00:00 2001 From: s-ol Date: Sun, 10 Oct 2021 19:18:36 +0200 Subject: fix bswapw, print_hex_word --- examples/device_tree.subv | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'examples/device_tree.subv') diff --git a/examples/device_tree.subv b/examples/device_tree.subv index b2b0022..f79a233 100644 --- a/examples/device_tree.subv +++ b/examples/device_tree.subv @@ -46,7 +46,7 @@ bswapw: # addi a2, a2, -256 # and a1, a1, a2 13/opi 5/rd/t0 5/subop/srl b/rs/a1 8/imm12 - 37/lui 6/rd/t1 16/imm20 + 37/lui 6/rd/t1 10/imm20 13/opi 6/rd/t1 0/subop/add 6/rs/t1 -100/imm12 33/opr 5/rd/t0 7/subop/and 0/mode/norm 5/rs/t0 6/rs/t1 # srli a2, a0, 24 @@ -123,8 +123,8 @@ print_hex_word:loop: print_hex_dgt: # a1 = a1 & 0xf 13/opi b/rd/a1 7/subop/and b/rs/a1 f/imm12 - # t1 = 0x40 - 13/opi 6/rd/t1 0/subop/add 0/rs/x0 40/imm12 + # t1 = 0x3a + 13/opi 6/rd/t1 0/subop/add 0/rs/x0 3a/imm12 # add 0x30 (ascii '0') / 0x61 (ascii 'a') 13/opi b/rd/a1 0/subop/add b/rs/a1 30/imm12 -- cgit v1.2.3