File: program.S

package info (click to toggle)
qtrvsim 0.9.8-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 4,844 kB
  • sloc: cpp: 25,687; ansic: 7,754; makefile: 318; python: 303; sh: 278; asm: 268; xml: 9
file content (20 lines) | stat: -rw-r--r-- 209 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
lw x0, 0(x0)
lw x0, fail(x0)
lw x0, %lo(label)(x0)
addi x0, x0, %lo(0xDEA)

li x1, label
lui x2, %hi(label)
addi x2, x2, %lo(label)
bne x1, x2, fail
ebreak
nop
nop

fail:
.data
.word 0


.org 0xABCDE123
label: