DSP updating if tests

git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@3086 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
nakeee 2009-04-26 21:21:15 +00:00
parent 41674301b5
commit 3e4f0d1fc7
5 changed files with 316 additions and 31 deletions

View File

@ -7,55 +7,88 @@ lri $SR, #0x0001
ifs
lri $IX0, #0x1337
call send_back
call send_back ; 1
ifns
lri $IX0, #0x1338
call send_back
call send_back ; 2
lri $IX0, #0x0000
lri $SR, #0x0002
ifs
lri $IX0, #0x1337
call send_back
call send_back ; 3
ifns
lri $IX0, #0x1338
call send_back
call send_back ; 4
lri $IX0, #0x0000
lri $SR, #0x0004
ifs
lri $IX0, #0x1337
call send_back
call send_back ; 5
ifns
lri $IX0, #0x1338
call send_back
call send_back ; 6
lri $IX0, #0x0000
lri $SR, #0x0008
ifs
lri $IX0, #0x1337
call send_back
call send_back ; 7
ifns
lri $IX0, #0x1338
call send_back
call send_back ; 8
lri $IX0, #0x0000
lri $SR, #0x000a
ifs
lri $IX0, #0x1337
call send_back
call send_back ; 9
ifns
lri $IX0, #0x1338
call send_back
call send_back ; 10
lri $IX0, #0x0000
lri $SR, #0x0010
ifs
lri $IX0, #0x1337
call send_back ; 11
ifns
lri $IX0, #0x1338
call send_back ; 12
lri $IX0, #0x0000
lri $SR, #0x0020
ifs
lri $IX0, #0x1337
call send_back ; 13
ifns
lri $IX0, #0x1338
call send_back ; 14
lri $IX0, #0x0000
lri $SR, #0x0040
ifs
lri $IX0, #0x1337
call send_back ; 15
ifns
lri $IX0, #0x1338
call send_back ; 16
; We're done, DO NOT DELETE THIS LINE
jmp end_of_test

View File

@ -6,55 +6,88 @@ lri $SR, #0x0001
ifg
lri $IX0, #0x1337
call send_back
call send_back ; 1
ifle
lri $IX0, #0x1338
call send_back
call send_back ; 2
lri $IX0, #0x0000
lri $SR, #0x0002
lri $SR, #0x0002
ifg
lri $IX0, #0x1337
call send_back
call send_back ; 3
ifle
lri $IX0, #0x1338
call send_back
call send_back ; 4
lri $IX0, #0x0000
lri $SR, #0x0004
ifg
lri $IX0, #0x1337
call send_back
call send_back ; 5
ifle
lri $IX0, #0x1338
call send_back
call send_back ; 6
lri $IX0, #0x0000
lri $SR, #0x0008
ifg
lri $IX0, #0x1337
call send_back
call send_back ; 7
ifle
lri $IX0, #0x1338
call send_back
call send_back ; 8
lri $IX0, #0x0000
lri $SR, #0x000a
ifg
lri $IX0, #0x1337
call send_back
call send_back ; 9
ifle
lri $IX0, #0x1338
call send_back
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

View File

@ -6,55 +6,88 @@ lri $SR, #0x0001
ifl
lri $IX0, #0x1337
call send_back
call send_back ; 1
ifge
lri $IX0, #0x1338
call send_back
call send_back ; 2
lri $IX0, #0x0000
lri $SR, #0x0002
ifl
lri $IX0, #0x1337
call send_back
call send_back ; 3
ifge
lri $IX0, #0x1338
call send_back
call send_back ; 4
lri $IX0, #0x0000
lri $SR, #0x0004
ifl
lri $IX0, #0x1337
call send_back
call send_back ; 5
ifge
lri $IX0, #0x1338
call send_back
call send_back ; 6
lri $IX0, #0x0000
lri $SR, #0x0008
ifl
lri $IX0, #0x1337
call send_back
call send_back ; 7
ifge
lri $IX0, #0x1338
call send_back
call send_back ; 8
lri $IX0, #0x0000
lri $SR, #0x000a
ifl
lri $IX0, #0x1337
call send_back
call send_back ; 9
ifge
lri $IX0, #0x1338
call send_back
call send_back ; 10
lri $IX0, #0x0000
lri $SR, #0x0010
ifl
lri $IX0, #0x1337
call send_back ; 11
ifge
lri $IX0, #0x1338
call send_back ; 12
lri $IX0, #0x0000
lri $SR, #0x0020
ifl
lri $IX0, #0x1337
call send_back ; 13
ifge
lri $IX0, #0x1338
call send_back ; 14
lri $IX0, #0x0000
lri $SR, #0x0040
ifl
lri $IX0, #0x1337
call send_back ; 15
ifge
lri $IX0, #0x1338
call send_back ; 16
; We're done, DO NOT DELETE THIS LINE
jmp end_of_test

View File

@ -0,0 +1,93 @@
; This test checks the effect of various SR flags over ifz and ifnz
include "dsp_base.inc"
lri $IX0, #0x0000
lri $SR, #0x0001
ifz
lri $IX0, #0x1337
call send_back ; 1
ifnz
lri $IX0, #0x1338
call send_back ; 2
lri $IX0, #0x0000
lri $SR, #0x0002
ifz
lri $IX0, #0x1337
call send_back ; 3
ifnz
lri $IX0, #0x1338
call send_back ; 4
lri $IX0, #0x0000
lri $SR, #0x0004
ifz
lri $IX0, #0x1337
call send_back ; 5
ifnz
lri $IX0, #0x1338
call send_back ; 6
lri $IX0, #0x0000
lri $SR, #0x0008
ifz
lri $IX0, #0x1337
call send_back ; 7
ifnz
lri $IX0, #0x1338
call send_back ; 8
lri $IX0, #0x0000
lri $SR, #0x000a
ifz
lri $IX0, #0x1337
call send_back ; 9
ifnz
lri $IX0, #0x1338
call send_back ; 10
lri $IX0, #0x0000
lri $SR, #0x0010
ifz
lri $IX0, #0x1337
call send_back ; 11
ifnz
lri $IX0, #0x1338
call send_back ; 12
lri $IX0, #0x0000
lri $SR, #0x0020
ifz
lri $IX0, #0x1337
call send_back ; 13
ifnz
lri $IX0, #0x1338
call send_back ; 14
lri $IX0, #0x0000
lri $SR, #0x0040
ifz
lri $IX0, #0x1337
call send_back ; 15
ifnz
lri $IX0, #0x1338
call send_back ; 16
; We're done, DO NOT DELETE THIS LINE
jmp end_of_test

View File

@ -0,0 +1,93 @@
; This test checks the effect of various SR flags over iflz and ifnlz
include "dsp_base.inc"
lri $IX0, #0x0000
lri $SR, #0x0001
iflz
lri $IX0, #0x1337
call send_back ; 1
ifnlz
lri $IX0, #0x1338
call send_back ; 2
lri $IX0, #0x0000
lri $SR, #0x0002
iflz
lri $IX0, #0x1337
call send_back ; 3
ifnlz
lri $IX0, #0x1338
call send_back ; 4
lri $IX0, #0x0000
lri $SR, #0x0004
iflz
lri $IX0, #0x1337
call send_back ; 5
ifnlz
lri $IX0, #0x1338
call send_back ; 6
lri $IX0, #0x0000
lri $SR, #0x0008
iflz
lri $IX0, #0x1337
call send_back ; 7
ifnlz
lri $IX0, #0x1338
call send_back ; 8
lri $IX0, #0x0000
lri $SR, #0x000a
iflz
lri $IX0, #0x1337
call send_back ; 9
ifnlz
lri $IX0, #0x1338
call send_back ; 10
lri $IX0, #0x0000
lri $SR, #0x0010
iflz
lri $IX0, #0x1337
call send_back ; 11
ifnlz
lri $IX0, #0x1338
call send_back ; 12
lri $IX0, #0x0000
lri $SR, #0x0020
iflz
lri $IX0, #0x1337
call send_back ; 13
ifnlz
lri $IX0, #0x1338
call send_back ; 14
lri $IX0, #0x0000
lri $SR, #0x0040
iflz
lri $IX0, #0x1337
call send_back ; 15
ifnlz
lri $IX0, #0x1338
call send_back ; 16
; We're done, DO NOT DELETE THIS LINE
jmp end_of_test