From cfe961caa6df2b15d7a21a4bd53055a534f1fda6 Mon Sep 17 00:00:00 2001 From: Edward A Maxedon Date: Mon, 2 Apr 2018 14:17:45 -0400 Subject: [PATCH] fix start.s --- README.md | 2 -- start.s | 2 -- tests/hello.hex | 2 +- tests/signum.hex | 2 +- tests/str2bin.hex | 4 ++-- tests/strcmp.hex | 2 +- 6 files changed, 5 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index 8da7117..fab1f9f 100644 --- a/README.md +++ b/README.md @@ -49,8 +49,6 @@ and place the following assembly start-up code into a text file called `start.s` _start: lui sp, 0x10 call main - csrrwi x0, 0, 0 - .globl halt halt: csrrwi x0, 0, 0 diff --git a/start.s b/start.s index 720fb60..5cbc7ae 100644 --- a/start.s +++ b/start.s @@ -3,8 +3,6 @@ _start: lui sp, 0x10 call main - csrrwi x0, 0, 0 - .globl halt halt: csrrwi x0, 0, 0 diff --git a/tests/hello.hex b/tests/hello.hex index 58f1a5a..551229d 100644 --- a/tests/hello.hex +++ b/tests/hello.hex @@ -1,6 +1,6 @@ Hex dump of section '.text': - 0x00010080 37010100 ef00c003 73500000 73500000 7.......sP..sP.. + 0x00010080 37010100 ef00c003 73500000 00000000 7.......sP...... 0x00010090 00000000 00000000 00000000 00000000 ................ 0x000100a0 00000000 00000000 00000000 00000000 ................ 0x000100b0 00000000 00000000 00000000 00000000 ................ diff --git a/tests/signum.hex b/tests/signum.hex index 22e592d..b7a06c1 100644 --- a/tests/signum.hex +++ b/tests/signum.hex @@ -1,6 +1,6 @@ Hex dump of section '.text': - 0x000100c0 37010100 ef004017 73500000 73500000 7.....@.sP..sP.. + 0x000100c0 37010100 ef004017 73500000 00000000 7.....@.sP...... 0x000100d0 00000000 00000000 00000000 00000000 ................ 0x000100e0 00000000 00000000 00000000 00000000 ................ 0x000100f0 00000000 00000000 00000000 00000000 ................ diff --git a/tests/str2bin.hex b/tests/str2bin.hex index dd50a7e..9b1df53 100644 --- a/tests/str2bin.hex +++ b/tests/str2bin.hex @@ -1,6 +1,6 @@ Hex dump of section '.text': - 0x00010080 37010100 ef000028 73500000 73500000 7......(sP..sP.. + 0x00010080 37010100 ef000028 73500000 00000000 7......(sP...... 0x00010090 00000000 00000000 00000000 00000000 ................ 0x000100a0 00000000 00000000 00000000 00000000 ................ 0x000100b0 00000000 00000000 00000000 00000000 ................ @@ -33,7 +33,7 @@ Hex dump of section '.text': 0x00010260 232cf4fc 832784fd 1b870700 9307f0ff #,...'.......... 0x00010270 630cf700 032784fd 832744fb 1b070700 c....'...'D..... 0x00010280 9b870700 634af700 b7070100 13850754 ....cJ.........T - 0x00010290 eff01fe6 eff09fdf 032744fe 832744fb .........'D..'D. + 0x00010290 eff01fe6 eff05fdf 032744fe 832744fb ......_..'D..'D. 0x000102a0 bb07f702 9b870700 032784fd bb07f700 .........'...... 0x000102b0 2322f4fe 833784fe 13871700 2334e4fe #"...7......#4.. 0x000102c0 83c70700 a30ff4fc 8347f4fd 93f7f70f .........G...... diff --git a/tests/strcmp.hex b/tests/strcmp.hex index 94b29e0..fd3bbbd 100644 --- a/tests/strcmp.hex +++ b/tests/strcmp.hex @@ -1,6 +1,6 @@ Hex dump of section '.text': - 0x000100c0 37010100 ef004021 73500000 73500000 7.....@!sP..sP.. + 0x000100c0 37010100 ef004021 73500000 00000000 7.....@!sP...... 0x000100d0 00000000 00000000 00000000 00000000 ................ 0x000100e0 00000000 00000000 00000000 00000000 ................ 0x000100f0 00000000 00000000 00000000 00000000 ................