From 1b6aa6637909908dc017dbb4ca7927647a4485fe Mon Sep 17 00:00:00 2001 From: Olof Kindgren Date: Wed, 7 Apr 2021 14:46:31 +0200 Subject: [PATCH] Clear t0 in blinky example --- sw/blinky.S | 2 ++ sw/blinky.hex | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/sw/blinky.S b/sw/blinky.S index 80bc620c..50a94dd8 100644 --- a/sw/blinky.S +++ b/sw/blinky.S @@ -29,6 +29,8 @@ _start: /* Set timer value to control blink speed */ li t1, DELAY + /* Clear t0 */ + addi t0, zero, 0 bl1: /* Write to LEDs */ sb t0, 0(a0) diff --git a/sw/blinky.hex b/sw/blinky.hex index b9847bee..cabe9e9b 100644 --- a/sw/blinky.hex +++ b/sw/blinky.hex @@ -1,6 +1,7 @@ 40000537 00050513 00100337 +00000293 00550023 0012c293 000073b3 @@ -2045,4 +2046,3 @@ fedff06f 0 0 0 -0