aboutsummaryrefslogtreecommitdiff
path: root/prog/src/prog.s
blob: 128af521c927ecf4698a29524db5fc8c9c7d7493 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
.section .text
.globl _start

_start:


  addi t0, zero, 31
reset_loop:
  addi t6, zero, 0
loop:
  addi t6, t6, 1
  beq t6, t0, reset_loop
  j loop


halt_loop:
  j halt_loop

 
.section .data


.section .bss

.section .stack
  .space 0x1000  # Allocate stack space
stack_top: