Previous 199869 Revisions Next

r40618 Sunday 6th September, 2015 at 22:17:46 UTC by R. Belmont
Merge pull request #309 from felipesanches/unitron_ap2ti

Adding Unitron APII+ (Teclado Inteligente) as another brazilian apple 2 clone …
[src/mame/drivers]goldstar.c
[src/mess/drivers]orao.c
[src/mess/includes]orao.h
[src/mess/machine]orao.c
[src/osd/modules/render]drawogl.c

trunk/src/mame/drivers/goldstar.c
r249129r249130
17411741   PORT_INCLUDE( cmv4_service )
17421742
17431743   PORT_START("DSW1")
1744   PORT_DIPNAME( 0x01, 0x01, DEF_STR( Unused ) )   PORT_DIPLOCATION("DSW1:1")  /* OK */
1744   PORT_DIPNAME( 0x01, 0x01, DEF_STR( Unused ) )           PORT_DIPLOCATION("DSW1:1")  /* OK */
17451745   PORT_DIPSETTING(    0x01, DEF_STR( Off ) )
17461746   PORT_DIPSETTING(    0x00, DEF_STR( On ) )
1747   PORT_DIPNAME( 0x02, 0x02, "Hopper Out Switch" ) PORT_DIPLOCATION("DSW1:2")  /* OK */
1747   PORT_DIPNAME( 0x02, 0x02, "Hopper Out Switch" )         PORT_DIPLOCATION("DSW1:2")  /* OK */
17481748   PORT_DIPSETTING(    0x02, "Active Low" )
17491749   PORT_DIPSETTING(    0x00, "Active High" )
1750   PORT_DIPNAME( 0x04, 0x00, "Payout Mode" )       PORT_DIPLOCATION("DSW1:3")  /* OK */
1750   PORT_DIPNAME( 0x04, 0x00, "Payout Mode" )               PORT_DIPLOCATION("DSW1:3")  /* OK */
17511751   PORT_DIPSETTING(    0x04, "Payout Switch" )
17521752   PORT_DIPSETTING(    0x00, "Automatic" )
1753   PORT_DIPNAME( 0x08, 0x00, "W-UP '7'" )          PORT_DIPLOCATION("DSW1:4")  /* not checked */
1754   PORT_DIPSETTING(    0x08, "Loss" )
1755   PORT_DIPSETTING(    0x00, "Even" )
1756   PORT_DIPNAME( 0x10, 0x00, "W-UP Pay Rate" )     PORT_DIPLOCATION("DSW1:5")  /* OK */
1753   PORT_DIPNAME( 0x08, 0x00, "'7' In Double Up Game" )     PORT_DIPLOCATION("DSW1:4")  /* OK */
1754   PORT_DIPSETTING(    0x08, "Even" )
1755   PORT_DIPSETTING(    0x00, "Loss" )
1756   PORT_DIPNAME( 0x10, 0x00, "Double Up Game Pay Rate" )   PORT_DIPLOCATION("DSW1:5")  /* OK */
17571757   PORT_DIPSETTING(    0x00, "80%" )
17581758   PORT_DIPSETTING(    0x10, "90%" )
1759   PORT_DIPNAME( 0x20, 0x00, "W-UP Game" )         PORT_DIPLOCATION("DSW1:6")  /* OK */
1759   PORT_DIPNAME( 0x20, 0x00, "Double Up Game" )            PORT_DIPLOCATION("DSW1:6")  /* OK */
17601760   PORT_DIPSETTING(    0x20, DEF_STR( Off ) )
17611761   PORT_DIPSETTING(    0x00, DEF_STR( On ) )
1762   PORT_DIPNAME( 0xc0, 0xc0, "Bet Max" )           PORT_DIPLOCATION("DSW1:7,8")    /* OK */
1762   PORT_DIPNAME( 0xc0, 0xc0, "Bet Max" )                   PORT_DIPLOCATION("DSW1:7,8")    /* OK */
17631763   PORT_DIPSETTING(    0x00, "8" )
17641764   PORT_DIPSETTING(    0x40, "16" )
17651765   PORT_DIPSETTING(    0x80, "32" )
r249129r249130
17871787
17881788   PORT_INCLUDE( cmv4_dsw5 )
17891789   PORT_MODIFY("DSW5")
1790   PORT_DIPNAME( 0x01, 0x01, DEF_STR( Unknown ) )  PORT_DIPLOCATION("DSW5:1")  /* normally Display of Doll On Demo, but no whores in this set */
1790   PORT_DIPNAME( 0x01, 0x01, DEF_STR( Unknown ) )              PORT_DIPLOCATION("DSW5:1")  /* normally Display of Doll On Demo, but no whores in this set */
17911791   PORT_DIPSETTING(    0x01, DEF_STR( Off ) )
17921792   PORT_DIPSETTING(    0x00, DEF_STR( On ) )
17931793   /* Coin In Limit OK */
17941794   /* Condition For 3 Kind Of Bonus not checked */
1795   PORT_DIPNAME( 0x20, 0x20, DEF_STR( Unknown ) )  PORT_DIPLOCATION("DSW5:6")  /* normally Display Of Doll At All Fr. Bonus, but no whores in this set */
1796   PORT_DIPSETTING(    0x20, DEF_STR( Off ) )
1797   PORT_DIPSETTING(    0x00, DEF_STR( On ) )
1798   PORT_DIPNAME( 0x40, 0x40, "Skill Stop" )        PORT_DIPLOCATION("DSW5:7")  /* OK */
1795   PORT_DIPNAME( 0x20, 0x20, "Show Odds In Double Up Game" )   PORT_DIPLOCATION("DSW5:6")  /* OK */
1796   PORT_DIPSETTING(    0x00, DEF_STR( Off ) )
1797   PORT_DIPSETTING(    0x20, DEF_STR( On ) )
1798   PORT_DIPNAME( 0x40, 0x40, "Skill Stop" )                    PORT_DIPLOCATION("DSW5:7")  /* OK */
17991799   PORT_DIPSETTING(    0x40, DEF_STR( Off ) )
18001800   PORT_DIPSETTING(    0x00, DEF_STR( On ) )
1801   PORT_DIPNAME( 0x80, 0x80, DEF_STR( Unknown ) )  PORT_DIPLOCATION("DSW5:8")  /* normally Test Mode For Disp. Of Doll, but no whores in this set */
1801   PORT_DIPNAME( 0x80, 0x80, DEF_STR( Unknown ) )              PORT_DIPLOCATION("DSW5:8")  /* normally Test Mode For Disp. Of Doll, but no whores in this set */
18021802   PORT_DIPSETTING(    0x80, DEF_STR( Off ) )
18031803   PORT_DIPSETTING(    0x00, DEF_STR( On ) )
18041804INPUT_PORTS_END
trunk/src/mess/drivers/orao.c
r249129r249130
1414
1515#include "emu.h"
1616#include "cpu/m6502/m6502.h"
17#include "sound/dac.h"
17#include "sound/speaker.h"
1818#include "sound/wave.h"
1919#include "includes/orao.h"
2020#include "imagedev/cassette.h"
r249129r249130
183183
184184   /* audio hardware */
185185   MCFG_SPEAKER_STANDARD_MONO("mono")
186   MCFG_SOUND_ADD("dac", DAC, 0)
187   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 8.00)
186   MCFG_SOUND_ADD("speaker", SPEAKER_SOUND, 0)
187   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.50)
188188   MCFG_SOUND_WAVE_ADD(WAVE_TAG, "cassette")
189189   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25)
190190
trunk/src/mess/includes/orao.h
r249129r249130
88
99#ifndef ORAO_H_
1010#define ORAO_H_
11#include "sound/dac.h"
11#include "sound/speaker.h"
1212#include "imagedev/cassette.h"
1313
1414class orao_state : public driver_device
r249129r249130
1919      m_memory(*this, "memory"),
2020      m_video_ram(*this, "video_ram"),
2121      m_maincpu(*this, "maincpu"),
22      m_dac(*this, "dac"),
22      m_speaker(*this, "speaker"),
2323      m_cassette(*this, "cassette"),
24      m_line(*this, "LINE")
24      m_line(*this, "LINE"),
25      m_beep(0)
2526   { }
2627
2728   DECLARE_READ8_MEMBER(orao_io_r);
r249129r249130
3637   required_shared_ptr<UINT8> m_memory;
3738   required_shared_ptr<UINT8> m_video_ram;
3839   required_device<cpu_device> m_maincpu;
39   required_device<dac_device> m_dac;
40   required_device<speaker_sound_device> m_speaker;
4041   required_device<cassette_image_device> m_cassette;
4142   required_ioport_array<20> m_line;
43   UINT8 m_beep;
4244};
4345
4446#endif /* ORAO_H_ */
trunk/src/mess/machine/orao.c
r249129r249130
7474{
7575   if (offset == 0x0800)
7676   {
77      m_dac->write_unsigned8(data); //beeper
77      m_speaker->level_w(m_beep);
78      m_beep ^= 1;
7879   }
7980}
trunk/src/osd/modules/render/drawogl.c
r249129r249130
31173117         GL_CHECK_ERROR_NORMAL();
31183118         glViewport(0.0, 0.0, (GLsizei)texture->rawwidth, (GLsizei)texture->rawheight);
31193119      }
3120      else if ( shaderIdx==m_glsl_program_mb2sc )
3120
3121      if ( shaderIdx==m_glsl_program_mb2sc )
31213122      {
31223123         assert ( m_glsl_program_mb2sc < m_glsl_program_num-1 );
31233124         glPopAttrib(); // glViewport(0.0, 0.0, (GLsizei)window().width, (GLsizei)window().height)


Previous 199869 Revisions Next


© 1997-2024 The MAME Team