USTC-RVSoC/software/asm-code/basic-test/big_endian_little_endian.S
2019-03-10 22:41:16 +08:00

27 lines
790 B
ArmAsm
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#
# t0 0x00000001DataRam0x01
# t0 0x00000002DataRam0x02
# Author: WangXuan
#
#
#
# 1RAM
# 2a0DataRamSoC DataRam0x00010000lui sp, 0x00010
#
.org 0x0
.global _start
_start:
lui a0, 0x00010
lui t1, 0x01000
ori t1, t1, 0x002
sw t1, (a0)
lb t0, (a0)
sb t0, 5(a0)
here:
jal zero, here #