Japanese
SGL User's Manual
| Function Reference | Structure Reference | SGL Supplementary Manual |SGL System Variable List
SGL REFERENCE

SGL system variable list


000: Event registered at the beginning of EventTop
004: Event registered at the end of EventLast
008: EventNow running event
00C: EventCount Remaining number of events
00E: WorkCount Remaining number of works
010: MainMode Main sequence mode
011:SubMode subsequence mode
012: SynchConst video synchronization count
013: SynchCount video synchronization count
014: UserFunctionUser function to execute during blanking
018: TransCount Number of transfer entries during blanking
01A: TransRequest request for transfer during blanking
01B: PauseFlag sprite, scroll pause flag
01C: mtptr current matrix pointer
020: MatrixCount Matrix nest count
021: PrintColor text display color palette
022: IntCount interrupt count
024: MsPbufPtr vertex coordinate calculation buffer pointer (Master)
028: SlPbufPtr vertex coordinate calculation buffer pointer (Slave)
02C: SpritePtr sprite data transfer pointer
030: MsSdataPtr sprite data set pointer (Master)
034: SlSdataPtr sprite data set pointer (Master)
038: ZbufPtr Z buffer pointer
03C: FormTbl texture data table
040: SprbufBias sprite data buffer switching
044: ComRdPtr command read pointer
048: ComWrPtr command set (write) pointer
04C: MsLightVector Light source vector (Master)
058: SlLightVector Light source vector (Master)
064: ColorOffset color offset table pointer
068: MsScreenDist screen position (Master)
06C: SlScreenDist screen position (Slave)
070: MsZlimit display limit Z position (Master)
072: WindowNumber Number of windows used
073: WinUseFlag window use flag
074: TotalPolygons number of calculated polygons
076: TotalVertices calculation number of vertices
078: MsScreenLeft Screen left position
07A: MsScreenTop screen position
07C: MsScreenRight Screen right position
07E: MsScreenBottom screen bottom position
080: MsScreenSizeX Screen horizontal size (Master)
082: MsScreenSizeY Screen vertical size (Master)
084: MsWindowSizeX Window size (Master)
086: MsWindowSizeY Window size (Master)
088: MXPolygons maximum number of polygons
08A: MXVertices maximum number of vertices
08C: FrameSizeX frame buffer size
08E:FrameSizeY frame buffer size
090: MsWinXAdder window check addition data (Master)
092: MsWinYAdder window check addition data (Master)
094: SlWinXAdder Addition data for window check (Slave)
096: SlWinYAdder window check addition data (Slave)
098: MsClipXAdder Clipping addition data (horizontal) (Master)
09A: MsClipYAdder Clipping addition data (vertical) (Master)
09C: SlClipXAdder Clipping addition data (horizontal) (Slave)
09E: SlClipYAdder Clipping addition data (vertical) (Slave)
0A0: SlZlimit display limit Z position (Slave)
0A2: WinPtr window dataset offset
0A4:DispPolygons Number of display polygons
0A6: DMAEndFlag DMA transfer end flag
0A8: DMASetFlag DMA table set flag
0AA:PutCount slPutPolygon(),sl...Sprite() number of calls
0AC: MsZdpsftcnt screen display limit shift counter (Master) (unused)
0AD: SlZdpsftcnt screen display limit shift counter (Slave) (unused)
0B0: Resolution screen mode
0B1: NbPCMBf Number of PCM buffers (2000H units)
0B2: PCMBufFlag PCM buffer free status flag
0B4: SoundRdCount sound buffer read counter
0B5: SoundWrCount sound buffer entry counter
0B6:FRT_Count FRT counter. Updated every slSynch
0B7: SCUMC_ID SCU memory copy channel number
0B8: DMASt_CPU0 CPU DMA status (CH0)
0BA: DMASt_CPU1 CPU DMA status (CH1)
0BB: DMASt_SCU0 SCU DMA status (CH0)
0BC: DMASt_SCU1 SCU DMA status (CH1)
0BD: DMASt_SCU2 SCU DMA status (CH2)
0BE: dummy1 system reservation
0C0:VDP2_TVMD TV screen mode
0C2: VDP2_EXTEN external signal enable
0C4: VDP2_TVSTAT screen status
0C6:VDP2_VRSIZE VRAM size
0C8: VDP2_HCNT H counter
0CA:VDP2_VCNT V counter
0CE:VDP2_RAMCTL RAM control
0D0: VDP2_CYCA0L VRAM cycle pattern (bank A0, T0-3)
0D2: VDP2_CYCA0U VRAM cycle pattern (bank A0, T4-7)
0D4: VDP2_CYCA1L VRAM cycle pattern (bank A1, T0-3)
0D6: VDP2_CYCA1U VRAM cycle pattern (bank A1, T4-7)
0D8: VDP2_CYCB0L VRAM cycle pattern (bank B0, T0-3)
0DA: VDP2_CYCB0U VRAM cycle pattern (bank B0, T4-7)
0DC: VDP2_CYCB1L VRAM cycle pattern (bank B1, T0-3)
0DE: VDP2_CYCB1U VRAM cycle pattern (bank B1, T4-7)
0E0: VDP2_BGON screen display enable
0E2: VDP2_MZCTL Mosaic Control
0E4: VDP2_SFSEL special function code selection
0E6: VDP2_SFCODE special function code
0E8: VDP2_CHCTLA character control (NBG0, NBG1)
0EA: VDP2_CHCTLB character control (NBG2, NBG3, RBG0)
0EC: VDP2_BMPNA bitmap palette number (NBG0, 1)
0EE: VDP2_BMPNB bitmap palette number (RBG0)
0F0: VDP2_PNCN0 pattern name control (NBG0)
0F2: VDP2_PNCN1 pattern name control (NBG1)
0F4: VDP2_PNCN2 pattern name control (NBG2)
0F6: VDP2_PNCN3 pattern name control (NBG3)
0F8: VDP2_PNCR pattern name control (RBG0)
0FA: VDP2_PLSZ plane size
0FC: VDP2_MPOFN map offset (NBG0-3)
0FE: VDP2_MPOFR map offset (rotation parameters A, B)
100: VDP2_MPABN0 map (NBG0 plane A, B)
102: VDP2_MPCDN0 map (NBG0 planes C, D)
104: VDP2_MPABN1 map (NBG1 plane A, B)
106: VDP2_MPCDN1 map (NBG1 plane C, D)
108: VDP2_MPABN2 map (NBG2 plane A, B)
10A: VDP2_MPCDN2 map (NBG2 planes C, D)
10C: VDP2_MPABN3 map (NBG3 plane A, B)
10E: VDP2_MPCDN3 map (NBG3 planes C, D)
110: VDP2_MPABRA map (rotation parameter A plane A, B)
112: VDP2_MPCDRA map (rotation parameter A plane C, D)
114: VDP2_MPEFRA map (rotation parameter A plane E, F)
116: VDP2_MPGHRA map (rotation parameter A plane G, H)
118: VDP2_MPIJRA map (rotation parameter A plane I, J)
11A: VDP2_MPKLRA map (rotation parameter A plane K, L)
11C: VDP2_MPMNRA map (rotation parameter A plane M, N)
11E: VDP2_MPOPRA map (rotation parameter A plane O, P)
120: VDP2_MPABRB map (rotation parameter B plane A, B)
122: VDP2_MPCDRB map (rotation parameter B plane C, D)
124: VDP2_MPEFRB map (rotation parameter B plane E, F)
126: VDP2_MPGHRB map (rotation parameter B plane G, H)
128: VDP2_MPIJRB map (rotation parameter B plane I, J)
12A: VDP2_MPKLRB map (rotation parameter B plane K, L)
12C: VDP2_MPMNRB map (rotation parameter B plane M, N)
12E: VDP2_MPOPRB map (rotation parameter B plane O, P)
130: VDP2_SCXN0 screen scroll value (NBG0, horizontal fixed decimal)
130: VDP2_SCXIN0 screen scroll value (NBG0, horizontal integer part)
130:Nbg0_PosX NBG0 display position (X)
132: VDP2_SCXDN0 screen scroll value (NBG0, horizontal decimal part)
134: VDP2_SCYN0 screen scroll value (NBG0, vertical fixed decimal)
134: VDP2_SCYIN0 screen scroll value (NBG0, vertical integer part)
134:Nbg0_PosY NBG0 display position (Y)
136: VDP2_SCYDN0 screen scroll value (NBG0, vertical decimal part)
138: VDP2_ZMXN0 coordinate increment (NBG0, horizontal fixed decimal)
138: VDP2_ZMXIN0 coordinate increment (NBG0, horizontal integer part)
138:Nbg1_PosX NBG1 display position (X)
13A: VDP2_ZMXDN0 coordinate increment (NBG0, horizontal decimal part)
13C: VDP2_ZMYN0 coordinate increment (NBG0, vertical fixed decimal)
13C: VDP2_ZMYIN0 coordinate increment (NBG0, vertical integer part)
13C: Nbg1_PosY NBG1 display position (Y)
13E: VDP2_ZMYDN0 coordinate increment (NBG0, vertical decimal part)
140: VDP2_SCXN1 screen scroll value (NBG1, horizontal fixed decimal)
140: VDP2_SCXIN1 screen scroll value (NBG1, horizontal integer part)
142: VDP2_SCXDN1 screen scroll value (NBG1, horizontal decimal part)
144: VDP2_SCYN1 screen scroll value (NBG1, vertical fixed decimal)
144: VDP2_SCYIN1 screen scroll value (NBG1, vertical integer part)
146: VDP2_SCYDN1 screen scroll value (NBG1, vertical decimal part)
148: VDP2_ZMXN1 coordinate increment (NBG1, horizontal fixed decimal)
148: VDP2_ZMXIN1 coordinate increment (NBG1, horizontal integer part)
14A: VDP2_ZMXDN1 coordinate increment (NBG1, horizontal decimal part)
14C: VDP2_ZMYN1 coordinate increment (NBG1, vertical fixed decimal)
14C: VDP2_ZMYIN1 coordinate increment (NBG1, vertical integer part)
14E: VDP2_ZMYDN1 coordinate increment (NBG1, vertical decimal part)
150: VDP2_SCXN2 screen scroll value (NBG2, horizontal direction)
152: VDP2_SCYN2 screen scroll value (NBG2, vertical direction)
154: VDP2_SCXN3 screen scroll value (NBG3, horizontal direction)
156: VDP2_SCYN3 screen scroll value (NBG3, vertical direction)
158: VDP2_ZMCTL reduction enable
15A: VDP2_SCRCTL line & vertical cell scroll control
15C: VDP2_VCSTA vertical cell scroll table address
160: VDP2_LSTA0 Line scroll table address for NBG0
164: VDP2_LSTA1 Line scroll table address for NBG1
168: VDP2_LCTA line color screen table address
16C: VDP2_BKTA back screen table address
170: VDP2_RPMD rotation parameter mode
172: VDP2_RPRCTL rotation parameter read control
174: VDP2_KTCTL coefficient table control
176: VDP2_KTAOF coefficient table address offset
178: VDP2_OVPNRA screen over pattern name
17A: VDP2_OVPNRB screen over pattern name
17C: VDP2_RPTA rotation parameter table address
180: VDP2_WPSX0 window position (H start)
182: VDP2_WPSY0 window position (V start)
184: VDP2_WPEX0 window position (H stop)
186: VDP2_WPEY0 window position (V stop)
188: VDP2_WPSX1 window position (H start)
18A: VDP2_WPSY1 window position (V start)
18C: VDP2_WPEX1 window position (H stop)
18E: VDP2_WPEY1 window position (V stop)
190:VDP2_WCTLA window control
192: VDP2_WCTLB window control
194:VDP2_WCTLC window control
196:VDP2_WCTLD window control
198: VDP2_LWTA0 line window table address
19C: VDP2_LWTA1 line window table address
1A0:VDP2_SPCTL sprite control
1A2: VDP2_SDCTL shadow control
1A4: VDP2_CRAOFA color RAM address offset (NBG0-3)
1A6: VDP2_CRAOFB color RAM address offset (RBG0, sprite)
1A8: VDP2_LNCLEN line color screen enable
1AA: VDP2_SFPRMD special priority mode
1AC: VDP2_CCCTL color calculation control
1AE: VDP2_SFCCMD special color calculation mode
1B0: VDP2_PRISA priority number
1B2: VDP2_PRISB priority number
1B4: VDP2_PRISC priority number
1B6: VDP2_PRISD priority number
1B8: VDP2_PRINA priority number
1BA: VDP2_PRINB priority number
1BC: VDP2_PRIR priority number
1BE: dummy2 system reservation
1C0: VDP2_CCRSA color calculation ratio (sprite 0, 1)
1C2: VDP2_CCRSB color calculation ratio (sprite 2, 3)
1C4: VDP2_CCRSC color calculation ratio (sprite 4, 5)
1C6: VDP2_CCRSD color calculation ratio (sprite 6, 7)
1C8: VDP2_CCRNA color calculation ratio (NBG0, 1)
1CA: VDP2_CCRNB color calculation ratio (NBG2, 3)
1CC: VDP2_CCRR color calculation ratio (RGB0)
1CE: VDP2_CCRLB color calculation ratio (line color screen, back screen)
1D0: VDP2_CLOFEN color offset enable
1D2: VDP2_CLOFSL Color Offset Select
1D4: VDP2_COAR color offset A (Red)
1D6: VDP2_COAG color offset A (Green)
1D8: VDP2_COAB color offset A (Blue)
1DA: VDP2_COBR color offset B(Red)
1DC: VDP2_COBG color offset B (Green)
1DE: VDP2_COBB color offset B (Blue)
1E0: ScrRotPtr Address of rotation parameter to be manipulated
1E4: nbg0_char_adr CG address for NBG0
1E8:nbg1_char_adr CG address for NBG1
1EC:nbg2_char_adr CG address for NBG2
1F0:nbg3_char_adr CG address for NBG3
1F4: ra_char_adr CG address for RBG0 (parameter A)
1F8: rb_char_adr CG address for RBG0 (parameter B)
1FC: nbg0_page_adr Pattern name address for NBG0
200:nbg1_page_adr Pattern name address for NBG1
204:nbg2_page_adr Pattern name address for NBG2
208:nbg3_page_adr Pattern name address for NBG3
20C: ra_page_adr Pattern name address for RBG0 (parameter A)
210: rb_page_adr Pattern name address for RBG0 (parameter B)
214: rpara_vram_adr rotation parameter set address
218: k_table_adr coefficient table set address
21C: RotScrParA rotation parameter A
284: RotScrParB rotation parameter B
2EC:Nbg2_PosX NBG2 display position (X)
2F0:Nbg2_PosY NBG2 display position (Y)
2F4: Nbg3_PosX NBG3 display position (X)
2F8:Nbg3_PosY NBG3 display position (Y)
2FC: Window_data window control data buffer (2)
328: Center_data window center control data buffer (2 portions)
33C: RandWork random number generation work
340: CDReadExec CD read server function
344:DMA_TRANS CPU DMA Parameter
36C: SOUND Sound buffer pointer
378: PERIPHERAL peripheral control data

| Function Reference | Structure Reference | SGL Supplementary Manual |SGL System Variable List
SGL User's Manual
Copyright SEGA ENTERPRISES, LTD., 1997