mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2024-11-14 21:37:52 -07:00
b5ea4ef9a8
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@3132 8ced0084-cf51-0410-be5f-012b33b47a6e
59 lines
895 B
Plaintext
59 lines
895 B
Plaintext
; This test checks the effect of SET15 on multiplications.
|
|
incdir "tests"
|
|
include "dsp_base.inc"
|
|
|
|
SET40
|
|
LRI $AC0.M, #0x1234
|
|
LRI $AC0.L, #0x5678
|
|
SET16
|
|
|
|
m2
|
|
CLR $ACC0
|
|
LRI $AX0.L, #0xFFFF
|
|
LRI $AX1.L, #0x100
|
|
MULX $AX0.L, $AX1.L
|
|
MULXAC $AX0.L, $AX1.L, $ACC0
|
|
call send_back
|
|
|
|
CLR $ACC0
|
|
SET15
|
|
LRI $AX0.L, #0xFFFF
|
|
LRI $AX1.L, #0x100
|
|
MULX $AX0.L, $AX1.L
|
|
MULXAC $AX0.L, $AX1.L, $ACC0
|
|
CLR15
|
|
call send_back
|
|
m0
|
|
lri $AX0.L, #1
|
|
lri $AX1.L, #2
|
|
mulx $AX0.L, $AX1.L
|
|
movp $ACC0
|
|
call send_back ; 1
|
|
|
|
set15
|
|
lri $AX0.L, #2
|
|
lri $AX1.L, #4
|
|
mulx $AX0.L, $AX1.L
|
|
movp $ACC0
|
|
clr15
|
|
call send_back ; 1
|
|
|
|
m2
|
|
lri $AX0.L, #1
|
|
lri $AX1.L, #2
|
|
mulx $AX0.L, $AX1.L
|
|
movp $ACC0
|
|
call send_back ; 1
|
|
|
|
set15
|
|
lri $AX0.L, #2
|
|
lri $AX1.L, #4
|
|
mulx $AX0.L, $AX1.L
|
|
movp $ACC0
|
|
clr15
|
|
call send_back ; 1
|
|
m0
|
|
|
|
; We're done, DO NOT DELETE THIS LINE
|
|
jmp end_of_test
|