Japanese
SGL
REFERENCE
SGL system variable list
000 :
EventTop First registered event 004 :
EventLast Last registered event 008 :
EventNow Event being executed 00C :
EventCount Remaining number of events 00E :
WorkCount Remaining number of work 010 :
MainMode Main sequence mode 011 :
SubMode Subsequence mode 012 :
SynchConst Video synchronization count 013 :
SynchCount Video synchronization count 014 :
UserFunction User function executed 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 Interruption 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 Number of calculated vertices 078 :
MsScreenLeft Screen left position 07A :
MsScreenTop Screen top 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 Addition data for window check (Master)
092 :
MsWinYAdder Addition data for window check (Master)
094 :
SlWinXAdder Addition data for window check (Slave)
096 :
SlWinYAdder Addition data for window check (Slave)
098 :
MsClipXAdder Addition data for clipping (horizontal) (Master)
09A :
MsClipYAdder Addition data for clipping (vertical) (Master)
09C :
SlClipXAdder Addition data for clipping (horizontal) (Slave)
09E :
SlClipYAdder Clipping addition data (vertical) (Slave)
0A0 :
SlZlimit Display limit Z position (Slave)
0A2 :
WinPtr Window data set offset 0A4 :
DispPolygons Number of display polygons 0A6 :
DMAEndFlag DMA transfer end flag 0A8 :
DMASetFlag DMA table set flag 0AA :
PutCount Number of calls to slPutPolygon(),sl...Sprite() 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_CY CA0L 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 select 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 plane 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 plane 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 rotating parameter lead control 174: VDP2_KTCTL coefficient table control 176
: VDP2_KTAOF
coefficient Table address offset 176 8 :
VDP2_ovpnra screen over pattern name 17A :
VDP2_OVPNRB screen over pattern name 17c :
VDP2_RPTA rotating 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 :
V DP2_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 :
ScrrrotPtr rotary parameter address 1E4 :
NBG0_Char_adr NBG0 CG address 1E8 : CG address for NBG1_CHAR_ADR
NBG1 1EC : CG address for
NBG2_Char_adr NBG2 1f0 :
NBG3_CHAR_ADR CG address for NBG3 1f4 :
RA_CHAR_ADR RBG0 (parameter A) CG address 1F8 :
rb_char_adr CG address 1FC for RBG0 (parameter B):
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 For RBG0 (parameter A) Pattern name address 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)
33C :
RandWork Random number generation work 340 :
CDReadExec CD reading server function 344 :
DMA_TRANS CPU DMA parameter 36C :
SOUND Sound buffer pointer 378 :
PERIPHERAL Peripheral control data

 (C)SEGA ENTERPRISES, LTD., 1997