Mnemonic: SetSTN

Hex Code:410000SSPPNN0000   unconditional, indirect
41M000SSPPNNXXYY   M=1-7, Compare register XX to register YY, indirect
410K00SSPPNNHHLL   unconditional, indirect, K=1,4-7 Set then Link
510000SSPPNN0000   unconditional, direct
51M000SSPPNNXXYY   M=1-7, Compare register XX to register YY, direct
510K00SSPPNNHHLL   unconditional, direct, K=1,4-7 Set then Link
Action:The SetSTN can change the value in any or all of three SPRMs controlling audio (SPRM 1), SubPicture (SPRM 2), and Angle (SPRM 3).
For all forms bit 7 is set in "SS", "PP", and "NN" to indicate a new value is specified, otherwise the register remains unchanged.
"SS" (byte 3) specifies Audio, "PP" (byte 4) specifies SubPicture, and "NN" (byte 5) specifies Angle.
The indirect form uses the lower 7 bits of "SS", "PP", and "NN" to specify one of the general purpose registers (GPRM) for the new value.
The direct form uses the lower 7 bits of each byte for the new value itself.
If "K" is 1, 4, 5, 6, or 7 the Set is followed by a link command.
Order:If a compare is specified, it is performed first. If the condition is met the SetSTN is executed.
Comments:Restricted to Video Titleset Manager (VTSM) and titles.
The command can be conditional or be combined with a link command, but not both.
See also SPRMs for information on SPRM 1, 2, and 3 values.
Values set into SPRM 1 and 2 are track numbers, not stream numbers. See PGC_AST_CTL and PGC_SPST_CTL for the mapping of track numbers to stream numbers.
Optional Link Command details
KLLLink CommandComment
100LinkNoLinkuse byte 6 as "HH" in these detailed pages, ignore all other values.
101LinkTopCell
102LinkNextCell
103LinkPrevCell
105LinkTopPG
106LinkNextPG
107LinkPrevPG
109LinkTopPGC
10ALinkNextPGC
10BLinkPrevPGC
10CLinkGoUpPGC
10DLinkTailPGC
110RSM
4--LinkPGCNuse bytes 6 and 7 as "NNNN" in this detailed page, ignore all other values.
5--LinkPTTNuse bytes 6 and 7 as "HTTT" in this detailed page, ignore all other values.
6--LinkPGNuse bytes 6 and 7 as "HHPP" in this detailed page, ignore all other values.
7--LinkCNuse bytes 6 and 7 as "HHNN" in this detailed page, ignore all other values.
Compare operation codes
register to registerAlternate
mnemonic
Comments
Moperation
1RegX & RegYBCBitwise compare, the two operands are anded, if the result is non-zero the condition is true
2RegX == RegYEQIf the two operands are equal the condition is true
3RegX != RegYNEIf the two operands are not equal the condition is true
4RegX >= RegYGEIf RegX is greater than or equal to the right operand the condition is true
5RegX > RegYGTIf RegX is greater than the right operand the condition is true
6RegX <= RegYLEIf RegX is less than or equal to the right operand the condition is true
7RegX < RegYLTIf RegX is less than the right operand the condition is true
Register Codes
0x00 through 0x0FGeneral Purpose registers 0 to 15 (GPRM)
0x80 through 0x97System Parameter registers 0 to 23 (SPRM)
all othersdo not use
Numerically Alphabetically
Index
Alphabetically Numerically
DVD-Video info home Copyright © 2001 - 2024 MPUCoder, all rights reserved.