Inside DVD-Video/Instruction Set Details

For explanations of basic instruction set concepts, see the previous page.

(References: instruction set summary and details)

In each table showing the instruction bit patterns, the top row shows the byte numbers from 0 to 7, and optionally also the bit numbers within each byte (numbered from 7 down to 0), separated by a colon. E.g. the top bit of byte 1 is written as “1:7”. A field containing multiple bits is written with a hyphen separating the starting and ending (inclusive) bit numbers, e.g. the bottom four bits of byte 2 are written as “2:3-0”.

Below the top row is one or two rows. Each row describes one set of valid forms of the instruction.

The fields filled in with cccc.... are for the conditional formats, while those filled in with llll.... may be copied from the corresponding fields of any of the Link instructions, also highlighted in the same colour. Don’t-care fields are filled in thus:   .

Group 0 NOP
No operation.

Goto
Transfers control to the specified instruction number within the current sequence. Sequences of multiple instructions are only allowed in the FPC and pre- and post-sections of PGCs, so those are the only places where this instruction makes sense. Instructions within a sequence are numbered from 1.

Conditional format: 1.

Break
Terminates the current instruction sequence. Sequences of multiple instructions are only allowed in the FPC and pre- and post-sections of PGCs, so those are the only places where this instruction makes sense.

Conditional format: 1.

SetTmpPML
Sets a new temporary Parental Management Level, which may require the user to enter a password if the level is being raised. Transfers control to the specified instruction on success. Sequences of multiple instructions are only allowed in the FPC and pre- and post-sections of PGCs, so those are the only places where this instruction makes sense. Instructions within a sequence are numbered from 1.

Conditional format: 1.

Group 1 NOP
No operation.

Link Subset
Highlights the button number hl_bn if nonzero (if hl_bn is zero, leaves the button highlight setting unchanged), and transfers control to the target identified by lnk:

Note that “next”, “previous” and “up” relationships among PGCs are explicitly defined by fields in the IFO entry for each PGC.

Conditional format: 1.

LinkPGCN
Link to a PGC by number. The PGC must be in the same domain.

Conditional format: 1.

LinkPTTN
Link to a chapter (PTT) by number. Can only be used within a title, to transfer within the same title.

Conditional format: 1.

LinkPGN
Link to a program by number. Can only transfer within a PGC.

Conditional format: 1.

LinkCN
Link to a cell by number. Can only transfer within a PGC.

Conditional format: 1.

Exit
Stops playback. Equivalent to hitting the Stop button on the remote.

Conditional format: 2.

JumpTT
Jump to the entry PGC of a title by number (index within titlemap?).

Conditional format: 2.

JumpVTS_TT
Jump to a VTS title entry PGC by number (index within current titleset?). Only transfers within the same titleset.

Conditional format: 2.

JumpVTS_PTT
Jump to a VTS chapter (PTT) of a specified title (index within current titleset?) by number. Only transfers within the same titleset.

Conditional format: 2.

JumpSS FP
Jump to FPC.

Conditional format: 2.

JumpSS VMGM menu
Jump to a VMG entry menu. The only valid value for menu is 2 for the title menu.

Conditional format: 2.

JumpSS VTSM
Jump to a VTS entry menu. Valid values for menu are:

Conditional format: 2.

JumpSS VMGM PGC
Jump to a VMGM PGC.

Conditional format: 2.

CallSS FP
Save resume point and transfer control to FPC. rsm_cell specifies the cell number to resume at if nonzero (Within what unit? Current program or PGC?), else resume at the next cell.

Conditional format: 2.

CallSS VMGM menu
Save resume point and transfer control to a VMG entry menu. rsm_cell specifies the cell number to resume at if nonzero (Within what unit? Current program or PGC?), else resume at the next cell. The only valid value for menu is 2 for the title menu.

Conditional format: 2.

CallSS VTSM
Save resume point and transfer control to a menu within the current titleset. rsm_cell specifies the cell number to resume at if nonzero (Within what unit? Current program or PGC?), else resume at the next cell. Valid values for menu are:

Conditional format: 2.

CallSS VMGM PGC
Save resume point and transfer control to a VMGM PGC. rsm_cell specifies the cell number to resume at if nonzero (Within what unit? Current program or PGC?), else resume at the next cell.

Conditional format: 2.

Group 2 NOP
No operation.

SetSTN
This instruction can set all of the audio, subpicture and view angle registers (SPRMs 1, 2 and 3 respectively), or any combination thereof, at once.


 * If af is 1, then the audio SPRM is set from asrc. If af is 0, asrc is ignored and SPRM 1 is not changed.
 * If sf is 1, then the subpicture SPRM is set from ssrc. If sf is 0, ssrc is ignored and SPRM 2 is not changed.
 * If vf is 1, then the angle SPRM is set from vsrc. If vf is 0, vsrc is ignored and SPRM 3 is not changed.

The interpretation of asrc, ssrc and vsrc are controlled by the immed flag. If this is 1, then all these fields are the literal new 7-bit value for the corresponding register. If immed is 0, then the bottom 8 bits of each field is the number of the source register containing the new value for the destination register.

The values yielded from asrc and ssrc are not stream numbers directly, but are indexes into the PGC_AST_CTL and PGC_SPST_CTL tables respectively in the current PGC. PGC_SPST_CTL in turn can contain four stream numbers in each entry; the selection of which is made according to the current video playback mode (see the description of SPRM 14 above).

Conditional format: 2.

SetNVTMR
Arms the navigation timer: puts pgcn into NV_PGCN (SPRM 10) and the value of src into NVTMR (SPRM 9), which starts decrementing once a second. When NVTMR reaches 0, a jump is made to pgcn if it is nonzero.

Specifying both (either?) src and pgcn as zero seems like the obvious way to clear the navigation timer before it goes off.

The interpretation of src is controlled by the immed flag. If this is 1, then src is the literal 16-bit value. If immed is 0, then the bottom 8 bits of src are the number of the register containing the value.

Conditional format: 2.

SetGPRMMD
Sets GPRM reg to the value given by src; enables counter mode if mode is 1, disables counter mode if mode is 0. In counter mode, the GPRM starts incrementing once per second, otherwise, its value stays constant until changed again.

The interpretation of src is controlled by the immed flag. If this is 1, then src is the literal 16-bit value. If immed is 0, then the bottom 8 bits of src are the number of the register containing the value.

Conditional format: 2.

SetAMXMD
Sets the karaoke mixing mode (SPRM 11) to the value of src.

The interpretation of src is controlled by the immed flag. If this is 1, then src is the literal 16-bit value. If immed is 0, then the bottom 8 bits of src are the number of the register containing the value.

Conditional format: 2.

SetHL_BTNN
Sets HL_BTNN (SPRM 8) to the value of src. This sets the current highlighted button, 1-36 or 0 for no button. Note that the value must be the button number multiplied by 1024.

The interpretation of src is controlled by the immed flag. If this is 1, then src is the literal 16-bit value. If immed is 0, then the bottom 8 bits of src are the number of the register containing the value.

Conditional format: 2.

Set
Sets a GPRM to a value computed from a function of its existing value and that of the source operand (and can also change the source operand in the case of a swap). Does it leave counter mode unchanged? op determines the operation to perform according to set-operations (above).

The interpretation of src is controlled by the immed flag. If this is 1, then src is the literal 16-bit value. If immed is 0, then the bottom 8 bits of src are the number of the register containing the value. But note restrictions on src as listed in the set-operation table.

Conditional format: 3.

SetCLnk
Sets GPRM reg to the function of it and ssrc according to operation op, then compares the updated reg with the value of csrc according to cmp, and performs the Link operation defined by hl_bn and lnk if the condition is true. These fields are interpreted as in the Link Subset instruction (above).

The interpretation of ssrc is controlled by the simmed flag. If this is 1, then ssrc is the literal 16-bit value. If simmed is 0, then the bottom 8 bits of ssrc are the number of the register containing the value. But note restrictions on ssrc as listed in the set-operation table.

The interpretation of csrc is controlled by the cimmed flag. If this is 1, then csrc is the literal 16-bit value. If cimmed is 0, then the bottom 8 bits of csrc are the number of the register containing the value.

CSetCLnk
Performs the comparison according to cmp of register creg1 with register creg2 or operand csrc2, and if it is true, set GPRM reg to the computation using it and the value of register srcreg or immediate value simmed according to op, and also perform the Link Subset operation defined by hl_bn and lnk. If the condition is false, neither the set or the link operation is performed.

The interpretation of csrc2 is controlled by the cimmed flag. If this is 1, then csrc2 is the literal 16-bit value. If cimmed is 0, then the bottom 8 bits of csrc2 are the number of the register containing the value.

CSetLnk
Performs the comparison according to cmp of register creg1 with register creg2 or operand csrc2, and if it is true, set GPRM reg to the computation using it and the value of register srcreg or immediate value simmed according to op. Regardless of the comparison result, perform the Link Subset operation defined by hl_bn and lnk.

The interpretation of csrc2 is controlled by the cimmed flag. If this is 1, then csrc2 is the literal 16-bit value. If cimmed is 0, then the bottom 8 bits of csrc2 are the number of the register containing the value.