KallistiOS git master
Independent SDK for the Sega Dreamcast
Loading...
Searching...
No Matches
TOC Access Macros

Macros used to access the TOC More...

Macros

#define TOC_LBA(n)
 Get the FAD address of a TOC entry.
 
#define TOC_ADR(n)
 Get the address of a TOC entry.
 
#define TOC_CTRL(n)
 Get the control data of a TOC entry.
 
#define TOC_TRACK(n)
 Get the track number of a TOC entry.
 

Detailed Description

Macros used to access the TOC

Macro Definition Documentation

◆ TOC_ADR

#define TOC_ADR ( n)
Value:
( ((n) & 0x0f000000) >> 24 )

Get the address of a TOC entry.

Parameters
nThe entry from the TOC to look at.
Returns
The entry's address.

◆ TOC_CTRL

#define TOC_CTRL ( n)
Value:
( ((n) & 0xf0000000) >> 28 )

Get the control data of a TOC entry.

Parameters
nThe entry from the TOC to look at.
Returns
The entry's control value.

◆ TOC_LBA

#define TOC_LBA ( n)
Value:
((n) & 0x00ffffff)

Get the FAD address of a TOC entry.

Parameters
nThe actual entry from the TOC to look at.
Returns
The FAD of the entry.

◆ TOC_TRACK

#define TOC_TRACK ( n)
Value:
( ((n) & 0x00ff0000) >> 16 )

Get the track number of a TOC entry.

Parameters
nThe entry from the TOC to look at.
Returns
The entry's track.