From 8821696748afe0dab113c845910be9db9d772438 Mon Sep 17 00:00:00 2001 From: Clifford Wolf Date: Mon, 7 Aug 2017 22:36:58 +0200 Subject: Major rewrite of picosoc spimemio core --- picosoc/firmware.s | 35 ++++++++++++++++++++++++++++++++--- 1 file changed, 32 insertions(+), 3 deletions(-) (limited to 'picosoc/firmware.s') 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 -- cgit