Changes
Jump to navigation
Jump to search
← Older edit
Newer edit →
PCSX2 Documentation/PS2 VU (Vector Unit) Documentation Part 1
(view source)
Revision as of 19:00, 19 July 2015
97 bytes added
,
19:00, 19 July 2015
no edit summary
Line 15:
Line 15:
Example
Example
−
Code:
+
<source lang="asm">
IAND:
IAND:
1000000 | 0000 | it x 5 | is x 5 | id x 5 | 110100
1000000 | 0000 | it x 5 | is x 5 | id x 5 | 110100
+
</source>
If for 'id' we have '18', then the destination would be
If for 'id' we have '18', then the destination would be
−
Code:
+
<source lang="asm">
18 &= 0xf;
18 &= 0xf;
+
</source>
+
Resulting in the destination reg being vi02.
Resulting in the destination reg being vi02.
Line 32:
Line 35:
Example:
Example:
−
Code:
+
<source lang="asm">
IADDIU vi05, vi00, 100
IADDIU vi05, vi00, 100
IBNE vi05, vi00 <---- vi05's value is before the 100 was added
IBNE vi05, vi00 <---- vi05's value is before the 100 was added
+
</source>
The only exception to this are Flag reading lower instructions (FSxxx/FMxxx/FCxxx). In those cases the current value is read.
The only exception to this are Flag reading lower instructions (FSxxx/FMxxx/FCxxx). In those cases the current value is read.
−
Code:
+
<source lang="asm">
FSAND vi05, 0xfff
FSAND vi05, 0xfff
IBNE vi05, vi00 <---- vi05's value is the Status Reg
IBNE vi05, vi00 <---- vi05's value is the Status Reg
+
</source>
The situation becomes complex however when a VI reg is read AND written to in a sequence of instructions.
The situation becomes complex however when a VI reg is read AND written to in a sequence of instructions.
Krysto
ninja
782
edits
Navigation menu
Personal tools
Create account
Log in
Namespaces
Page
Discussion
Variants
Views
Read
View source
View history
More
Search
Navigation
Main page
How to contribute
Recent changes
Random page
Community Portal
Game lists
By title
By developers
Playable games
Ingame games
Broken games
Untested games
Complete List (huge page!)
Demos and Tool Discs
Game genres
Action
Adventure
Arcade
Board
Compilation
Family
Fighting
Gambling
Horror
MMO
Music
Shoot 'em up
Shooter
Simulation
Sports
Pinball
Platformer
Puzzle
Racing
Real-time strategy
RPG
Trivia, game show
Turn-based strategy
Visual novel
Guides
Windows version
Linux version
Mac version
GSdx guide
External links
Main PCSX2 site
PCSX2 forums
Download links
Tools
Special pages
Printable version