Skip to content
Snippets Groups Projects
Commit b3619316 authored by Pavel Pisa's avatar Pavel Pisa
Browse files

seminaries/sum2vars/sum2vars-asm: add RISC-V variant


Signed-off-by: default avatarPavel Pisa <pisa@cmp.felk.cvut.cz>
parent da59f358
No related branches found
No related tags found
No related merge requests found
.globl main
.globl _start
.text
_start:
main:
lw x4, var_a(x0)
lw x5, var_b(x0)
add x6, x4, x5
sw x6, var_c(x0)
addi x2, x0, 0
jr ra
.data
var_a: .word 0x1234
var_b: .word 0x2222
var_c: .word 0x3333
#pragma qtrvsim show registers
#pragma qtrvsim show memory
#pragma qtrvsim focus memory var_a
#pragma qtrvsim tab core
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment