Skip to content

Commit

Permalink
Clear t0 in blinky example
Browse files Browse the repository at this point in the history
  • Loading branch information
olofk committed Apr 26, 2021
1 parent 1c11365 commit 1b6aa66
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions sw/blinky.S
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion sw/blinky.hex
@@ -1,6 +1,7 @@
40000537
00050513
00100337
00000293
00550023
0012c293
000073b3
Expand Down Expand Up @@ -2045,4 +2046,3 @@ fedff06f
0
0
0
0

0 comments on commit 1b6aa66

Please sign in to comment.