Previous 15994 Revisions Next

r9341 Friday 8th October, 2010 at 21:35:01 UTC by Tafoid
Standards and Practices cleanup
[src/mame/drivers]megadriv.c
[src/mess/drivers]arcadia.c vc4000.c
[src/mess/video]m6845.c
[src/tools]chdcd.c

src/mame/drivers/megadriv.c
r9340r9341
36203620
36213621
36223622/* the 32x treats everything as 16-bit registers, so we remap the 32-bit read & writes
3623   to 2x 16-bit handlers here (TODO: nuke this shit) */
3623   to 2x 16-bit handlers here (TODO: nuke this eventually) */
36243624
36253625#define _32X_MAP_READHANDLERS(NAMEA,NAMEB)                                          \
36263626static READ32_HANDLER( _32x_sh2_##NAMEA##_##NAMEB##_r )                             \
src/tools/chdcd.c
r9340r9341
429429                  core_file *fhand;
430430
431431                  err = core_fopen(lastfname, OPEN_FLAG_READ, &fhand);
432                  if (err != FILERR_NONE) printf("holy shit!\n");
432                  if (err != FILERR_NONE) printf("holy moley!\n");
433433                  else core_fclose(fhand);
434434
435435                  printf("ERROR: couldn't read [%s] or not a valid .WAV\n", lastfname);
src/mess/video/m6845.c
r9340r9341
419419/* clock the 6845 */
420420void m6845_clock(running_machine *machine)
421421{
422   /* KT - I think the compiler might generate shit code when using "%" operator! */
422   /* KT - I think the compiler might generate bogus code when using "%" operator! */
423423   /*crtc.Memory_Address=(crtc.Memory_Address+1)%0x4000;*/
424424   crtc.Memory_Address=(crtc.Memory_Address+1)&0x03fff;
425425
src/mess/drivers/arcadia.c
r9340r9341
202202/* FIXME: the joystick are analog - the actual definition is merely an hack */
203203
204204#if 0
205    // shit, auto centering too slow, so only using 5 bits, and scaling at videoside
205    // auto centering too slow, so only using 5 bits, and scaling at videoside
206206    PORT_START("controller1_joy_x")
207207    PORT_BIT( 0x1fe,0x10,IPT_AD_STICK_X)
208208    PORT_SENSITIVITY(1)
r9340r9341
341341/* FIXME: the joystick are analog - the actual definition is merely an hack */
342342
343343#if 0
344    // shit, auto centering too slow, so only using 5 bits, and scaling at videoside
344    // auto centering too slow, so only using 5 bits, and scaling at videoside
345345    PORT_START("controller1_joy_x")
346346    PORT_BIT( 0x1fe,0x10,IPT_AD_STICK_X)
347347    PORT_SENSITIVITY(1)
src/mess/drivers/vc4000.c
r9340r9341
143143   PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_KEYPAD ) PORT_NAME("P2 Keypad 9") PORT_CODE(KEYCODE_E)
144144   PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_KEYPAD ) PORT_NAME("P2 Keypad Clear") PORT_CODE(KEYCODE_R)
145145#ifndef ANALOG_HACK
146    // shit, auto centering too slow, so only using 5 bits, and scaling at videoside
146    // auto centering too slow, so only using 5 bits, and scaling at videoside
147147    PORT_START("JOY1_X")
148148PORT_BIT(0xff,0x70,IPT_AD_STICK_X) PORT_SENSITIVITY(70) PORT_KEYDELTA(5) PORT_CENTERDELTA(0) PORT_MINMAX(20,225) PORT_CODE_DEC(KEYCODE_LEFT) PORT_CODE_INC(KEYCODE_RIGHT) PORT_CODE_DEC(JOYCODE_X_LEFT_SWITCH) PORT_CODE_INC(JOYCODE_X_RIGHT_SWITCH) PORT_PLAYER(1)
149149    PORT_START("JOY1_Y")

Previous 15994 Revisions Next


© 1998-2018 The MESS Team