projects
/
riscv-tests.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
6601548a5614fe158693dbbb3464a6f1b0dd9fc7
[riscv-tests.git]
/
debug
/
programs
/
step.S
1
// Test stepping over a variety of instructions.
2
3
.global main
4
5
main:
6
la t0, trap_entry // 0, 4
7
csrw mtvec, t0 // 0x8
8
9
li t0, 5 // 0xc
10
beq zero, zero, one // 0x10
11
nop // 0x14
12
one:
13
beq zero, t0, one // 0x18
14
jal two // 0x1c
15
16
three:
17
.word 0 // 0x20
18
nop // 0x24
19
20
two:
21
ret // 0x28
22
23
trap_entry:
24
j trap_entry // 0x2c