Projet_SETI_RISC-V/riscv-gnu-toolchain/binutils/sim/testsuite/d10v/t-sp.s
2023-03-06 14:48:14 +01:00

21 lines
256 B
ArmAsm

# mach: all
# output:
# sim: --environment operating
.include "t-macros.i"
start
;;; Read/Write values to SPU/SPI
loadpsw2 0
ldi sp, 0xdead
loadpsw2 PSW_SM
ldi sp, 0xbeef
loadpsw2 0
check 1 sp 0xdead
loadpsw2 PSW_SM
check 2 sp 0xbeef
exit0