Loading files
This file is pinned to the selected release. Download the original to open it in your design tool.
# Copyright © 2024, Julian Scheffers, see LICENSE for more information
#ifdef RVC
.option rvc
#define INSN(x, ...) x __VA_OPT__(,) __VA_ARGS__ ; .half 0
#else
.option norvc
#define INSN(x, ...) x __VA_OPT__(,) __VA_ARGS__
#endif
#define VALID_INSN(...) INSN(__VA_ARGS__)
#define INVALID_INSN(...) INSN(__VA_ARGS__)
.text
.global _start
.type _start, %function
.option norelax
_start:
#include "sample.S"
# INSN(j .-2)
# INSN(nop)
# INSN(li a0, 0x11)
# t0:
# INSN(jal t0-0x248)
# INSN(andi a2, a2, 0x0c)
# INSN(ebreak)
# INSN(lw a3, 4(sp))
# INSN(sw a3, 252(sp))
# INSN(slli a0, a0, 17)
# INSN(srli a0, a0, 17)
# INSN(srai a0, a0, 17)
# INSN(sub s0, s0, a0)
# INSN(xor s1, s1, a0)
# INSN(or s0, s0, a3)
# INSN(and a5, a5, a0)
# INSN(addi sp, sp, -512)
# INSN(addi sp, sp, 496)
# INSN(addi sp, sp, -496)
# INSN(addi a0, a0, 16)
# INSN(addi a0, a0, -13)
# INSN(addi a0, a0, 11)
# INSN(addi a4, a4, 1)
# INSN(lui a1, 16)
# INSN(lw a0, 16(a1))
# INSN(sw a0, 16(a1))
# INSN(jr a5)
# INSN(jalr a5)
# INSN(mv a4, a3)
# INSN(add a5, a5, a3)
511328c3aThis file is pinned to the selected release. Download the original to open it in your design tool.