initial commit
This commit is contained in:
21
FIRMWARE/blinker.S
Normal file
21
FIRMWARE/blinker.S
Normal file
@@ -0,0 +1,21 @@
|
||||
# Simple blinker
|
||||
|
||||
.equ IO_BASE, 0x400000
|
||||
.equ IO_LEDS, 4
|
||||
|
||||
.section .text
|
||||
|
||||
.globl main
|
||||
|
||||
main:
|
||||
.L0:
|
||||
|
||||
li t0, 5
|
||||
sw t0, IO_LEDS(gp)
|
||||
call wait
|
||||
li t0, 10
|
||||
sw t0, IO_LEDS(gp)
|
||||
call wait
|
||||
j .L0
|
||||
|
||||
|
Reference in New Issue
Block a user