Previous 199869 Revisions Next

r41806 Friday 20th November, 2015 at 05:42:26 UTC by Olivier Galibert
Merge pull request #472 from kazblox/opl_playaround

fix ksl shift bits in OPL chips
[docs]hlsl.txt
[hash]psx.xml
[hlsl]post.fx
[hlsl/artwork_support]post.fx
[scripts]genie.lua
[scripts/src]3rdparty.lua
[src/devices/bus/isa]cga.cpp
[src/devices/cpu/arc]arc.cpp
[src/devices/cpu/e0c6200]e0c6200.h e0c6s46.cpp
[src/devices/cpu/h8]h8.cpp h83002.cpp h83006.cpp h83008.cpp h83048.cpp h83337.cpp h8_adc.cpp h8_intc.cpp h8_port.cpp h8_sci.cpp h8_timer16.cpp h8_timer8.cpp h8s2245.cpp h8s2320.cpp h8s2357.cpp h8s2655.cpp
[src/devices/cpu/hcd62121]hcd62121.cpp
[src/devices/cpu/i4004]i4004.cpp
[src/devices/cpu/i8089]i8089.cpp
[src/devices/cpu/i860]i860.cpp
[src/devices/cpu/i960]i960.cpp
[src/devices/cpu/ie15]ie15.cpp
[src/devices/cpu/m6502]m6502.cpp m6509.cpp m6510.cpp m65ce02.cpp m740.cpp
[src/devices/cpu/mb86233]mb86233.cpp
[src/devices/cpu/mcs96]i8x9x.cpp mcs96.cpp
[src/devices/cpu/melps4]m58846.cpp
[src/devices/cpu/mn10200]mn10200.h
[src/devices/cpu/pdp1]tx0.cpp
[src/devices/cpu/psx]dma.cpp irq.cpp mdec.cpp sio.cpp
[src/devices/cpu/s2650]s2650.cpp
[src/devices/cpu/saturn]saturn.cpp
[src/devices/cpu/scmp]scmp.cpp
[src/devices/cpu/se3208]se3208.cpp
[src/devices/cpu/sm8500]sm8500.cpp
[src/devices/cpu/superfx]superfx.cpp
[src/devices/cpu/tms34010]tms34010.cpp
[src/devices/cpu/tms57002]tms57002.cpp
[src/devices/cpu/unsp]unsp.cpp
[src/devices/cpu/upd7725]upd7725.cpp
[src/devices/cpu/z8000]z8000.cpp z8000tbl.inc
[src/devices/machine]40105.cpp 68230pit.cpp 68561mpcc.cpp 7200fifo.cpp 74123.cpp 74181.cpp 8530scc.cpp aakart.cpp adc0808.cpp adc1038.cpp aicartc.cpp amigafdc.cpp ataflash.cpp atahle.cpp cdp1852.cpp dp8390.cpp ds1204.cpp ds1315.cpp ds2401.cpp ds2404.cpp e0516.cpp e05a30.cpp i8212.cpp i8243.cpp i8271.cpp idehd.cpp ins8154.cpp jvsdev.cpp jvshost.cpp k033906.cpp lh5810.cpp linflash.cpp lpc-rtc.cpp m6m80011ap.cpp mb14241.cpp mb3773.cpp mb8795.cpp mc146818.cpp mc68328.cpp microtch.cpp mm74c922.cpp mos6551.cpp ncr5380n.cpp ncr5390.cpp nsc810.cpp nscsi_bus.cpp nscsi_cb.cpp nscsi_cd.cpp nscsi_hd.cpp pc_lpt.cpp pla.cpp rf5c296.cpp rtc4543.cpp rtc9701.cpp s3520cf.cpp s3c44b0.cpp serflash.cpp spchrom.cpp tms1024.cpp upd4701.cpp upd4992.cpp upd7002.cpp v3021.cpp vrc4373.cpp vt82c496.cpp ym2148.cpp
[src/devices/sound]315-5641.cpp awacs.cpp es1373.cpp esqpump.cpp i5000.cpp ics2115.cpp k054539.cpp k056800.cpp l7a1045_l6028_dsp_a.h mas3507d.cpp msm5232.cpp tc8830f.cpp upd7752.cpp vrc6.cpp wave.cpp ymz770.cpp
[src/devices/video]315_5313.cpp crtc_ega.cpp ef9340_1.cpp epic12.cpp fixfreq.cpp gf4500.cpp h63484.cpp huc6202.cpp huc6261.cpp msm6222b.cpp scn2674.cpp sed1200.cpp sed1520.cpp t6a04.cpp
[src/emu]emuopts.cpp render.cpp render.h
[src/emu/video]vector.cpp vector.h
[src/lib/formats]ap2_dsk.cpp
[src/mame]arcade.lst
[src/mame/drivers]asteroid.cpp bwidow.cpp bzone.cpp goldnpkr.cpp marinedt.cpp mhavoc.cpp naomi.cpp omegrace.cpp quantum.cpp starwars.cpp stv.cpp subsino.cpp tempest.cpp tomcat.cpp
[src/mame/machine]asteroid.cpp
[src/mame/video]avgdvg.cpp avgdvg.h
[src/osd/modules/render]drawd3d.cpp drawd3d.h
[src/osd/modules/render/d3d]d3dhlsl.cpp d3dhlsl.h
[src/osd/windows]winmain.cpp winmain.h

trunk/docs/hlsl.txt
r250317r250318
1010hlslpath                [path]          Path to the .fx files that are in use.  (default: hlsl)
1111hlsl_prescale_x         [horizontal]    HLSL pre-scale override factor for X.  (0 for auto)
1212hlsl_prescale_y         [vertical]      HLSL pre-scale override factor for Y.  (0 for auto)
13hlsl_preset             -1 through 3    HLSL preset to use.  (default: -1)
14hlsl_write              [filename]      Enable HLSL AVI writing.   (huge disk bandwidth suggested)
13hlsl_write              [filename]      Enables HLSL AVI writing.  (huge disk bandwidth suggested)
1514hlsl_snap_width         [width]         HLSL upscaled-snapshot width.  (default: 2048)
16hlsl_snap_height       [height]        HLSL upscaled-snapshot height.  (default: 1536)
15hlsl_snap_height        [height]        HLSL upscaled-snapshot height.  (default: 1536)
1716
1817
1918Surface/Color Processing Parameters
r250317r250318
2221Name                    Values      Description
2322shadow_mask_alpha       0.0 to 1.0      The ovearll darkness of each shadow mask pixel.
2423shadow_mask_texture     [filename]      A PNG that defines the shadow mask for each pixel.
25shadow_mask_x_count     1+              The count of shadow mask elements, X (usually 640-ish).
26shadow_mask_y_count     1+              The count of shadow mask elements, Y (usually 480-ish).
27shadow_mask_usize       0.0 to 1.0      These parameters define the *in-use* pixel count on the
28shadow_mask_vsize       0.0 to 1.0      X and Y axes of the shadow mask texture.
29curvature               0.0 to 1.0      Screen curvature. Affects borders and shadow mask.
30pincushion              0.0 to 1.0      Image curvature. Affects the source image only.
24shadow_mask_x_count     1+              The number of pixels one shadow mask tile uses on screen.
25shadow_mask_y_count     1+              This stretches the shadow mask tiles on X and Y axis.
26shadow_mask_usize       0.0 to 1.0      The size of one shadow mask tile in U/V coordinate.
27shadow_mask_vsize       0.0 to 1.0      The shadow mask textures always has a size of power-of-two.
28shadow_mask_voffset    -1.0 to 1.0      The offset of the shadow mask texture in U/V coordinates.
29shadow_mask_voffset    -1.0 to 1.0      An offset of 1.0 repressents one pixel on screen.
30curvature               0.0 to 1.0      Curvature amount of the screen.
31round_corner            0.0 to 1.0      Rounded corners amount of the screen.
32smooth_border           0.0 to 1.0      Smooth borders amount of the screen.
33reflection              0.0 to 1.0      Refelection amount of the screen highlight.
34vignetting              0.0 to 1.0      Vignetting amount of the image.
3135scanline_alpha          0.0 to 1.0      The overall darkness of each scanline furrow.
3236scanline_size           0.0 to 4.0      The overall height of each scanline.
3337scanline_height         [height]        Individual height scaling value for scanlines.
r250317r250318
97101Bloom Post-Processing Options
98102-----------------------------
99103Name                    Default Values  Description
100vector_bloom_scale      0.300           Intensity factor for vector bloom.  (0.000-1.000)
101raster_bloom_scale      0.225           Intensity factor for raster bloom.  (0.000-1.000)
104bloom_scale             0.500           Bloom intensity factor.  (0.000-2.000)
105bloom_overdrive         0.00,0.00,0.00  Bloom overdrive factor to bright full saturated colors.  (0.000-2.000)
102106bloom_lvl0_weight       1.00            Bloom level 0  (full-size target) weight.  (0.00-1.00)
103107bloom_lvl1_weight       0.21            Bloom level 1  (half-size target) weight.  (0.00-1.00)
104108bloom_lvl2_weight       0.19            Bloom level 2  (quarter-size target) weight.  (0.00-1.00)
trunk/hash/psx.xml
r250317r250318
33<softwarelist name="psx" description="Sony Playstation CD-ROMs">
44
55<!-- Interactive CD Sampler Discs-->
6
7<!-- size="364872255" crc="536126e5" -->   
6   
87   <software name="intcdv1m">
98      <description>Interactive CD Sampler Disc - Volume 01 (M Rated)</description>
109      <year>1995</year>
1110      <publisher>SCEA</publisher>
1211      <part name="cdrom" interface="psx_cdrom">
1312         <diskarea name="cdrom">
14            <disk name="Interactive CD Sampler Disc - Volume 1 (m rated)" sha1="4bc8e61f799ecd19c1b8207943eaab8359d34858"/>
13            <disk name="Interactive CD Sampler Disc - Volume 1 (M Rated)" sha1="de4924cbd635e0a11b33c03e6560e28790b09257"/>
1514         </diskarea>
1615      </part>
1716   </software>
1817
19<!-- size="428110417" crc="48bd3d35" -->
2018   <software name="intcdv2">
2119      <description>Interactive CD Sampler Disc - Volume 02</description>
2220      <year>1996</year>
2321      <publisher>SCEA</publisher>
2422      <part name="cdrom" interface="psx_cdrom">
2523         <diskarea name="cdrom">
26            <disk name="Interactive CD Sampler Disc - Volume 2" sha1="5801f9972e483b9e2a7f316796b57b74d8baa5e7"/>
24            <disk name="Interactive CD Sampler Disc - Volume 2" sha1="867f9b3e42d4e9d439750d05dc4f18c86bab6f60"/>
2725         </diskarea>
2826      </part>
2927   </software>
3028
31<!-- size="476195663" crc="fb8d356b" -->
3229   <software name="intcdv30">
3330      <description>Interactive CD Sampler Disc - Volume 03 (1.0)</description>
3431      <year>1996</year>
3532      <publisher>SCEA</publisher>
3633      <part name="cdrom" interface="psx_cdrom">
3734         <diskarea name="cdrom">
38            <disk name="Interactive CD Sampler Disc - Volume 3 (1.0)" sha1="f82e72d70b10badb35a91a09950d0d89db50855c"/>
35            <disk name="Interactive CD Sampler Disc - Volume 3 (1.0)" sha1="3c87bcfe7395e5b3e5c007c80534778ed0b9f751"/>
3936         </diskarea>
4037      </part>
4138   </software>
4239
43<!-- size="487436207" crc="336304eb" -->
4440   <software name="intcdv31">
4541      <description>Interactive CD Sampler Disc - Volume 03 (1.1)</description>
4642      <year>1996</year>
4743      <publisher>SCEA</publisher>
4844      <part name="cdrom" interface="psx_cdrom">
4945         <diskarea name="cdrom">
50            <disk name="Interactive CD Sampler Disc - Volume 3 (1.1)" sha1="5f6fa89b8c9b31b3dabdc7ac06806bc721d2aa16"/>
46            <disk name="Interactive CD Sampler Disc - Volume 3 (1.1)" sha1="c220e22c44a0f0a26b95110b937b398163490298"/>
5147         </diskarea>
5248      </part>
5349   </software>
5450
55<!-- size="487436203" crc="d96b31d2" -->
5651   <software name="intcdv32">
5752      <description>Interactive CD Sampler Disc - Volume 03 (1.2)</description>
5853      <year>1996</year>
5954      <publisher>SCEA</publisher>
6055      <part name="cdrom" interface="psx_cdrom">
6156         <diskarea name="cdrom">
62            <disk name="Interactive CD Sampler Disc - Volume 3 (1.2)" sha1="20f261877d3f63bd9215ca791800417ff7287e46"/>
57            <disk name="Interactive CD Sampler Disc - Volume 3 (1.2)" sha1="2890dd570114ab7116a5556578d11632264cc13b"/>
6358         </diskarea>
6459      </part>
6560   </software>
6661
67<!-- size="354903558" crc="67ca3059" -->
6862   <software name="intcdv4">
6963      <description>Interactive CD Sampler Disc - Volume 04</description>
7064      <year>1997</year>
7165      <publisher>SCEA</publisher>
7266      <part name="cdrom" interface="psx_cdrom">
7367         <diskarea name="cdrom">
74            <disk name="Interactive CD Sampler Disc - Volume 4" sha1="c353a52e8b7831f11d3ce8ea771e865e9ba3431a"/>
68            <disk name="Interactive CD Sampler Disc - Volume 4" sha1="c558a684a28ccf6afe0d3fc166814539c75863f7"/>
7569         </diskarea>
7670      </part>
7771   </software>
7872
79<!-- size="291855185" crc="8119ed78" -->
8073   <software name="intcdv5">
8174      <description>Interactive CD Sampler Disc - Volume 05</description>
8275      <year>1997</year>
8376      <publisher>SCEA</publisher>
8477      <part name="cdrom" interface="psx_cdrom">
8578         <diskarea name="cdrom">
86            <disk name="Interactive CD Sampler Disc - Volume 5" sha1="9aef2ff7583b61d24302a35831a25ed5549610e1"/>
79            <disk name="Interactive CD Sampler Disc - Volume 5" sha1="f1ce1f4a942af852ee67f98c7d2a3c148d835abb"/>
8780         </diskarea>
8881      </part>
8982   </software>
9083
91<!-- size="427620748" crc="917b5f35" -->
9284   <software name="intcdv6">
9385      <description>Interactive CD Sampler Disc - Volume 06</description>
9486      <year>1998</year>
9587      <publisher>SCEA</publisher>
9688      <part name="cdrom" interface="psx_cdrom">
9789         <diskarea name="cdrom">
98            <disk name="Interactive CD Sampler Disc - Volume 6" sha1="c35833fdd8a46016b3ccafa9ae08f68c10309737"/>
90            <disk name="Interactive CD Sampler Disc - Volume 6" sha1="78f9e8b125f440e626d1ccc1f3a5a5f5a3a1cb11"/>
9991         </diskarea>
10092      </part>
10193   </software>
10294
103<!-- size="397092409" crc="17f17815" -->
10495   <software name="intcdv7">
10596      <description>Interactive CD Sampler Disc - Volume 07</description>
10697      <year>1998</year>
10798      <publisher>SCEA</publisher>
10899      <part name="cdrom" interface="psx_cdrom">
109100         <diskarea name="cdrom">
110            <disk name="Interactive CD Sampler Disc - Volume 7" sha1="81db574e4599e022cfac938516cff29bb09d1388"/>
101            <disk name="Interactive CD Sampler Disc - Volume 7" sha1="73e8215a98da98d9f2d1468c62354b46af77fa56"/>
111102         </diskarea>
112103      </part>
113104   </software>
114105
115<!-- size="420000809" crc="91d8b335" -->
116106   <software name="intcdv8">
117107      <description>Interactive CD Sampler Disc - Volume 08</description>
118108      <year>1998</year>
119109      <publisher>SCEA</publisher>
120110      <part name="cdrom" interface="psx_cdrom">
121111         <diskarea name="cdrom">
122            <disk name="Interactive CD Sampler Disc - Volume 8" sha1="7f23e2d284a104e6914d34527960567111914264"/>
112            <disk name="Interactive CD Sampler Disc - Volume 8" sha1="8145f022b1f44d2ed7140386acf5b293834fc6c8"/>
123113         </diskarea>
124114      </part>
125115   </software>
126116
127<!-- size="389598196" crc="993e0ab1" -->
128117   <software name="intcdv9">
129118      <description>Interactive CD Sampler Disc - Volume 09</description>
130119      <year>1998</year>
131120      <publisher>SCEA</publisher>
132121      <part name="cdrom" interface="psx_cdrom">
133122         <diskarea name="cdrom">
134            <disk name="Interactive CD Sampler Disc - Volume 9" sha1="286559ce34f06a7f2eb2b441e9188da0e158d107"/>
123            <disk name="Interactive CD Sampler Disc - Volume 9" sha1="4b504a4ce093c255b40f4cc2cf3fb59b4216f501"/>
135124         </diskarea>
136125      </part>
137126   </software>
138127
139<!-- size="365007076" crc="5f5fd01f" -->
140128   <software name="intcdv10">
141129      <description>Interactive CD Sampler Disc - Volume 10</description>
142130      <year>1999</year>
143131      <publisher>SCEA</publisher>
144132      <part name="cdrom" interface="psx_cdrom">
145133         <diskarea name="cdrom">
146            <disk name="Interactive CD Sampler Disc - Volume 10" sha1="8c414a1e26ac98d07f774cc8b16eb2fa8da0ca61"/>
134            <disk name="Interactive CD Sampler Disc - Volume 10" sha1="960319d09f9ca10663f06068a2ff134f343d22ad"/>
147135         </diskarea>
148136      </part>
149137   </software>
150138
151<!-- size="272935197" crc="82e6fdf0" -->
152139   <software name="intcdv11">
153140      <description>Interactive CD Sampler Disc - Volume 11</description>
154141      <year>1999</year>
155142      <publisher>SCEA</publisher>
156143      <part name="cdrom" interface="psx_cdrom">
157144         <diskarea name="cdrom">
158            <disk name="Interactive CD Sampler Disc - Volume 11" sha1="3029004840d98c2789d2a0d93bdd762b3c56df0f"/>
145            <disk name="Interactive CD Sampler Disc - Volume 11" sha1="0506aa051708f32f8470a19b7d6c8538ecedecc1"/>
159146         </diskarea>
160147      </part>
161148   </software>
162149
163<!-- size="149681460" crc="99551669" -->
164150   <software name="intcdtru">
165151      <description>Toys R Us - Interactive CD Sampler Disc</description>
166152      <year>1998</year>
167153      <publisher>SCEA</publisher>
168154      <part name="cdrom" interface="psx_cdrom">
169155         <diskarea name="cdrom">
170            <disk name="Toys R Us - Interactive CD Sampler Disc" sha1="4abae391a7ad1e38c2ee7cbd7401caebcf091df3"/>
156            <disk name="Toys R Us - Interactive CD Sampler Disc" sha1="65e0b8973fb1c59a3b18e1c21659afb00ff7db33"/>
171157         </diskarea>
172158      </part>
173159   </software>
174160
175<!-- size="93662349" crc="59bd7278" -->
176161   <software name="intcdff7">
177162      <description>Final Fantasy VII Interactive Sampler CD</description>
178163      <year>1996</year>
179164      <publisher>SCEA</publisher>
180165      <part name="cdrom" interface="psx_cdrom">
181166         <diskarea name="cdrom">
182            <disk name="Final Fantasy VII Interactive Sampler CD" sha1="0a88439b32be5172e79847f79ae33b6ba22b1de6"/>
167            <disk name="Final Fantasy VII Interactive Sampler CD" sha1="820d6b26f12e68b0eb2a92895132083bb48a29bc"/>
183168         </diskarea>
184169      </part>
185170   </software>
trunk/hlsl/artwork_support/post.fx
r250317r250318
152152// Post-Processing Pixel Shader
153153//-----------------------------------------------------------------------------
154154
155uniform float2 ScreenScale = float2(1.0f, 1.0f);
156uniform float2 ScreenOffset = float2(0.0f, 0.0f);
157
155158uniform float ScanlineAlpha = 1.0f;
156159uniform float ScanlineScale = 1.0f;
157160uniform float ScanlineBrightScale = 1.0f;
r250317r250318
232235               : float2(-0.25f, 0.25f)
233236      : OrientationSwapXY
234237         ? float2(0.25f, 0.25f)
235         : float2(-0.25f, 0.25f);     
238         : float2(-0.25f, 0.25f);
236239
237240   float2 SpotCoord = coord;
238241   SpotCoord += spotOffset * RatioCorrection;
r250317r250318
334337   return coord;
335338}
336339
340float2 GetAdjustedCoords(float2 coord, float2 centerOffset, float distortionAmount)
341{
342   float2 RatioCorrection = GetRatioCorrection();
343
344   // center coordinates
345   coord -= centerOffset;
346
347   // apply ratio difference between screen and quad
348   coord /= RatioCorrection;
349
350   // apply screen scale
351   coord /= ScreenScale;
352
353   // distort coordinates
354   coord = GetDistortedCoords(coord, distortionAmount);
355
356   // revert ratio difference between screen and quad
357   coord *= RatioCorrection;
358
359   // un-center coordinates
360   coord += centerOffset;
361
362   // apply screen offset
363   coord += (centerOffset * 2.0) * ScreenOffset;
364
365   return coord;
366}
367
337368float4 ps_main(PS_INPUT Input) : COLOR
338369{
339370   float2 ScreenTexelDims = 1.0f / ScreenDims;
r250317r250318
345376   float2 ScreenCoord = Input.ScreenCoord / ScreenDims;
346377   ScreenCoord = GetCoords(ScreenCoord, float2(0.5f, 0.5f), CurvatureAmount);
347378
379   float2 DistortionCoord = Input.TexCoord;
380   DistortionCoord = GetCoords(DistortionCoord, HalfSourceRect, CurvatureAmount);
381
348382   float2 BaseCoord = Input.TexCoord;
349   BaseCoord = GetCoords(BaseCoord, HalfSourceRect, CurvatureAmount);
383   BaseCoord = GetAdjustedCoords(BaseCoord, HalfSourceRect, CurvatureAmount);
350384
385   float2 DistortionCoordCentered = DistortionCoord;
386   DistortionCoordCentered -= HalfSourceRect;
387
351388   float2 BaseCoordCentered = BaseCoord;
352389   BaseCoordCentered -= HalfSourceRect;
353390
354391   float4 BaseColor = tex2D(DiffuseSampler, BaseCoord);
355392   BaseColor.a = 1.0f;
356393
394   if (BaseCoord.x < 0.0f || BaseCoord.y < 0.0f)
395   {
396      BaseColor.rgb = 0.0f;
397   }
398
357399   // Mask Simulation (may not affect bloom)
358400   if (!PrepareBloom)
359401   {
r250317r250318
431473   // Vignetting Simulation (may not affect bloom)
432474   if (!PrepareBloom)
433475   {
434      float2 VignetteCoord = BaseCoordCentered;
476      float2 VignetteCoord = DistortionCoordCentered;
435477
436478      float VignetteFactor = GetVignetteFactor(VignetteCoord, VignettingAmount);
437479      Output.rgb *= VignetteFactor;
r250317r250318
442484   {
443485      float3 LightColor = float3(1.0f, 0.90f, 0.80f);
444486
445      float2 SpotCoord = BaseCoordCentered;
446      float2 NoiseCoord = BaseCoordCentered;
487      float2 SpotCoord = DistortionCoordCentered;
488      float2 NoiseCoord = DistortionCoordCentered;
447489
448490      float SpotAddend = GetSpotAddend(SpotCoord, ReflectionAmount);
449491      float NoiseFactor = GetNoiseFactor(SpotAddend, random(NoiseCoord));
r250317r250318
451493   }
452494
453495   // Round Corners Simulation (may affect bloom)
454   float2 RoundCornerCoord = BaseCoordCentered;
496   float2 RoundCornerCoord = DistortionCoordCentered;
455497
456498   float roundCornerFactor = GetRoundCornerFactor(RoundCornerCoord, RoundCornerAmount, SmoothBorderAmount);
457499   Output.rgb *= roundCornerFactor;
trunk/hlsl/post.fx
r250317r250318
7777
7878uniform float2 ScreenDims; // size of the window or fullscreen
7979uniform float2 SourceDims; // size of the texture in power-of-two size
80uniform float2 SourceRect; // size of the uv rectangle
8081uniform float2 TargetDims; // size of the target surface
8182
8283uniform float2 ShadowDims = float2(32.0f, 32.0f); // size of the shadow texture (extended to power-of-two size)
r250317r250318
8788
8889uniform bool PrepareBloom = false; // disables some effects for rendering bloom textures
8990uniform bool PrepareVector = false;
91uniform bool PrepareRaster = false;
9092
9193VS_OUTPUT vs_main(VS_INPUT Input)
9294{
r250317r250318
123125// Post-Processing Pixel Shader
124126//-----------------------------------------------------------------------------
125127
128uniform float2 ScreenScale = float2(1.0f, 1.0f);
129uniform float2 ScreenOffset = float2(0.0f, 0.0f);
130
126131uniform float ScanlineAlpha = 1.0f;
127132uniform float ScanlineScale = 1.0f;
128133uniform float ScanlineBrightScale = 1.0f;
r250317r250318
137142uniform float3 Power = float3(1.0f, 1.0f, 1.0f);
138143uniform float3 Floor = float3(0.0f, 0.0f, 0.0f);
139144
145float2 GetAdjustedCoords(float2 coord, float2 centerOffset)
146{
147   // center coordinates
148   coord -= centerOffset;
149
150   // apply screen scale
151   coord /= ScreenScale;
152
153   // un-center coordinates
154   coord += centerOffset;
155
156   // apply screen offset
157   coord += (centerOffset * 2.0) * ScreenOffset;
158
159   return coord;
160}
161
140162float4 ps_main(PS_INPUT Input) : COLOR
141163{
142164   float2 ScreenTexelDims = 1.0f / ScreenDims;
143165
166   float2 HalfSourceRect = PrepareVector
167      ? float2(0.5f, 0.5f)
168      : SourceRect * 0.5f;
169
144170   float2 ScreenCoord = Input.ScreenCoord / ScreenDims;
145   float2 BaseCoord = Input.TexCoord;
171   float2 BaseCoord = GetAdjustedCoords(Input.TexCoord, HalfSourceRect);
146172
147173   // Color
148174   float4 BaseColor = tex2D(DiffuseSampler, BaseCoord);
149175   BaseColor.a = 1.0f;
150176
177   if (BaseCoord.x < 0.0f || BaseCoord.y < 0.0f)
178   {
179      BaseColor.rgb = 0.0f;
180   }
181
151182   // Mask Simulation (may not affect bloom)
152183   if (!PrepareBloom)
153184   {
r250317r250318
204235   // Scanline Simulation (may not affect bloom)
205236   if (!PrepareBloom)
206237   {
207      // Scanline Simulation (disabled for vector)
208      if (!PrepareVector)
238      // Scanline Simulation (only for raster screen)
239      if (PrepareRaster)
209240      {
210241         float InnerSine = BaseCoord.y * ScanlineScale * SourceDims.y;
211242         float ScanJitter = ScanlineOffset * SourceDims.y;
trunk/scripts/genie.lua
r250317r250318
532532   os.outputof( PYTHON .. " " .. MAME_DIR .. "scripts/build/makedep.py " .. MAME_DIR .. " " .. _OPTIONS["SOURCES"] .. " drivers " .. _OPTIONS["subtarget"] .. " > ".. GEN_DIR  .. _OPTIONS["target"] .. "/" .. _OPTIONS["subtarget"].."/drivlist.cpp")
533533end
534534configuration { "gmake" }
535if _OPTIONS["CPP11"]~="1" then
535536   defines {
536537      "nullptr=NULL" -- getting ready for C++11
537538   }
539end
538540   flags {
539541      "SingleOutputDir",
540542   }
trunk/scripts/src/3rdparty.lua
r250317r250318
674674      includedirs {
675675         MAME_DIR .. "3rdparty/bx/include/compat/mingw",
676676      }
677if _OPTIONS["CPP11"]~="1" then     
677678      defines {
678679         "nullptr=NULL" -- not used but needed for C++11 code
679680      }
681end
680682
681683   configuration { "osx*" }
682684      includedirs {
trunk/src/devices/bus/isa/cga.cpp
r250317r250318
308308      device_t(mconfig, ISA8_CGA, "IBM Color/Graphics Monitor Adapter", tag, owner, clock, "cga", __FILE__),
309309      device_isa8_card_interface(mconfig, *this),
310310      m_cga_config(*this, "cga_config"), m_framecnt(0), m_mode_control(0), m_color_select(0),
311      m_update_row_type(-1), m_chr_gen_base(nullptr), m_chr_gen(nullptr), m_vsync(0), m_hsync(0),
311      m_update_row_type(-1), m_y(0), m_chr_gen_base(nullptr), m_chr_gen(nullptr), m_vsync(0), m_hsync(0),
312312      m_vram_size( 0x4000 ), m_plantronics(0),
313313      m_palette(*this, "palette"),
314314      m_screen(*this, "screen")
r250317r250318
324324      device_t(mconfig, type, name, tag, owner, clock, shortname, source),
325325      device_isa8_card_interface(mconfig, *this),
326326      m_cga_config(*this, "cga_config"), m_framecnt(0), m_mode_control(0), m_color_select(0),
327      m_update_row_type(-1), m_chr_gen_base(nullptr), m_chr_gen(nullptr), m_vsync(0), m_hsync(0),
327      m_update_row_type(-1), m_y(0), m_chr_gen_base(nullptr), m_chr_gen(nullptr), m_vsync(0), m_hsync(0),
328328      m_vram_size( 0x4000 ), m_plantronics(0),
329329      m_palette(*this, "palette"),
330330      m_screen(*this, "screen")
trunk/src/devices/cpu/arc/arc.cpp
r250317r250318
1919
2020arc_device::arc_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
2121   : cpu_device(mconfig, ARC, "ARCtangent A4", tag, owner, clock, "arc", __FILE__)
22   , m_program_config("program", ENDIANNESS_BIG, 32, 24, 0) // some docs describe these as 'middle endian'?!
22   , m_program_config("program", ENDIANNESS_BIG, 32, 24, 0), m_pc(0), m_program(nullptr), m_icount(0), m_debugger_temp(0)
23// some docs describe these as 'middle endian'?!
2324{
2425}
2526
trunk/src/devices/cpu/e0c6200/e0c6200.h
r250317r250318
1919   e0c6200_cpu_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock, address_map_constructor program, address_map_constructor data, const char *shortname, const char *source)
2020      : cpu_device(mconfig, type, name, tag, owner, clock, shortname, source)
2121      , m_program_config("program", ENDIANNESS_BIG, 16, 13, -1, program)
22      , m_data_config("data", ENDIANNESS_BIG, 8, 12, 0, data)
22      , m_data_config("data", ENDIANNESS_BIG, 8, 12, 0, data), m_program(nullptr), m_data(nullptr), m_op(0), m_prev_op(0), m_irq_vector(0), m_irq_id(0), m_possible_irq(false), m_halt(false),
23      m_sleep(false), m_icount(0), m_pc(0), m_prev_pc(0), m_npc(0), m_jpc(0), m_a(0), m_b(0), m_xp(0), m_xh(0), m_xl(0), m_yp(0), m_yh(0), m_yl(0), m_sp(0), m_f(0)
2324   { }
2425
2526protected:
trunk/src/devices/cpu/e0c6200/e0c6s46.cpp
r250317r250318
4848e0c6s46_device::e0c6s46_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
4949   : e0c6200_cpu_device(mconfig, E0C6S46, "E0C6S46", tag, owner, clock, ADDRESS_MAP_NAME(e0c6s46_program), ADDRESS_MAP_NAME(e0c6s46_data), "e0c6s46", __FILE__)
5050   , m_vram1(*this, "vram1")
51   , m_vram2(*this, "vram2")
52   , m_pixel_update_handler(NULL)
51   , m_vram2(*this, "vram2"), m_osc(0), m_svd(0), m_lcd_control(0), m_lcd_contrast(0)
52     , m_pixel_update_handler(nullptr)
5353   , m_write_r0(*this), m_write_r1(*this), m_write_r2(*this), m_write_r3(*this), m_write_r4(*this)
5454   , m_read_p0(*this), m_read_p1(*this), m_read_p2(*this), m_read_p3(*this)
55   , m_write_p0(*this), m_write_p1(*this), m_write_p2(*this), m_write_p3(*this)
55   , m_write_p0(*this), m_write_p1(*this), m_write_p2(*this), m_write_p3(*this), m_r_dir(0), m_p_dir(0), m_p_pullup(0), m_dfk0(0), m_256_src_pulse(0), m_core_256_handle(nullptr),
56   m_watchdog_count(0), m_clktimer_count(0), m_stopwatch_on(0), m_swl_cur_pulse(0), m_swl_slice(0), m_swl_count(0), m_swh_count(0), m_prgtimer_select(0), m_prgtimer_on(0), m_prgtimer_src_pulse(0),
57   m_prgtimer_cur_pulse(0), m_prgtimer_count(0), m_prgtimer_reload(0), m_prgtimer_handle(nullptr), m_bz_43_on(0), m_bz_freq(0), m_bz_envelope(0), m_bz_duty_ratio(0), m_bz_1shot_on(0), m_bz_1shot_running(false), m_bz_1shot_count(0), m_bz_pulse(0), m_buzzer_handle(nullptr)
5658{ }
5759
5860
trunk/src/devices/cpu/h8/h8.cpp
r250317r250318
1616h8_device::h8_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock, const char *shortname, const char *source, bool mode_a16, address_map_delegate map_delegate) :
1717   cpu_device(mconfig, type, name, tag, owner, clock, shortname, source),
1818   program_config("program", ENDIANNESS_BIG, 16, mode_a16 ? 16 : 24, 0, map_delegate),
19   io_config("io", ENDIANNESS_BIG, 16, 16, -1)
19   io_config("io", ENDIANNESS_BIG, 16, 16, -1), program(nullptr), io(nullptr), direct(nullptr), PPC(0), NPC(0), PC(0), PIR(0), EXR(0), CCR(0), MAC(0), MACF(0),
20   TMP1(0), TMP2(0), TMPR(0), inst_state(0), inst_substate(0), icount(0), bcount(0), irq_vector(0), taken_irq_vector(0), irq_level(0), taken_irq_level(0), irq_required(false), irq_nmi(false)
2021{
2122   supports_advanced = false;
2223   mode_advanced = false;
trunk/src/devices/cpu/h8/h83002.cpp
r250317r250318
2323   timer16_3(*this, "timer16:3"),
2424   timer16_4(*this, "timer16:4"),
2525   sci0(*this, "sci0"),
26   sci1(*this, "sci1")
26   sci1(*this, "sci1"), syscr(0)
2727{
2828}
2929
trunk/src/devices/cpu/h8/h83006.cpp
r250317r250318
2828   timer16_2(*this, "timer16:2"),
2929   sci0(*this, "sci0"),
3030   sci1(*this, "sci1"),
31   sci2(*this, "sci2")
31   sci2(*this, "sci2"), syscr(0), ram_start(0)
3232{
3333}
3434
r250317r250318
5353   timer16_2(*this, "timer16:2"),
5454   sci0(*this, "sci0"),
5555   sci1(*this, "sci1"),
56   sci2(*this, "sci2")
56   sci2(*this, "sci2"), syscr(0)
5757{
5858   ram_start = 0xfff720;
5959}
trunk/src/devices/cpu/h8/h83008.cpp
r250317r250318
2525   timer16_1(*this, "timer16:1"),
2626   timer16_2(*this, "timer16:2"),
2727   sci0(*this, "sci0"),
28   sci1(*this, "sci1")
28   sci1(*this, "sci1"), syscr(0)
2929{
3030}
3131
trunk/src/devices/cpu/h8/h83048.cpp
r250317r250318
3030   timer16_3(*this, "timer16:3"),
3131   timer16_4(*this, "timer16:4"),
3232   sci0(*this, "sci0"),
33   sci1(*this, "sci1")
33   sci1(*this, "sci1"), ram_start(0), syscr(0)
3434{
3535}
3636
trunk/src/devices/cpu/h8/h83337.cpp
r250317r250318
2626   timer16(*this, "timer16"),
2727   timer16_0(*this, "timer16:0"),
2828   sci0(*this, "sci0"),
29   sci1(*this, "sci1")
29   sci1(*this, "sci1"), syscr(0), ram_start(0)
3030{
3131}
3232
r250317r250318
4848   timer16(*this, "timer16"),
4949   timer16_0(*this, "timer16:0"),
5050   sci0(*this, "sci0"),
51   sci1(*this, "sci1")
51   sci1(*this, "sci1"), syscr(0)
5252{
5353   ram_start = 0xf780;
5454}
trunk/src/devices/cpu/h8/h8_adc.cpp
r250317r250318
1212
1313h8_adc_device::h8_adc_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock, const char *shortname, const char *source) :
1414   device_t(mconfig, type, name, tag, owner, clock, shortname, source),
15   cpu(*this, DEVICE_SELF_OWNER)
15   cpu(*this, DEVICE_SELF_OWNER), intc(nullptr), io(nullptr), intc_tag(nullptr), intc_vector(0), adcsr(0), adcr(0), register_mask(0), trigger(0), start_mode(0), start_channel(0),
16   end_channel(0), start_count(0), mode(0), channel(0), count(0), analog_powered(false), adtrg(false), next_event(0)
1617{
1718   suspend_on_interrupt = false;
1819   analog_power_control = false;
trunk/src/devices/cpu/h8/h8_intc.cpp
r250317r250318
99
1010h8_intc_device::h8_intc_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) :
1111   device_t(mconfig, H8_INTC, "H8 INTC", tag, owner, clock, "h8_intc", __FILE__),
12   cpu(*this, DEVICE_SELF_OWNER)
12   cpu(*this, DEVICE_SELF_OWNER), nmi_input(false), irq_input(0), ier(0), isr(0), iscr(0), icr_filter(0), ipr_filter(0)
1313{
1414   irq_vector_base = 4;
1515   irq_vector_nmi = 3;
1616}
1717
1818h8_intc_device::h8_intc_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock, const char *shortname, const char *source) :
19   device_t(mconfig, type, name, tag, owner, clock, shortname, source),
20   cpu(*this, DEVICE_SELF_OWNER)
19   device_t(mconfig, type, name, tag, owner, clock, shortname, source), irq_vector_base(0), irq_vector_nmi(0),
20   cpu(*this, DEVICE_SELF_OWNER), nmi_input(false), irq_input(0), ier(0), isr(0), iscr(0), icr_filter(0), ipr_filter(0)
2121{
2222}
2323
trunk/src/devices/cpu/h8/h8_port.cpp
r250317r250318
77
88h8_port_device::h8_port_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) :
99   device_t(mconfig, H8_PORT, "H8 digital port", tag, owner, clock, "h8_digital_port", __FILE__),
10   cpu(*this, DEVICE_SELF_OWNER)
10   cpu(*this, DEVICE_SELF_OWNER), io(nullptr), address(0), default_ddr(0), ddr(0), pcr(0), odr(0), mask(0), dr(0), last_output(0)
1111{
1212}
1313
trunk/src/devices/cpu/h8/h8_sci.cpp
r250317r250318
1111   device_t(mconfig, H8_SCI, "H8 Serial Communications Interface", tag, owner, clock, "h8_sci", __FILE__),
1212   cpu(*this, DEVICE_SELF_OWNER),
1313   tx_cb(*this),
14   clk_cb(*this)
14   clk_cb(*this), intc(nullptr), intc_tag(nullptr), external_to_internal_ratio(0), internal_to_external_ratio(0), sync_timer(nullptr), eri_int(0), rxi_int(0), txi_int(0), tei_int(0),
15   tx_state(0), rx_state(0), tx_bit(0), rx_bit(0), clock_state(0), clock_mode(0), tx_parity(0), rx_parity(0), ext_clock_counter(0), clock_value(false), ext_clock_value(false), rx_value(false),
16   rdr(0), tdr(0), smr(0), scr(0), ssr(0), brr(0), rsr(0), tsr(0), clock_base(0), divider(0)
1517{
1618   external_clock_period = attotime::never;
1719}
trunk/src/devices/cpu/h8/h8_timer16.cpp
r250317r250318
1212
1313h8_timer16_channel_device::h8_timer16_channel_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) :
1414   device_t(mconfig, H8_TIMER16_CHANNEL, "H8 16-bits timer channel", tag, owner, clock, "h8_16bits_timer_channel", __FILE__),
15   cpu(*this, "^^")
15   cpu(*this, "^^"), chained_timer(nullptr), intc(nullptr), intc_tag(nullptr), tier_mask(0), tgr_count(0), tbr_count(0), tgr_clearing(0), tcr(0), tier(0), ier(0), isr(0), clock_type(0),
16   clock_divider(0), tcnt(0), last_clock_update(0), event_time(0), phase(0), counter_cycle(0), counter_incrementing(false), channel_active(false)
1617{
1718   chain_tag = NULL;
1819}
1920
2021h8_timer16_channel_device::h8_timer16_channel_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock, const char *shortname, const char *source) :
2122   device_t(mconfig, type, name, tag, owner, clock, shortname, source),
22   cpu(*this, "^^")
23   cpu(*this, "^^"), chained_timer(nullptr), intc(nullptr), intc_tag(nullptr), tier_mask(0), tgr_count(0), tbr_count(0), tgr_clearing(0), tcr(0), tier(0), ier(0), isr(0), clock_type(0),
24   clock_divider(0), tcnt(0), last_clock_update(0), event_time(0), phase(0), counter_cycle(0), counter_incrementing(false), channel_active(false)
2325{
2426   chain_tag = NULL;
2527}
trunk/src/devices/cpu/h8/h8_timer8.cpp
r250317r250318
88
99h8_timer8_channel_device::h8_timer8_channel_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) :
1010   device_t(mconfig, H8_TIMER8_CHANNEL, "H8 8-bits timer channel", tag, owner, clock, "h8_8bits_timer_channel", __FILE__),
11   cpu(*this, "^")
11   cpu(*this, "^"), chained_timer(nullptr), intc(nullptr), chain_tag(nullptr), intc_tag(nullptr), irq_ca(0), irq_cb(0), irq_v(0), chain_type(0), tcr(0), tcsr(0), tcnt(0), extra_clock_bit(false),
12   has_adte(false), has_ice(false), clock_type(0), clock_divider(0), clear_type(0), counter_cycle(0), last_clock_update(0), event_time(0)
1213{
1314}
1415
1516h8_timer8_channel_device::h8_timer8_channel_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock, const char *shortname, const char *source) :
1617   device_t(mconfig, type, name, tag, owner, clock, shortname, source),
17   cpu(*this, "^")
18   cpu(*this, "^"), chained_timer(nullptr), intc(nullptr), chain_tag(nullptr), intc_tag(nullptr), irq_ca(0), irq_cb(0), irq_v(0), chain_type(0), tcr(0), tcsr(0), tcnt(0), extra_clock_bit(false),
19   has_adte(false), has_ice(false), clock_type(0), clock_divider(0), clear_type(0), counter_cycle(0), last_clock_update(0), event_time(0)
1820{
1921}
2022
trunk/src/devices/cpu/h8/h8s2245.cpp
r250317r250318
3333   timer16_2(*this, "timer16:2"),
3434   sci0(*this, "sci0"),
3535   sci1(*this, "sci1"),
36   sci2(*this, "sci2")
36   sci2(*this, "sci2"), ram_start(0), syscr(0)
3737{
3838}
3939
trunk/src/devices/cpu/h8/h8s2320.cpp
r250317r250318
4242   timer16_5(*this, "timer16:5"),
4343   sci0(*this, "sci0"),
4444   sci1(*this, "sci1"),
45   sci2(*this, "sci2")
45   sci2(*this, "sci2"), ram_start(0), syscr(0)
4646{
4747}
4848
trunk/src/devices/cpu/h8/h8s2357.cpp
r250317r250318
3838   timer16_5(*this, "timer16:5"),
3939   sci0(*this, "sci0"),
4040   sci1(*this, "sci1"),
41   sci2(*this, "sci2")
41   sci2(*this, "sci2"), ram_start(0), syscr(0)
4242{
4343}
4444
trunk/src/devices/cpu/h8/h8s2655.cpp
r250317r250318
3434   timer16_5(*this, "timer16:5"),
3535   sci0(*this, "sci0"),
3636   sci1(*this, "sci1"),
37   sci2(*this, "sci2")
37   sci2(*this, "sci2"), syscr(0)
3838{
3939   has_trace = true;
4040}
trunk/src/devices/cpu/hcd62121/hcd62121.cpp
r250317r250318
3232hcd62121_cpu_device::hcd62121_cpu_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
3333   : cpu_device(mconfig, HCD62121, "Hitachi HCD62121", tag, owner, clock, "hcd62121", __FILE__)
3434   , m_program_config("program", ENDIANNESS_BIG, 8, 24, 0)
35   , m_io_config("io", ENDIANNESS_BIG, 8, 8, 0)
36   , m_sp(0)
35   , m_io_config("io", ENDIANNESS_BIG, 8, 8, 0), m_prev_pc(0)
36     , m_sp(0)
3737   , m_ip(0)
3838   , m_dsize(0)
3939   , m_cseg(0)
4040   , m_dseg(0)
4141   , m_sseg(0)
4242   , m_f(0)
43   , m_lar(0)
43   , m_lar(0), m_program(nullptr), m_io(nullptr), m_icount(0)
4444{
4545}
4646
trunk/src/devices/cpu/i4004/i4004.cpp
r250317r250318
2828   : cpu_device(mconfig, I4004, "Intel I4004", tag, owner, clock, "i4004", __FILE__)
2929   , m_program_config("program", ENDIANNESS_LITTLE, 8, 12, 0)
3030   , m_io_config("io", ENDIANNESS_LITTLE, 8, 6, 0)
31   , m_data_config("data", ENDIANNESS_LITTLE, 8, 12, 0)
31   , m_data_config("data", ENDIANNESS_LITTLE, 8, 12, 0), m_A(0), m_C(0), m_TEST(0), m_flags(0), m_program(nullptr), m_direct(nullptr), m_data(nullptr), m_io(nullptr), m_icount(0), m_pc_pos(0), m_addr_mask(0)
3232{
3333   m_is_octal = true;
3434}
trunk/src/devices/cpu/i8089/i8089.cpp
r250317r250318
3838   m_ch1(*this, "1"),
3939   m_ch2(*this, "2"),
4040   m_write_sintr1(*this),
41   m_write_sintr2(*this),
41   m_write_sintr2(*this), m_databus_width(0), m_mem(nullptr), m_io(nullptr),
4242   m_sysbus(0),
4343   m_scb(0),
44   m_soc(0),
44   m_soc(0), m_initialized(false),
4545   m_master(false),
4646   m_current_tp(0),
4747   m_ca(0),
48   m_sel(0)
48   m_sel(0), m_last_chan(false)
4949{
5050}
5151
trunk/src/devices/cpu/i860/i860.cpp
r250317r250318
3636
3737i860_cpu_device::i860_cpu_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
3838   : cpu_device(mconfig, I860, "i860XR", tag, owner, clock, "i860xr", __FILE__)
39   , m_program_config("program", ENDIANNESS_LITTLE, 64, 32, 0)
39   , m_program_config("program", ENDIANNESS_LITTLE, 64, 32, 0), m_pc(0), m_merge(0), m_pin_bus_hold(0), m_pin_reset(0), m_exiting_readmem(0), m_exiting_ifetch(0), m_pc_updated(0), m_pending_trap(0), m_fir_gets_trap_addr(0), m_single_stepping(0), m_program(nullptr), m_ppc(0), m_icount(0)
4040{
4141}
4242
trunk/src/devices/cpu/i960/i960.cpp
r250317r250318
1818
1919i960_cpu_device::i960_cpu_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
2020   : cpu_device(mconfig, I960, "i960kb", tag, owner, clock, "i960kb", __FILE__)
21   , m_program_config("program", ENDIANNESS_LITTLE, 32, 32, 0)
21   , m_program_config("program", ENDIANNESS_LITTLE, 32, 32, 0), m_rcache_pos(0), m_SAT(0), m_PRCB(0), m_PC(0), m_AC(0), m_IP(0), m_PIP(0), m_ICR(0), m_bursting(0), m_immediate_irq(0),
22   m_immediate_vector(0), m_immediate_pri(0), m_program(nullptr), m_direct(nullptr), m_icount(0)
2223{
2324}
2425
trunk/src/devices/cpu/ie15/ie15.cpp
r250317r250318
3131ie15_device::ie15_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
3232   : cpu_device(mconfig, IE15, "ie15", tag, owner, clock, "ie15_cpu", __FILE__),
3333      m_program_config("program", ENDIANNESS_LITTLE, 8, 14),
34      m_io_config("io", ENDIANNESS_LITTLE, 8, 8),
35      m_program(0),
34      m_io_config("io", ENDIANNESS_LITTLE, 8, 8), m_A(0), m_CF(0), m_ZF(0), m_RF(0), m_flags(0),
35      m_program(0), m_io(nullptr),
3636      m_direct(0)
3737{
3838   // set our instruction counter
trunk/src/devices/cpu/m6502/m6502.cpp
r250317r250318
1818   cpu_device(mconfig, M6502, "M6502", tag, owner, clock, "m6502", __FILE__),
1919   sync_w(*this),
2020   program_config("program", ENDIANNESS_LITTLE, 8, 16),
21   sprogram_config("decrypted_opcodes", ENDIANNESS_LITTLE, 8, 16)
21   sprogram_config("decrypted_opcodes", ENDIANNESS_LITTLE, 8, 16), PPC(0), NPC(0), PC(0), SP(0), TMP(0), TMP2(0), A(0), X(0), Y(0), P(0), IR(0), inst_state_base(0), mintf(nullptr),
22   inst_state(0), inst_substate(0), icount(0), nmi_state(false), irq_state(false), apu_irq_state(false), v_state(false), irq_taken(false), sync(false), inhibit_interrupts(false)
2223{
2324   direct_disabled = false;
2425}
2526
2627m6502_device::m6502_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock, const char *shortname, const char *source) :
27   cpu_device(mconfig, type, name, tag, owner, clock, shortname, source),
28   cpu_device(mconfig, type, name, tag, owner, clock, shortname, source),
2829   sync_w(*this),
2930   program_config("program", ENDIANNESS_LITTLE, 8, 16),
30   sprogram_config("decrypted_opcodes", ENDIANNESS_LITTLE, 8, 16)
31   sprogram_config("decrypted_opcodes", ENDIANNESS_LITTLE, 8, 16), PPC(0), NPC(0), PC(0), SP(0), TMP(0), TMP2(0), A(0), X(0), Y(0), P(0), IR(0), inst_state_base(0), mintf(nullptr),
32   inst_state(0), inst_substate(0), icount(0), nmi_state(false), irq_state(false), apu_irq_state(false), v_state(false), irq_taken(false), sync(false), inhibit_interrupts(false)
3133{
3234   direct_disabled = false;
3335}
trunk/src/devices/cpu/m6502/m6509.cpp
r250317r250318
1414const device_type M6509 = &device_creator<m6509_device>;
1515
1616m6509_device::m6509_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) :
17   m6502_device(mconfig, M6509, "M6509", tag, owner, clock, "m6509", __FILE__)
17   m6502_device(mconfig, M6509, "M6509", tag, owner, clock, "m6509", __FILE__), XPC(0), bank_i(0), bank_y(0)
1818{
1919   program_config.m_addrbus_width = 20;
2020   program_config.m_logaddr_width = 20;
trunk/src/devices/cpu/m6502/m6510.cpp
r250317r250318
1616m6510_device::m6510_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) :
1717   m6502_device(mconfig, M6510, "M6510", tag, owner, clock, "m6510", __FILE__),
1818   read_port(*this),
19   write_port(*this)
19   write_port(*this), dir(0), port(0), drive(0)
2020{
2121   pullup = 0x00;
2222   floating = 0x00;
r250317r250318
2525m6510_device::m6510_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock, const char *shortname, const char *source) :
2626   m6502_device(mconfig, type, name, tag, owner, clock, shortname, source),
2727   read_port(*this),
28   write_port(*this)
28   write_port(*this), dir(0), port(0), drive(0)
2929{
3030   pullup = 0x00;
3131   floating = 0x00;
trunk/src/devices/cpu/m6502/m65ce02.cpp
r250317r250318
1414const device_type M65CE02 = &device_creator<m65ce02_device>;
1515
1616m65ce02_device::m65ce02_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) :
17   m65c02_device(mconfig, M65CE02, "M65CE02", tag, owner, clock, "m65ce02", __FILE__)
17   m65c02_device(mconfig, M65CE02, "M65CE02", tag, owner, clock, "m65ce02", __FILE__), TMP3(0), Z(0), B(0)
1818{
1919}
2020
2121m65ce02_device::m65ce02_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock, const char *shortname, const char *source) :
22   m65c02_device(mconfig, type, name, tag, owner, clock, shortname, source)
22   m65c02_device(mconfig, type, name, tag, owner, clock, shortname, source), TMP3(0), Z(0), B(0)
2323{
2424}
2525
trunk/src/devices/cpu/m6502/m740.cpp
r250317r250318
1414const device_type M740 = &device_creator<m740_device>;
1515
1616m740_device::m740_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) :
17   m6502_device(mconfig, M740, "M740", tag, owner, clock, "m740", __FILE__)
17   m6502_device(mconfig, M740, "M740", tag, owner, clock, "m740", __FILE__), m_irq_multiplex(0), m_irq_vector(0)
1818{
1919}
2020
2121m740_device::m740_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock, const char *shortname, const char *source) :
22   m6502_device(mconfig, type, name, tag, owner, clock, shortname, source)
22   m6502_device(mconfig, type, name, tag, owner, clock, shortname, source), m_irq_multiplex(0), m_irq_vector(0)
2323{
2424}
2525
trunk/src/devices/cpu/mb86233/mb86233.cpp
r250317r250318
2626mb86233_cpu_device::mb86233_cpu_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
2727   : cpu_device(mconfig, MB86233, "MB86233", tag, owner, clock, "mb86233", __FILE__)
2828   , m_program_config("program", ENDIANNESS_LITTLE, 32, 32, -2)
29   , m_data_config("data", ENDIANNESS_LITTLE, 32, 32, 0)
30   , m_fifo_read_cb(*this)
29   , m_data_config("data", ENDIANNESS_LITTLE, 32, 32, 0), m_pc(0), m_reps(0), m_pcsp(0), m_eb(0), m_shift(0), m_repcnt(0), m_sr(0),
30   m_fpucontrol(0), m_program(nullptr), m_direct(nullptr), m_icount(0), m_fifo_wait(0)
31     , m_fifo_read_cb(*this)
3132   , m_fifo_read_ok_cb(*this)
3233   , m_fifo_write_cb(*this)
33   , m_tablergn(NULL)
34   , m_Tables(NULL)
34   , m_tablergn(nullptr), m_ARAM(nullptr), m_BRAM(nullptr)
35     , m_Tables(nullptr)
3536{
3637}
3738
trunk/src/devices/cpu/mcs96/i8x9x.cpp
r250317r250318
1313
1414i8x9x_device::i8x9x_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock, const char *shortname, const char *source) :
1515   mcs96_device(mconfig, type, name, tag, owner, clock, 8, "i8x9x", __FILE__),
16   io_config("io", ENDIANNESS_LITTLE, 16, 16, -1)
16   io_config("io", ENDIANNESS_LITTLE, 16, 16, -1), io(nullptr), base_timer2(0), ad_done(0), hso_command(0), ad_command(0), hso_time(0), ad_result(0),
17   ios0(0), ios1(0), ioc0(0), ioc1(0), sbuf(0), sp_stat(0), serial_send_buf(0), serial_send_timer(0)
1718{
1819}
1920
trunk/src/devices/cpu/mcs96/mcs96.cpp
r250317r250318
1414
1515mcs96_device::mcs96_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock, int data_width, const char *shortname, const char *source) :
1616   cpu_device(mconfig, type, name, tag, owner, clock, shortname, source),
17   program_config("program", ENDIANNESS_LITTLE, data_width, 16)
17   program_config("program", ENDIANNESS_LITTLE, data_width, 16), program(nullptr), direct(nullptr), icount(0), bcount(0), inst_state(0), cycles_scaling(0), pending_irq(0),
18   PC(0), PPC(0), PSW(0), OP1(0), OP2(0), OP3(0), OPI(0), TMP(0), irq_requested(false)
1819{
1920}
2021
trunk/src/devices/cpu/melps4/m58846.cpp
r250317r250318
2525
2626// device definitions
2727m58846_device::m58846_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
28   : melps4_cpu_device(mconfig, M58846, "M58846", tag, owner, clock, 11, ADDRESS_MAP_NAME(program_2kx9), 7, ADDRESS_MAP_NAME(data_128x4), 12 /* number of D pins */, 2 /* subroutine page */, 1 /* interrupt page */, "m58846", __FILE__)
28   : melps4_cpu_device(mconfig, M58846, "M58846", tag, owner, clock, 11, ADDRESS_MAP_NAME(program_2kx9), 7, ADDRESS_MAP_NAME(data_128x4), 12 /* number of D pins */, 2 /* subroutine page */, 1 /* interrupt page */, "m58846", __FILE__), m_timer(nullptr)
2929{ }
3030
3131
trunk/src/devices/cpu/mn10200/mn10200.h
r250317r250318
4848   // construction/destruction
4949   mn10200_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock, address_map_constructor program, const char *shortname, const char *source)
5050      : cpu_device(mconfig, type, name, tag, owner, clock, shortname, source)
51      , m_program_config("program", ENDIANNESS_LITTLE, 16, 24, 0, program)
52      , m_read_port0(*this), m_read_port1(*this), m_read_port2(*this), m_read_port3(*this), m_read_port4(*this)
53      , m_write_port0(*this), m_write_port1(*this), m_write_port2(*this), m_write_port3(*this), m_write_port4(*this)
51      , m_program_config("program", ENDIANNESS_LITTLE, 16, 24, 0, program), m_program(nullptr)
52        , m_read_port0(*this), m_read_port1(*this), m_read_port2(*this), m_read_port3(*this), m_read_port4(*this)
53      , m_write_port0(*this), m_write_port1(*this), m_write_port2(*this), m_write_port3(*this), m_write_port4(*this), m_cycles(0), m_pc(0), m_psw(0), m_mdr(0), m_nmicr(0), m_iagr(0),
54      m_extmdl(0), m_extmdh(0), m_possible_irq(false), m_pplul(0), m_ppluh(0), m_p3md(0), m_p4(0)
5455   { }
5556
5657   // static configuration helpers
trunk/src/devices/cpu/pdp1/tx0.cpp
r250317r250318
4646
4747tx0_device::tx0_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock, const char *shortname, const char *source, int addr_bits, int address_mask, int ir_mask)
4848   : cpu_device(mconfig, type, name, tag, owner, clock, shortname, source)
49   , m_program_config("program", ENDIANNESS_BIG, 32, addr_bits , -2)
50   , m_address_mask(address_mask)
51   , m_ir_mask(ir_mask)
52   , m_cpy_handler(*this)
49   , m_program_config("program", ENDIANNESS_BIG, 32, addr_bits , -2), m_mbr(0), m_ac(0), m_mar(0), m_pc(0), m_ir(0), m_lr(0), m_xr(0), m_pf(0), m_tbr(0), m_tac(0), m_cm_sel(0),
50   m_lr_sel(0), m_gbl_cm_sel(0), m_stop_cyc0(0), m_stop_cyc1(0), m_run(0), m_rim(0), m_cycle(0), m_ioh(0), m_ios(0), m_rim_step(0)
51     , m_address_mask(address_mask)
52   , m_ir_mask(ir_mask), m_icount(0), m_program(nullptr)
53     , m_cpy_handler(*this)
5354   , m_r1l_handler(*this)
5455   , m_dis_handler(*this)
5556   , m_r3l_handler(*this)
trunk/src/devices/cpu/psx/dma.cpp
r250317r250318
2828const device_type PSX_DMA = &device_creator<psxdma_device>;
2929
3030psxdma_device::psxdma_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) :
31   device_t(mconfig, PSX_DMA, "Sony PSX DMA", tag, owner, clock, "psxdma", __FILE__),
31   device_t(mconfig, PSX_DMA, "Sony PSX DMA", tag, owner, clock, "psxdma", __FILE__), m_ram( ), m_ramsize(0), m_dpcp(0), m_dicr(0),
3232   m_irq_handler(*this)
3333{
3434}
trunk/src/devices/cpu/psx/irq.cpp
r250317r250318
3030const device_type PSX_IRQ = &device_creator<psxirq_device>;
3131
3232psxirq_device::psxirq_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) :
33   device_t(mconfig, PSX_IRQ, "Sony PSX IRQ", tag, owner, clock, "psxirq", __FILE__),
33   device_t(mconfig, PSX_IRQ, "Sony PSX IRQ", tag, owner, clock, "psxirq", __FILE__), n_irqdata(0), n_irqmask(0),
3434   m_irq_handler(*this)
3535{
3636}
trunk/src/devices/cpu/psx/mdec.cpp
r250317r250318
3131const device_type PSX_MDEC = &device_creator<psxmdec_device>;
3232
3333psxmdec_device::psxmdec_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
34   : device_t(mconfig, PSX_MDEC, "Sony PSX MDEC", tag, owner, clock, "psxmdec", __FILE__)
34   : device_t(mconfig, PSX_MDEC, "Sony PSX MDEC", tag, owner, clock, "psxmdec", __FILE__), n_decoded(0), n_offset(0), n_0_command(0), n_0_address(0), n_0_size(0), n_1_command(0), n_1_status(0)
3535{
3636}
3737
trunk/src/devices/cpu/psx/sio.cpp
r250317r250318
3939
4040psxsio_device::psxsio_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock, const char *shortname, const char *source) :
4141   device_t(mconfig, type, name, tag, owner, clock, shortname, source),
42   m_status(SIO_STATUS_TX_EMPTY | SIO_STATUS_TX_RDY),
43   m_rxd(1),
42   m_status(SIO_STATUS_TX_EMPTY | SIO_STATUS_TX_RDY), m_mode(0), m_control(0), m_baud(0),
43   m_rxd(1), m_tx_data(0), m_rx_data(0), m_tx_shift(0), m_rx_shift(0), m_tx_bits(0), m_rx_bits(0), m_timer(nullptr),
4444   m_irq_handler(*this),
4545   m_sck_handler(*this),
4646   m_txd_handler(*this),
trunk/src/devices/cpu/s2650/s2650.cpp
r250317r250318
3535   : cpu_device(mconfig, S2650, "S2650", tag, owner, clock, "s2650", __FILE__ )
3636   , m_program_config("program", ENDIANNESS_LITTLE, 8, 15)
3737   , m_io_config("io", ENDIANNESS_LITTLE, 8, 9)
38   , m_flag_handler(*this)
39   , m_halt(0)
40   , m_debugger_temp(0)
38   , m_flag_handler(*this), m_ppc(0), m_page(0), m_iar(0), m_ea(0), m_psl(0), m_psu(0), m_r(0)
39     , m_halt(0), m_ir(0), m_irq_state(0), m_icount(0), m_program(nullptr), m_direct(nullptr), m_io(nullptr)
40     , m_debugger_temp(0)
4141{
4242   memset(m_reg, 0x00, sizeof(m_reg));
4343}
trunk/src/devices/cpu/saturn/saturn.cpp
r250317r250318
5252   , m_unconfig_func(*this)
5353   , m_id_func(*this)
5454   , m_crc_func(*this)
55   , m_rsi_func(*this)
55   , m_rsi_func(*this), m_pc(0), m_oldpc(0), m_p(0), m_out(0), m_carry(0), m_decimal(0), m_st(0), m_hst(0), m_nmi_state(0), m_irq_state(0), m_irq_enable(0), m_in_irq(0),
56   m_pending_irq(0), m_sleeping(0), m_monitor_id(0), m_monitor_in(0), m_program(nullptr), m_direct(nullptr), m_icount(0), m_debugger_temp(0)
5657{
5758}
5859
trunk/src/devices/cpu/scmp/scmp.cpp
r250317r250318
2323
2424scmp_device::scmp_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
2525   : cpu_device(mconfig, SCMP, "INS 8050 SC/MP", tag, owner, clock, "ins8050", __FILE__)
26   , m_program_config("program", ENDIANNESS_LITTLE, 8, 16, 0)
27   , m_flag_out_func(*this)
26   , m_program_config("program", ENDIANNESS_LITTLE, 8, 16, 0), m_AC(0), m_ER(0), m_SR(0), m_program(nullptr), m_direct(nullptr), m_icount(0)
27     , m_flag_out_func(*this)
2828   , m_sout_func(*this)
2929   , m_sin_func(*this)
3030   , m_sensea_func(*this)
r250317r250318
3636
3737scmp_device::scmp_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock, const char *shortname, const char *source)
3838   : cpu_device(mconfig, type, name, tag, owner, clock, shortname, source)
39   , m_program_config("program", ENDIANNESS_LITTLE, 8, 16, 0)
40   , m_flag_out_func(*this)
39   , m_program_config("program", ENDIANNESS_LITTLE, 8, 16, 0), m_AC(0), m_ER(0), m_SR(0), m_program(nullptr), m_direct(nullptr), m_icount(0)
40     , m_flag_out_func(*this)
4141   , m_sout_func(*this)
4242   , m_sin_func(*this)
4343   , m_sensea_func(*this)
trunk/src/devices/cpu/se3208/se3208.cpp
r250317r250318
4444
4545se3208_device::se3208_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
4646   : cpu_device(mconfig, SE3208, "SE3208", tag, owner, clock, "se3208", __FILE__)
47   , m_program_config("program", ENDIANNESS_LITTLE, 32, 32, 0)
47   , m_program_config("program", ENDIANNESS_LITTLE, 32, 32, 0), m_PC(0), m_SR(0), m_SP(0), m_ER(0), m_PPC(0), m_program(nullptr), m_direct(nullptr), m_IRQ(0), m_NMI(0), m_icount(0)
4848{
4949}
5050
trunk/src/devices/cpu/sm8500/sm8500.cpp
r250317r250318
3737   , m_program_config("program", ENDIANNESS_BIG, 8, 16, 0)
3838   , m_dma_func(*this)
3939   , m_timer_func(*this)
40   , m_PC(0)
41   , m_SYS(0)
42   , m_SP(0)
40   , m_PC(0), m_IE0(0), m_IE1(0), m_IR0(0), m_IR1(0)
41     , m_SYS(0), m_CKC(0), m_clock_changed(0)
42     , m_SP(0)
4343   , m_PS0(0)
44   , m_PS1(0)
44   , m_PS1(0), m_IFLAGS(0), m_CheckInterrupts(0), m_halted(0), m_icount(0), m_program(nullptr), m_oldpc(0)
4545{
4646}
4747
trunk/src/devices/cpu/superfx/superfx.cpp
r250317r250318
1010superfx_device::superfx_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
1111   : cpu_device(mconfig, SUPERFX, "SuperFX", tag, owner, clock, "superfx", __FILE__)
1212   , m_program_config("program", ENDIANNESS_LITTLE, 8, 32, 0)
13   , m_out_irq_func(*this)
13   , m_out_irq_func(*this), m_pipeline(0), m_ramaddr(0), m_sfr(0), m_pbr(0), m_rombr(0), m_rambr(0), m_cbr(0), m_scbr(0), m_scmr(0), m_colr(0), m_por(0),
14   m_bramr(0), m_vcr(0), m_cfgr(0), m_clsr(0), m_romcl(0), m_romdr(0), m_ramcl(0), m_ramar(0), m_ramdr(0), m_sreg(nullptr), m_sreg_idx(0), m_dreg(nullptr),
15   m_dreg_idx(0), m_r15_modified(0), m_irq(0), m_cache_access_speed(0), m_memory_access_speed(0), m_program(nullptr), m_icount(0), m_debugger_temp(0)
1416{
1517}
1618
trunk/src/devices/cpu/tms34010/tms34010.cpp
r250317r250318
3636tms340x0_device::tms340x0_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock, const char *shortname)
3737   : cpu_device(mconfig, type, name, tag, owner, clock, shortname, __FILE__)
3838   , device_video_interface(mconfig, *this)
39   , m_program_config("program", ENDIANNESS_LITTLE, 16, 32, 3)
40   , m_halt_on_reset(FALSE)
41   , m_pixclock(0)
42   , m_pixperclock(0)
43   , m_output_int_cb(*this)
39   , m_program_config("program", ENDIANNESS_LITTLE, 16, 32, 3), m_pc(0), m_ppc(0), m_st(0), m_pixel_write(nullptr), m_pixel_read(nullptr), m_raster_op(nullptr), m_pixel_op(nullptr), m_pixel_op_timing(0), m_convsp(0), m_convdp(0), m_convmp(0), m_gfxcycles(0), m_pixelshift(0), m_is_34020(0), m_reset_deferred(false)
40     , m_halt_on_reset(FALSE), m_hblank_stable(0), m_external_host_access(0), m_executing(0), m_program(nullptr), m_direct(nullptr)
41     , m_pixclock(0)
42   , m_pixperclock(0), m_scantimer(nullptr), m_icount(0)
43     , m_output_int_cb(*this)
4444{
4545}
4646
trunk/src/devices/cpu/tms57002/tms57002.cpp
r250317r250318
2222
2323tms57002_device::tms57002_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
2424   : cpu_device(mconfig, TMS57002, "TMS57002", tag, owner, clock, "tms57002", __FILE__),
25      device_sound_interface(mconfig, *this),
25      device_sound_interface(mconfig, *this), macc(0), st0(0), st1(0), sti(0),
2626      txrd(0),
2727      program_config("program", ENDIANNESS_LITTLE, 32, 8, -2, ADDRESS_MAP_NAME(internal_pgm)),
2828      data_config("data", ENDIANNESS_LITTLE, 8, 20)
trunk/src/devices/cpu/unsp/unsp.cpp
r250317r250318
1818
1919unsp_device::unsp_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
2020   : cpu_device(mconfig, UNSP, "u'nSP", tag, owner, clock, "unsp", __FILE__)
21   , m_program_config("program", ENDIANNESS_BIG, 16, 23, -1)
21   , m_program_config("program", ENDIANNESS_BIG, 16, 23, -1), m_irq(0), m_fiq(0), m_curirq(0), m_sirq(0), m_sb(0), m_saved_sb(0), m_program(nullptr), m_icount(0), m_debugger_temp(0)
2222{
2323}
2424
trunk/src/devices/cpu/upd7725/upd7725.cpp
r250317r250318
2727necdsp_device::necdsp_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, UINT32 clock, UINT32 abits, UINT32 dbits, const char *name, const char *shortname, const char *source)
2828   : cpu_device(mconfig, type, name, tag, owner, clock, shortname, source),
2929      m_program_config("program", ENDIANNESS_BIG, 32, abits, -2), // data bus width, address bus width, -2 means DWORD-addressable
30      m_data_config("data", ENDIANNESS_BIG, 16, dbits, -1),   // -1 for WORD-addressable
30      m_data_config("data", ENDIANNESS_BIG, 16, dbits, -1), m_icount(0),   // -1 for WORD-addressable
3131      m_irq(0),
3232      m_program(NULL),
3333      m_data(NULL),
trunk/src/devices/cpu/z8000/z8000.cpp
r250317r250318
3737   : cpu_device(mconfig, Z8002, "Z8002", tag, owner, clock, "z8002", __FILE__)
3838   , m_program_config("program", ENDIANNESS_BIG, 16, 16, 0)
3939   , m_io_config("io", ENDIANNESS_BIG, 8, 16, 0)
40   , m_mo_out(*this)
41   , m_vector_mult(1)
40   , m_mo_out(*this), m_ppc(0), m_pc(0), m_psapseg(0), m_psapoff(0), m_fcw(0), m_refresh(0), m_nspseg(0), m_nspoff(0), m_irq_req(0), m_irq_vec(0), m_op_valid(0), m_nmi_state(0), m_mi(0), m_program(nullptr), m_data(nullptr), m_direct(nullptr), m_io(nullptr), m_icount(0)
41     , m_vector_mult(1)
4242{
4343}
4444
r250317r250318
4747   : cpu_device(mconfig, type, name, tag, owner, clock, shortname, source)
4848   , m_program_config("program", ENDIANNESS_BIG, 16, 20, 0)
4949   , m_io_config("io", ENDIANNESS_BIG, 16, 16, 0)
50   , m_mo_out(*this)
50   , m_mo_out(*this), m_ppc(0), m_pc(0), m_psapseg(0), m_psapoff(0), m_fcw(0), m_refresh(0), m_nspseg(0), m_nspoff(0), m_irq_req(0), m_irq_vec(0), m_op_valid(0), m_nmi_state(0), m_mi(0), m_program(nullptr), m_data(nullptr), m_direct(nullptr), m_io(nullptr), m_icount(0)
5151   , m_vector_mult(2)
5252{
5353}
trunk/src/devices/cpu/z8000/z8000tbl.inc
r250317r250318
8181{0x2100,0x210f, 1,2,  7,&z8002_device::Z21_0000_dddd_imm16,                     "ld      %rw3,%#w1",               0},
8282{0x2110,0x21ff, 1,1,  7,&z8002_device::Z21_ssN0_dddd,                           "ld      %rw3,@%rw2",              0},
8383{0x2200,0x220f, 1,2, 10,&z8002_device::Z22_0000_ssss_0000_dddd_0000_0000,       "resb    %rb5,%rw3",               0},
84{0x2210,0x22ff, 1,1, 11,&z8002_device::Z22_ddN0_imm4,                           "resb    @%rw3,%3",                0},
84{0x2210,0x22ff, 1,1, 11,&z8002_device::Z22_ddN0_imm4,                           "resb    @%rw2,%3",                0},
8585{0x2300,0x230f, 1,2, 10,&z8002_device::Z23_0000_ssss_0000_dddd_0000_0000,       "res     %rw5,%rw3",               0},
86{0x2310,0x23ff, 1,1, 11,&z8002_device::Z23_ddN0_imm4,                           "res     @%rw3,%3",                0},
86{0x2310,0x23ff, 1,1, 11,&z8002_device::Z23_ddN0_imm4,                           "res     @%rw2,%3",                0},
8787{0x2400,0x240f, 1,2, 10,&z8002_device::Z24_0000_ssss_0000_dddd_0000_0000,       "setb    %rb5,%rw3",               0},
88{0x2410,0x24ff, 1,1, 11,&z8002_device::Z24_ddN0_imm4,                           "setb    @%rw3,%3",                0},
88{0x2410,0x24ff, 1,1, 11,&z8002_device::Z24_ddN0_imm4,                           "setb    @%rw2,%3",                0},
8989{0x2500,0x250f, 1,2, 10,&z8002_device::Z25_0000_ssss_0000_dddd_0000_0000,       "set     %rw5,%rw3",               0},
90{0x2510,0x25ff, 1,1, 11,&z8002_device::Z25_ddN0_imm4,                           "set     @%rw3,%3",                0},
90{0x2510,0x25ff, 1,1, 11,&z8002_device::Z25_ddN0_imm4,                           "set     @%rw2,%3",                0},
9191{0x2600,0x260f, 1,2, 10,&z8002_device::Z26_0000_ssss_0000_dddd_0000_0000,       "bitb    %rb5,%rw3",               0},
92{0x2610,0x26ff, 1,1,  8,&z8002_device::Z26_ddN0_imm4,                           "bitb    @%rw3,%3",                0},
92{0x2610,0x26ff, 1,1,  8,&z8002_device::Z26_ddN0_imm4,                           "bitb    @%rw2,%3",                0},
9393{0x2700,0x270f, 1,2, 10,&z8002_device::Z27_0000_ssss_0000_dddd_0000_0000,       "bit     %rw5,%rw3",               0},
9494{0x2710,0x27ff, 1,1,  8,&z8002_device::Z27_ddN0_imm4,                           "bit     @%rw2,%3",                0},
9595{0x2810,0x28ff, 1,1, 11,&z8002_device::Z28_ddN0_imm4m1,                         "incb    @%rw2,%+3",               0},
trunk/src/devices/machine/40105.cpp
r250317r250318
3737cmos_40105_device::cmos_40105_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
3838   : device_t(mconfig, CMOS_40105, "40105", tag, owner, clock, "40105", __FILE__),
3939      m_write_dir(*this),
40      m_write_dor(*this)
40      m_write_dor(*this), m_d(0), m_q(0), m_dir(0), m_dor(0), m_si(0), m_so(0)
4141{
4242}
4343
trunk/src/devices/machine/68230pit.cpp
r250317r250318
3131      device_execute_interface (mconfig, *this)
3232      , m_icount (0)
3333      , m_write_pa (*this)
34      , m_write_h2 (*this)
35{
34      , m_write_h2 (*this), m_pgcr(0), m_psrr(0), m_paddr(0), m_pbddr(0), m_pcddr(0), m_pacr(0), m_pbcr(0), m_padr(0), m_pbdr(0), m_psr(0)
35   {
3636}
3737
3838
r250317r250318
4141      device_execute_interface (mconfig, *this)
4242      , m_icount (0)
4343      , m_write_pa (*this)
44      , m_write_h2 (*this)
45{
44      , m_write_h2 (*this), m_pgcr(0), m_psrr(0), m_paddr(0), m_pbddr(0), m_pcddr(0), m_pacr(0), m_pbcr(0), m_padr(0), m_pbdr(0), m_psr(0)
45   {
4646}
4747
4848//-------------------------------------------------
trunk/src/devices/machine/68561mpcc.cpp
r250317r250318
2828***************************************************************************/
2929
3030mpcc68561_t::mpcc68561_t(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) :
31   device_t(mconfig, MPCC68561, "Rockwell 68561 MPCC", tag, owner, clock, "mpcc68561", __FILE__),
31   device_t(mconfig, MPCC68561, "Rockwell 68561 MPCC", tag, owner, clock, "mpcc68561", __FILE__), mode(0), reg(0), status(0), IRQV(0), MasterIRQEnable(0), lastIRQStat(0), IRQType(),
3232   intrq_cb(*this)
3333{
3434}
trunk/src/devices/machine/7200fifo.cpp
r250317r250318
2121
2222fifo7200_device::fifo7200_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
2323   : device_t(mconfig, FIFO7200, "IDT7200 FIFO", tag, owner, clock, "fifo7200", __FILE__),
24      m_ram_size(0),
24      m_ram_size(0), m_read_ptr(0), m_write_ptr(0), m_ef(0), m_ff(0), m_hf(0),
2525      m_ef_handler(*this),
2626      m_ff_handler(*this),
2727      m_hf_handler(*this)
trunk/src/devices/machine/74123.cpp
r250317r250318
2929//-------------------------------------------------
3030
3131ttl74123_device::ttl74123_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
32   : device_t(mconfig, TTL74123, "74123 TTL", tag, owner, clock, "ttl74123", __FILE__),
32   : device_t(mconfig, TTL74123, "74123 TTL", tag, owner, clock, "ttl74123", __FILE__), m_timer(nullptr),
3333      m_connection_type(TTL74123_NOT_GROUNDED_NO_DIODE),
3434      m_res(1.0),
3535      m_cap(1.0),
trunk/src/devices/machine/74181.cpp
r250317r250318
3232   m_b(0),
3333   m_s(0),
3434   m_m(0),
35   m_c(0)
35   m_c(0), m_f(0), m_cn(0), m_g(0), m_p(0), m_equals(0)
3636{
3737}
3838
trunk/src/devices/machine/8530scc.cpp
r250317r250318
2626***************************************************************************/
2727
2828scc8530_t::scc8530_t(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) :
29   device_t(mconfig, SCC8530, "Zilog 8530 SCC (Legacy)", tag, owner, clock, "scc8530l", __FILE__),
29   device_t(mconfig, SCC8530, "Zilog 8530 SCC (Legacy)", tag, owner, clock, "scc8530l", __FILE__), mode(0), reg(0), status(0), IRQV(0), MasterIRQEnable(0), lastIRQStat(0), IRQType(),
3030   intrq_cb(*this)
3131{
3232}
trunk/src/devices/machine/aakart.cpp
r250317r250318
4040//-------------------------------------------------
4141
4242aakart_device::aakart_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
43   : device_t(mconfig, AAKART, "AAKART", tag, owner, clock, "aakart", __FILE__),
43   : device_t(mconfig, AAKART, "AAKART", tag, owner, clock, "aakart", __FILE__), m_rxtimer(nullptr), m_txtimer(nullptr), m_mousetimer(nullptr), m_keybtimer(nullptr),
4444      m_out_tx_cb(*this),
45      m_out_rx_cb(*this)
45      m_out_rx_cb(*this), m_tx_latch(0), m_rx(0), m_new_command(0), m_status(0), m_mouse_enable(0), m_keyb_enable(0), m_keyb_row(0), m_keyb_col(0), m_keyb_state(0)
4646{
4747}
4848
trunk/src/devices/machine/adc0808.cpp
r250317r250318
2929      m_address(0),
3030      m_start(0),
3131      m_eoc(0),
32      m_next_eoc(0),
32      m_next_eoc(0), m_sar(0),
3333      m_cycle(0),
34      m_bit(0)
34      m_bit(0), m_cycle_timer(nullptr)
3535{
3636}
3737
trunk/src/devices/machine/adc1038.cpp
r250317r250318
1616const device_type ADC1038 = &device_creator<adc1038_device>;
1717
1818adc1038_device::adc1038_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
19   : device_t(mconfig, ADC1038, "ADC1038", tag, owner, clock, "adc1038", __FILE__),
19   : device_t(mconfig, ADC1038, "ADC1038", tag, owner, clock, "adc1038", __FILE__), m_cycle(0), m_clk(0), m_adr(0), m_data_in(0), m_data_out(0), m_adc_data(0), m_sars(0),
2020      m_gticlub_hack(0)
2121{
2222}


Previous 199869 Revisions Next


© 1997-2024 The MAME Team