diff options
author | Clifford Wolf <clifford@clifford.at> | 2017-08-07 22:36:58 +0200 |
---|---|---|
committer | Clifford Wolf <clifford@clifford.at> | 2017-08-07 22:36:58 +0200 |
commit | 8821696748afe0dab113c845910be9db9d772438 (patch) | |
tree | ba7b55cefc5386a911c9b75a994bf29b9e3f431a /picosoc/firmware.s | |
parent | ff7855900d4f4b8d3ccd840e54f5d9c940c4f7e4 (diff) | |
download | picorv32-8821696748afe0dab113c845910be9db9d772438.tar.gz picorv32-8821696748afe0dab113c845910be9db9d772438.zip |
Major rewrite of picosoc spimemio core
Diffstat (limited to 'picosoc/firmware.s')
-rw-r--r-- | picosoc/firmware.s | 35 |
1 files changed, 32 insertions, 3 deletions
diff --git a/picosoc/firmware.s b/picosoc/firmware.s index 69fedcc..1b8900f 100644 --- a/picosoc/firmware.s +++ b/picosoc/firmware.s @@ -19,8 +19,37 @@ sw x5,64(x0) sw x5,68(x0) sw x5,72(x0) sw x5,76(x0) -li x5,0x00008067 # ret sw x5,80(x0) +sw x5,84(x0) +sw x5,88(x0) +sw x5,92(x0) +sw x5,96(x0) +sw x5,100(x0) +sw x5,104(x0) +sw x5,108(x0) +sw x5,112(x0) +sw x5,116(x0) +sw x5,120(x0) +sw x5,124(x0) +sw x5,128(x0) +sw x5,132(x0) +sw x5,136(x0) +sw x5,140(x0) +sw x5,144(x0) +sw x5,148(x0) +sw x5,152(x0) +sw x5,156(x0) +sw x5,160(x0) +sw x5,164(x0) +sw x5,168(x0) +sw x5,172(x0) +sw x5,176(x0) +sw x5,180(x0) +sw x5,184(x0) +sw x5,188(x0) +sw x5,192(x0) +li x5,0x00008067 # ret +sw x5,196(x0) # setup gpio address in x5 li x5,0x02000000 @@ -48,8 +77,8 @@ sw x6,0(x0) # calculate new entry point into RAM code slli x3,x6,2 -andi x3,x3,63 -addi x3,x3,4 +andi x3,x3,127 +addi x3,x3,32 # execute RAM code, come back to start of loop mv x1,x4 |