Previous 199869 Revisions Next

r37055 Thursday 9th April, 2015 at 22:19:51 UTC by Jonathan Gevaryahu
Rearrange hmcs40 chips in comment to note that hd38800 A and B revisions appear to have separate sets of die/mask IDs (n/w)
[src/emu/sound]l7a1045_l6028_dsp_a.c
[src/mess/drivers]hh_hmcs40.c
[src/osd/modules/debugger/osx]debugconsole.m
[src/osd/sdl]aueffectutil.m

trunk/src/emu/sound/l7a1045_l6028_dsp_a.c
r245566r245567
7373
7474   Sample data format TBA
7575
76   TODO:
77   - Sample format needs to be double checked;
78   - Octave Control/BPM/Pitch, right now XRally Network BGM wants 66150 Hz which is definitely too fast for Terry Bogard speech;
79   - Key Off;
80   - ADSR (registers 2 & 4?);
81   
8276***************************************************************************/
8377
8478#include "emu.h"
r245566r245567
116110void l7a1045_sound_device::device_start()
117111{
118112   /* Allocate the stream */
119   m_stream = stream_alloc(0, 2, 66150); //clock() / 384);
113   m_stream = stream_alloc(0, 2, 44100); //clock() / 384);
120114
121115   m_rom = m_region->base();
122116   m_rom_size = m_region->bytes();
r245566r245567
170164
171165
172166            data = m_rom[(start + pos) & (m_rom_size-1)];
173            sample = ((INT8)(data & 0xfc)) << (3 - (data & 3));
167            sample = (INT8)data;
174168            frac += step;
175169
176            outputs[0][j] += ((sample * vptr->l_volume) >> 9);
177            outputs[1][j] += ((sample * vptr->r_volume) >> 9);
170            outputs[0][j] += ((sample * vptr->l_volume) >> 8);
171            outputs[1][j] += ((sample * vptr->r_volume) >> 8);
178172         }
179173
180174         vptr->pos = pos;
r245566r245567
328322   {
329323      l7a1045_voice *vptr = &m_voice[m_audiochannel];
330324
331      #if 0
325      #if 1
332326      if(vptr->start != 0)
333327      {
334328      printf("%08x START\n",vptr->start);
trunk/src/mess/drivers/hh_hmcs40.c
r245566r245567
1515 *62      HD38750A  1982, Actronics(Hanzawa) Pack'n Maze
1616
1717 *04      HD38800A  1980, Gakken Heiankyo Alien
18 @25      HD38800A  1981, Coleco Alien Attack
19 @27      HD38800A  1981, Bandai Packri Monster (DM-21Z)
20 *51      HD38800A  1981, Actronics(Hanzawa) Twinvader
21 @70      HD38800A  1982, Coleco Galaxian
22 
1823 @23      HD38800B  1982, Tomy Kingman (THF-01II)
1924 *24      HD38800B  1982, Actronics(Hanzawa) Wanted G-Man
20 @25      HD38800A  1981, Coleco Alien Attack
21 @27      HD38800A  1981, Bandai Packri Monster (DM-21Z)
2225 *29      HD38800B  1984, Tomy Portable 6000 Bombman
2326 *35      HD38800B  1983, Bandai Gundam vs Gelgoog Zaku
2427 *43      HD38800B  1983, Bandai Dokodemo Dorayaki Doraemon
25 *51      HD38800A  1981, Actronics(Hanzawa) Twinvader
26 @70      HD38800A  1982, Coleco Galaxian
2728
2829 @13      HD38820A  1981, Entex Galaxian 2
2930 @23      HD38820A  1981, Entex Pac Man 2
trunk/src/osd/modules/debugger/osx/debugconsole.m
r245566r245567
132132   [window makeFirstResponder:commandField];
133133
134134   // calculate the optimal size for everything
135   NSRect const   available = [[NSScreen mainScreen] visibleFrame];
136   NSSize const   regCurrent = [regScroll frame].size;
137   NSSize const   regSize = [NSScrollView frameSizeForContentSize:[regView maximumFrameSize]
138                                   hasHorizontalScroller:YES
139                                    hasVerticalScroller:YES
140                                           borderType:[regScroll borderType]];
141   NSSize const   dasmCurrent = [dasmScroll frame].size;
142   NSSize const   dasmSize = [NSScrollView frameSizeForContentSize:[dasmView maximumFrameSize]
143                                   hasHorizontalScroller:YES
144                                    hasVerticalScroller:YES
145                                           borderType:[dasmScroll borderType]];
146   NSSize const   consoleCurrent = [consoleContainer frame].size;
147   NSSize         consoleSize = [NSScrollView frameSizeForContentSize:[consoleView maximumFrameSize]
148                                      hasHorizontalScroller:YES
149                                       hasVerticalScroller:YES
150                                              borderType:[consoleScroll borderType]];
151   NSRect         windowFrame = [window frame];
152   NSSize         adjustment;
135   NSRect   available = [[NSScreen mainScreen] visibleFrame];
136   NSRect   windowFrame = [window frame];
137   NSSize   regCurrent = [regScroll frame].size;
138   NSSize   regSize = [NSScrollView frameSizeForContentSize:[regView maximumFrameSize]
139                             hasHorizontalScroller:YES
140                              hasVerticalScroller:YES
141                                     borderType:[regScroll borderType]];
142   NSSize   dasmCurrent = [dasmScroll frame].size;
143   NSSize   dasmSize = [NSScrollView frameSizeForContentSize:[dasmView maximumFrameSize]
144                             hasHorizontalScroller:YES
145                              hasVerticalScroller:YES
146                                     borderType:[dasmScroll borderType]];
147   NSSize   consoleCurrent = [consoleContainer frame].size;
148   NSSize   consoleSize = [NSScrollView frameSizeForContentSize:[consoleView maximumFrameSize]
149                                hasHorizontalScroller:YES
150                                 hasVerticalScroller:YES
151                                        borderType:[consoleScroll borderType]];
152   NSSize   adjustment;
153153
154154   consoleSize.width += consoleCurrent.width - [consoleScroll frame].size.width;
155155   consoleSize.height += consoleCurrent.height - [consoleScroll frame].size.height;
trunk/src/osd/sdl/aueffectutil.m
r245566r245567
306306
307307   [self loadEffectUI];
308308   if (nil != restoreFrame)
309   {
310309      [window setFrameFromString:restoreFrame];
311   }
312   else
313   {
314      NSRect const available = [[NSScreen mainScreen] visibleFrame];
315      NSRect frame = [window frame];
316      frame.origin.x = (NSWidth(available) - NSWidth(frame)) / 4;
317      frame.origin.y = (NSHeight(available) - NSHeight(frame)) * 3 / 4;
318      [window setFrame:frame display:YES animate:NO];
319   }
320310}
321311
322312- (BOOL)readFromData:(NSData *)data ofType:(NSString *)type error:(NSError **)error {
r245566r245567
846836   item = [parent addItemWithTitle:@"Help" action:NULL keyEquivalent:@""];
847837   [parent setSubmenu:menu forItem:item];
848838   [menu release];
849   [menu setValue:@"NSHelpMenu" forKey:@"name"];
850   if ([NSApp respondsToSelector:@selector(setHelpMenu:)])
851      [NSApp performSelector:@selector(setHelpMenu:) withObject:menu];
839   [NSApp setHelpMenu:menu];
852840
853841   item = [menu addItemWithTitle:[NSString stringWithFormat:@"%@ Help", appName] action:@selector(showHelp:) keyEquivalent:@"?"];
854842}


Previous 199869 Revisions Next


© 1997-2024 The MAME Team