mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2024-11-15 05:47:56 -07:00
3e4f0d1fc7
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@3086 8ced0084-cf51-0410-be5f-012b33b47a6e
94 lines
1.2 KiB
Plaintext
94 lines
1.2 KiB
Plaintext
; This test checks the effect of various SR flags over ifg and ifle
|
|
include "dsp_base.inc"
|
|
|
|
lri $IX0, #0x0000
|
|
lri $SR, #0x0001
|
|
|
|
ifg
|
|
lri $IX0, #0x1337
|
|
call send_back ; 1
|
|
|
|
ifle
|
|
lri $IX0, #0x1338
|
|
call send_back ; 2
|
|
|
|
lri $IX0, #0x0000
|
|
lri $SR, #0x0002
|
|
|
|
ifg
|
|
lri $IX0, #0x1337
|
|
call send_back ; 3
|
|
|
|
ifle
|
|
lri $IX0, #0x1338
|
|
call send_back ; 4
|
|
|
|
lri $IX0, #0x0000
|
|
lri $SR, #0x0004
|
|
|
|
ifg
|
|
lri $IX0, #0x1337
|
|
call send_back ; 5
|
|
|
|
ifle
|
|
lri $IX0, #0x1338
|
|
call send_back ; 6
|
|
|
|
lri $IX0, #0x0000
|
|
lri $SR, #0x0008
|
|
|
|
ifg
|
|
lri $IX0, #0x1337
|
|
call send_back ; 7
|
|
|
|
ifle
|
|
lri $IX0, #0x1338
|
|
call send_back ; 8
|
|
|
|
lri $IX0, #0x0000
|
|
lri $SR, #0x000a
|
|
|
|
ifg
|
|
lri $IX0, #0x1337
|
|
call send_back ; 9
|
|
|
|
ifle
|
|
lri $IX0, #0x1338
|
|
call send_back ; 10
|
|
|
|
lri $IX0, #0x0000
|
|
lri $SR, #0x0010
|
|
|
|
ifg
|
|
lri $IX0, #0x1337
|
|
call send_back ; 11
|
|
|
|
ifle
|
|
lri $IX0, #0x1338
|
|
call send_back ; 12
|
|
|
|
lri $IX0, #0x0000
|
|
lri $SR, #0x0020
|
|
|
|
ifg
|
|
lri $IX0, #0x1337
|
|
call send_back ; 13
|
|
|
|
ifle
|
|
lri $IX0, #0x1338
|
|
call send_back ; 14
|
|
|
|
lri $IX0, #0x0000
|
|
lri $SR, #0x0040
|
|
|
|
ifg
|
|
lri $IX0, #0x1337
|
|
call send_back ; 15
|
|
|
|
ifle
|
|
lri $IX0, #0x1338
|
|
call send_back ; 16
|
|
|
|
; We're done, DO NOT DELETE THIS LINE
|
|
jmp end_of_test
|