aboutsummaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
authors-ol <s+removethis@s-ol.nu>2021-07-09 13:41:09 +0000
committers-ol <s+removethis@s-ol.nu>2021-07-09 14:23:33 +0000
commita9192c63df8073bf3f7134b8ef8e3768e6e6f078 (patch)
treee9a2a4c870e685d0c5950caf979decb260528b2a /examples
parentupdate examples (diff)
downloadsubv-a9192c63df8073bf3f7134b8ef8e3768e6e6f078.tar.gz
subv-a9192c63df8073bf3f7134b8ef8e3768e6e6f078.zip
remove 0x prefix
Diffstat (limited to 'examples')
-rw-r--r--examples/ask_name.subv2
-rw-r--r--examples/hello_world.subv2
2 files changed, 2 insertions, 2 deletions
diff --git a/examples/ask_name.subv b/examples/ask_name.subv
index f54213f..f411bfc 100644
--- a/examples/ask_name.subv
+++ b/examples/ask_name.subv
@@ -114,7 +114,7 @@ print:break:
read:
# read a C-string into a0
# load 0x10000000 (UART0) into t0
- 37/lui 5/rd/t0 0x10000/imm20
+ 37/lui 5/rd/t0 10000/imm20
# load 0x0a (\n) into t1
13/opi 6/rd/t1 0/subop/add 0/rs/x0 0a/imm12
diff --git a/examples/hello_world.subv b/examples/hello_world.subv
index 84ad0b2..d25aa83 100644
--- a/examples/hello_world.subv
+++ b/examples/hello_world.subv
@@ -17,7 +17,7 @@ loop:
print:
# load 0x10000000 (UART0) into t0
- 37/lui 5/rd/t0 0x10000/imm20
+ 37/lui 5/rd/t0 10000/imm20
print:loop:
# load unsigned byte at a0
03/load 6/rd/t1 4/width/bu a/rs/a0 0/imm12