write-ups-challenges-2020-2021/Risky-Business/solution/solution.S
2022-11-24 18:03:20 +01:00

23 lines
321 B
ArmAsm

#include "test_macros.h"
RVTEST_RV64U
RVTEST_CODE_BEGIN
li x10, 0x2000000
li x11, 0xd000
add x10, x10, x11
ld x12, (x10)
addi x10, x10, 8
ld x12, (x10)
addi x10, x10, 8
ld x12, (x10)
addi x10, x10, 8
ld x12, (x10)
addi x10, x10, 8
ld x12, (x10)
RVTEST_PASS
RVTEST_CODE_END
.align 6; .global tohost; tohost: .dword 0;