write-ups-challenges-2020-2021/Risky-Business/solution/solution.S

23 lines
321 B
ArmAsm
Raw Permalink Normal View History

2022-11-24 17:03:20 +00:00
#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;