Previous 199869 Revisions Next

r31052 Friday 20th June, 2014 at 20:27:26 UTC by Tafoid
(MESS) New skeleton driver:
---------------------------
Intelbras TI630 telephone  [Felipe Sanches]

Fixed current/prior submissions for proper license attribution (nw) 
[src/emu/cpu/avr8]avr8.c
[src/mess]mess.lst mess.mak
[src/mess/drivers]hprot1.c pve500.c replicator.c ti630.c*

trunk/src/emu/cpu/avr8/avr8.c
r31051r31052
1/*
1// license:MAME
2// copyright-holders: Ryan Holtz (Mooglyguy), Sandro Ronco, Felipe Sanches
3/***************************************************************************
4
25    Atmel 8-bit AVR simulator
36
47    - Notes -
trunk/src/mess/drivers/replicator.c
r31051r31052
11// license:MAME|GPL-2.0+
2// copyright-holders:Felipe Correa
2// copyright-holders:Felipe Sanches
33/*
44  Replicator 1 desktop 3d printer
55
66  driver by Felipe Correa da Silva Sanches <fsanches@metamaquina.com.br>
77
8  Licensed under GPLv2 or later.
9
10  NOTE: Even though the MAME/MESS project has been adopting a non-commercial additional licensing clause, I do allow commercial usage of my portion of the code according to the plain terms of the GPL license (version 2 or later). This is useful if you happen to use my code in another project or in case the other MAME/MESS developers happen to drop the non-comercial clause completely. I suggest that other developers consider doing the same. --Felipe Sanches
11
128Changelog:
139
1410 2013 DEC 28 [Felipe Sanches]:
trunk/src/mess/drivers/ti630.c
r0r31052
1// license:MAME|GPL-2.0+
2// copyright-holders: Felipe Sanches
3/***************************************************************************
4
5  Intelbras TI630 telephone
6  Driver by Felipe Correa da Silva Sanches <juca@members.fsf.org>
7
8  http://images.quebarato.com.br/T440x/telefone+ks+ti+630+seminovo+intelbras+sao+paulo+sp+brasil__2E255D_1.jpg
9
10  Changelog:
11
12   2014 JUN 17 [Felipe Sanches]:
13   * Initial driver skeleton
14   * LCD works
15
16================
17   Messages displayed on screen are in brazilian portuguese.
18    During boot, it says:
19
20"TI auto-test."
21"Wait!"
22
23   Then it says:
24
25"Initializing..."
26"Wait!"
27
28   And finally:
29
30"TI did not receive"
31"the dial tone"
32
33It means we probably would have to emulate a modem device for it to treat communications with a PABX phone hub.
34================
35*/
36
37#include "emu.h"
38#include "cpu/mcs51/mcs51.h"
39#include "video/hd44780.h"
40#include "rendlay.h"
41
42class ti630_state : public driver_device
43{
44public:
45   ti630_state(const machine_config &mconfig, device_type type, const char *tag)
46      : driver_device(mconfig, type, tag)
47      , m_maincpu(*this, "maincpu")
48      , m_lcdc(*this, "hd44780")
49   { }
50
51   DECLARE_WRITE8_MEMBER(ti630_io_w);
52   DECLARE_READ8_MEMBER(ti630_io_r);
53   DECLARE_DRIVER_INIT(ti630);
54   DECLARE_PALETTE_INIT(ti630);
55private:
56   virtual void machine_start();
57   virtual void machine_reset();
58   required_device<cpu_device> m_maincpu;
59   required_device<hd44780_device> m_lcdc;
60};
61
62#define LOG_IO_PORTS 0
63
64static ADDRESS_MAP_START(i80c31_prg, AS_PROGRAM, 8, ti630_state)
65   AM_RANGE(0x0000, 0xffff) AM_ROM
66ADDRESS_MAP_END
67
68DRIVER_INIT_MEMBER( ti630_state, ti630 )
69{
70}
71
72static ADDRESS_MAP_START(i80c31_io, AS_IO, 8, ti630_state)
73   AM_RANGE(0x0000,0x0000) /*AM_MIRROR(?)*/ AM_DEVWRITE("hd44780", hd44780_device, control_write)
74   AM_RANGE(0x1000,0x1000) /*AM_MIRROR(?)*/ AM_DEVWRITE("hd44780", hd44780_device, data_write)
75   AM_RANGE(0x2000,0x2000) /*AM_MIRROR(?)*/ AM_DEVREAD("hd44780", hd44780_device, control_read)
76   AM_RANGE(0x8000,0xffff) AM_RAM /*TODO: verify the ammont of RAM and the correct address range to which it is mapped. This is just a first reasonable guess that apparently yields good results in the emulation */
77
78   AM_RANGE(MCS51_PORT_P0, MCS51_PORT_P3) AM_READWRITE(ti630_io_r, ti630_io_w)
79ADDRESS_MAP_END
80
81void ti630_state::machine_start()
82{
83}
84
85void ti630_state::machine_reset()
86{
87}
88
89READ8_MEMBER(ti630_state::ti630_io_r)
90{
91   switch (offset)
92   {
93      case 0x01:
94      {
95         UINT8 value = 0;
96#if LOG_IO_PORTS
97         printf("P1 read value:%02X\n", value);
98#endif
99         return value;
100      }
101      default:
102#if LOG_IO_PORTS
103         printf("Unhandled I/O Read at offset 0x%02X (return 0)\n", offset);
104#endif
105         return 0;
106   }
107}
108
109WRITE8_MEMBER(ti630_state::ti630_io_w)
110{
111    static UINT8 p0=0, p1=0, p2=0, p3=0;
112    switch (offset)
113    {
114        case 0x00:
115        {
116            if (data != p0)
117            {
118                p0=data;
119#if LOG_IO_PORTS
120                printf("Write to P0: %02X\n", data);
121#endif
122            }
123            break;
124        }
125        case 0x01:
126        {
127            if (data != p1)
128            {
129                p1=data;
130#if LOG_IO_PORTS
131                printf("Write to P1: %02X\n", data);
132#endif
133            }
134            break;
135        }
136        case 0x02:
137        {
138            if (data != p2)
139            {
140                p2=data;
141#if LOG_IO_PORTS
142                printf("Write to P2: %02X\n", data);
143#endif
144            }
145            break;
146        }
147        case 0x03:
148        {
149            if (data != p3)
150            {
151                p3=data;
152#if LOG_IO_PORTS
153                printf("Write to P3: %02X\n", data);
154#endif
155            }
156            break;
157        }
158    }
159}
160
161PALETTE_INIT_MEMBER(ti630_state, ti630)
162{
163   palette.set_pen_color(0, rgb_t(138, 146, 148));
164   palette.set_pen_color(1, rgb_t(92, 83, 88));
165}
166
167static const gfx_layout ti630_charlayout =
168{
169   5, 8,                   /* 5 x 8 characters */
170   256,                    /* 256 characters */
171   1,                      /* 1 bits per pixel */
172   { 0 },                  /* no bitplanes */
173   { 3, 4, 5, 6, 7},
174   { 0, 8, 2*8, 3*8, 4*8, 5*8, 6*8, 7*8},
175   8*8                     /* 8 bytes */
176};
177
178static GFXDECODE_START( ti630 )
179   GFXDECODE_ENTRY( "hd44780:cgrom", 0x0000, ti630_charlayout, 0, 1 )
180GFXDECODE_END
181
182static MACHINE_CONFIG_START( ti630, ti630_state )
183   /* basic machine hardware */
184   MCFG_CPU_ADD("maincpu", I80C31, XTAL_10MHz)
185   MCFG_CPU_PROGRAM_MAP(i80c31_prg)
186   MCFG_CPU_IO_MAP(i80c31_io)
187
188   /* video hardware */
189   MCFG_SCREEN_ADD("screen", LCD)
190   MCFG_SCREEN_REFRESH_RATE(50)
191   MCFG_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500)) /* not accurate */
192   MCFG_SCREEN_UPDATE_DEVICE("hd44780", hd44780_device, screen_update)
193   MCFG_SCREEN_SIZE(6*16, 9*2)
194   MCFG_SCREEN_VISIBLE_AREA(0, 6*16-1, 0, 9*2-1)
195   MCFG_SCREEN_PALETTE("palette")
196
197   MCFG_DEFAULT_LAYOUT(layout_lcd)
198   MCFG_PALETTE_ADD("palette", 2)
199   MCFG_PALETTE_INIT_OWNER(ti630_state, ti630)
200   MCFG_GFXDECODE_ADD("gfxdecode", "palette", ti630)
201
202   MCFG_HD44780_ADD("hd44780")
203   MCFG_HD44780_LCD_SIZE(2, 16)
204MACHINE_CONFIG_END
205
206ROM_START( ti630 )
207   ROM_REGION( 0x10000, "maincpu", 0 )
208   ROM_LOAD( "ti630.ci11",  0x00000, 0x10000, CRC(2602cbdc) SHA1(98266bea52a5893e0af0b5872eca0a0a1e0c5f9c) )
209ROM_END
210
211/*    YEAR  NAME      PARENT  COMPAT  MACHINE     INPUT     CLASS         INIT    COMPANY  FULLNAME                       FLAGS */
212COMP( 1999, ti630,   0,      0,      ti630,     0,   ti630_state, ti630, "Intelbras", "TI630 telephone",    GAME_IMPERFECT_GRAPHICS | GAME_NO_SOUND)
Property changes on: trunk/src/mess/drivers/ti630.c
Added: svn:eol-style
   + native
Added: svn:mime-type
   + text/plain
trunk/src/mess/drivers/hprot1.c
r31051r31052
1// license:MAME|GPL-2.0+
2// copyright-holders: Felipe Sanches
13/***************************************************************************
24
35  HENRY Prot I/II - brazilian document timestamp printers
r31051r31052
68  Driver by Felipe Sanches
79  Technical info at https://www.garoa.net.br/wiki/HENRY
810
9  Licensed under GPLv2 or later.
10
11  NOTE: Even though the MAME/MESS project has been adopting a non-commercial additional licensing clause, I do allow commercial usage of my portion of the code according to the plain terms of the GPL license (version 2 or later). This is useful if you happen to use my code in another project or in case the other MAME/MESS developers happen to drop the non-comercial clause completely. I suggest that other developers consider doing the same. --Felipe Sanches
12
1311  Changelog:
1412
15    2014 JUN 13 [Felipe Sanches]:
13  2014 JUN 13 [Felipe Sanches]:
1614   * new derivative "CARD I PCB rev.08A"
1715   * new derivative "CARD II PCB rev.6"
1816   * fixed LCD rendering (now both lines are displayed properly)
trunk/src/mess/drivers/pve500.c
r31051r31052
11// license:MAME|GPL-2.0+
2// copyright-holders:Felipe Correa
2// copyright-holders: Felipe Sanches
33/***************************************************************************
44
55  SONY PVE-500 Editing Control Unit
r31051r31052
88  Driver by Felipe Correa da Silva Sanches <juca@members.fsf.org>
99  Technical info at https://www.garoa.net.br/wiki/PVE-500
1010
11  Licensed under GPLv2 or later.
12
13  NOTE: Even though the MAME/MESS project has been adopting a non-commercial additional licensing clause, I do allow commercial usage
14  of my portion of the code according to the plain terms of the GPL license (version 2 or later). This is useful if you happen to use
15  my code in another project or in case the other MAME/MESS developers happen to drop the non-comercial clause completely. I suggest
16  that other developers consider doing the same. --Felipe Sanches
17
1811  Changelog:
1912
2013   2014 JAN 14 [Felipe Sanches]:
trunk/src/mess/mess.mak
r31051r31052
21622162   $(MESS_DRIVERS)/systec.o    \
21632163   $(MESS_DRIVERS)/tavernie.o  \
21642164   $(MESS_DRIVERS)/terak.o     \
2165   $(MESS_DRIVERS)/ti630.o     \
21652166   $(MESS_DRIVERS)/tsispch.o   \
21662167   $(MESS_DRIVERS)/unistar.o   \
21672168   $(MESS_DRIVERS)/v6809.o     \
trunk/src/mess/mess.lst
r31051r31052
23012301pdp11qb
23022302sms1000
23032303terak
2304ti630
23042305sacstate
23052306prose2k
23062307eacc

Previous 199869 Revisions Next


© 1997-2024 The MAME Team