Previous 15994 Revisions Next

r11591 Thursday 19th May, 2011 at 14:21:15 UTC by Robbbert
[GAMECOM] Modernised. Fixed a buffer overflow situation. There is a problem with stylus management, this will be attended to in due course.
[src/mess/drivers]gamecom.c
[src/mess/includes]gamecom.h
[src/mess/machine]gamecom.c
[src/mess/video]gamecom.c

src/mess/machine/gamecom.c
r11590r11591
11
22#include "emu.h"
33#include "includes/gamecom.h"
4#include "cpu/sm8500/sm8500.h"
5#include "image.h"
64
75
86
r11590r11591
2826   state->m_cartridge = NULL;
2927}
3028
31static void gamecom_set_mmu( running_machine &machine, int mmu, UINT8 data )
29void gamecom_state::gamecom_set_mmu(UINT8 mmu, UINT8 data )
3230{
33   gamecom_state *state = machine.driver_data<gamecom_state>();
34   char bank[6];
31   char bank[8];
3532   sprintf(bank,"bank%d",mmu);
3633   if ( data < 0x20 )
3734   {
3835      /* select internal ROM bank */
39      memory_set_bankptr( machine, bank, machine.region("kernel")->base() + (data << 13) );
36      memory_set_bankptr( machine(), bank, machine().region("kernel")->base() + (data << 13) );
4037   }
4138   else
4239   {
4340      /* select cartridge bank */
44      if ( state->m_cartridge )
45         memory_set_bankptr( machine, bank, state->m_cartridge + ( data << 13 ) );
41      if ( m_cartridge )
42         memory_set_bankptr( machine(), bank, m_cartridge + ( data << 13 ) );
4643   }
4744}
4845
49static void handle_stylus_press( running_machine &machine, UINT8 column )
46void gamecom_state::handle_stylus_press( int column )
5047{
51   gamecom_state *state = machine.driver_data<gamecom_state>();
52   UINT8 * RAM = machine.region("maincpu")->base();
48   UINT8 * RAM = machine().region("maincpu")->base();
5349   static const UINT16 row_data[10] = { 0x3FE, 0x3FD, 0x3FB, 0x3F7, 0x3EF, 0x3DF, 0x3BF, 0x37F, 0x2FF, 0x1FF };
5450
5551   if ( column == 0 )
5652   {
57      if ( ! ( input_port_read(machine, "IN2") & 0x04 ) )
53      if ( !BIT( input_port_read(machine(), "IN2"), 2) )
5854      {
59         state->m_stylus_x = input_port_read(machine, "STYX") >> 4;
60         state->m_stylus_y = input_port_read(machine, "STYY") >> 4;
55         m_stylus_x = input_port_read(machine(), "STYX") >> 4;
56         m_stylus_y = input_port_read(machine(), "STYY") >> 4;
6157      }
6258      else
6359      {
64         state->m_stylus_x = 16;
65         state->m_stylus_y = 16;
60         m_stylus_x = 16;
61         m_stylus_y = 16;
6662      }
6763   }
6864
69   if ( state->m_stylus_x == column )
65   if ( m_stylus_x == column )
7066   {
71      RAM[SM8521_P0] = row_data[state->m_stylus_y];
72      RAM[SM8521_P1] = ( RAM[SM8521_P1] & 0xFC ) | ( ( row_data[state->m_stylus_y] >> 8 ) & 3 );
67      RAM[SM8521_P0] = row_data[m_stylus_y>>1];
68      RAM[SM8521_P1] = ( RAM[SM8521_P1] & 0xFC ) | ( ( row_data[m_stylus_y>>1] >> 8 ) & 3 );
7369   }
7470   else
7571   {
r11590r11591
7874   }
7975}
8076
81WRITE8_HANDLER( gamecom_pio_w )
77WRITE8_MEMBER( gamecom_state::gamecom_pio_w )
8278{
83   gamecom_state *state = space->machine().driver_data<gamecom_state>();
84   UINT8 * RAM = space->machine().region("maincpu")->base();
79   UINT8 * RAM = machine().region("maincpu")->base();
8580   offset += 0x14;
8681   RAM[offset] = data;
8782   switch( offset )
r11590r11591
9994                  /* P0 bit 7 cleared => */
10095                  /* P1 bit 0 cleared => */
10196                  /* P1 bit 1 cleared => */
102               handle_stylus_press( space->machine(), 0 );
97               handle_stylus_press(0);
10398               break;
10499            case 0xF7FF:   /* column #1 */
105               handle_stylus_press( space->machine(), 1 );
100               handle_stylus_press(1);
106101               break;
107102            case 0xEFFF:   /* column #2 */
108               handle_stylus_press( space->machine(), 2 );
103               handle_stylus_press(2);
109104               break;
110105            case 0xDFFF:   /* column #3 */
111               handle_stylus_press( space->machine(), 3 );
106               handle_stylus_press(3);
112107               break;
113108            case 0xBFFF:   /* column #4 */
114               handle_stylus_press( space->machine(), 4 );
109               handle_stylus_press(4);
115110               break;
116111            case 0x7FFF:   /* column #5 */
117               handle_stylus_press( space->machine(), 5 );
112               handle_stylus_press(5);
118113               break;
119114            case 0xFFFE:   /* column #6 */
120               handle_stylus_press( space->machine(), 6 );
115               handle_stylus_press(6);
121116               break;
122117            case 0xFFFD:   /* column #7 */
123               handle_stylus_press( space->machine(), 7 );
118               handle_stylus_press(7);
124119               break;
125120            case 0xFFFB:   /* column #8 */
126               handle_stylus_press( space->machine(), 8 );
121               handle_stylus_press(8);
127122               break;
128123            case 0xFFF7:   /* column #9 */
129               handle_stylus_press( space->machine(), 9 );
124               handle_stylus_press(9);
130125               break;
131126            case 0xFFEF:   /* column #10 */
132               handle_stylus_press( space->machine(), 10 );
127               handle_stylus_press(10);
133128               break;
134129            case 0xFFDF:   /* column #11 */
135               handle_stylus_press( space->machine(), 11 );
130               handle_stylus_press(11);
136131               break;
137132            case 0xFFBF:   /* column #12 */
138               handle_stylus_press( space->machine(), 12 );
133               handle_stylus_press(12);
139134               break;
140135            case 0xFF7F:   /* keys #1 */
141136                  /* P0 bit 0 cleared => 83 (up) */
r11590r11591
148143                  /* P0 bit 7 cleared => 8B (button A) */
149144                  /* P1 bit 0 cleared => 8C (button B) */
150145                  /* P1 bit 1 cleared => 8D (button C) */
151               RAM[SM8521_P0] = input_port_read(space->machine(), "IN0");
152               RAM[SM8521_P1] = (RAM[SM8521_P1] & 0xFC) | ( input_port_read(space->machine(), "IN1") & 3 );
146               RAM[SM8521_P0] = input_port_read(machine(), "IN0");
147               RAM[SM8521_P1] = (RAM[SM8521_P1] & 0xFC) | ( input_port_read(machine(), "IN1") & 3 );
153148               break;
154149            case 0xFFFF:   /* keys #2 */
155150                  /* P0 bit 0 cleared => 88 (power) */
r11590r11591
162157                  /* P0 bit 7 cleared => A0 */
163158                  /* P1 bit 0 cleared => A0 */
164159                  /* P1 bit 1 cleared => A0 */
165               RAM[SM8521_P0] = (RAM[SM8521_P0] & 0xFC) | ( input_port_read(space->machine(), "IN2") & 3 );
160               RAM[SM8521_P0] = (RAM[SM8521_P0] & 0xFC) | ( input_port_read(machine(), "IN2") & 3 );
166161               RAM[SM8521_P1] = 0xFF;
167162               break;
168163            }
r11590r11591
172167            /* P3 bit6 clear, bit7 set -> enable cartridge port #1? */
173168            switch( data & 0xc0 )
174169            {
175            case 0x40: state->m_cartridge = state->m_cartridge1; break;
176            case 0x80: state->m_cartridge = state->m_cartridge2; break;
177            default:   state->m_cartridge = NULL;       break;
170            case 0x40: m_cartridge = m_cartridge1; break;
171            case 0x80: m_cartridge = m_cartridge2; break;
172            default:   m_cartridge = NULL;       break;
178173            }
179174            return;
180175   }
181176}
182177
183READ8_HANDLER( gamecom_pio_r )
178READ8_MEMBER( gamecom_state::gamecom_pio_r )
184179{
185   UINT8 * RAM = space->machine().region("maincpu")->base();
180   UINT8 * RAM = machine().region("maincpu")->base();
186181   return RAM[offset + 0x14];
187182}
188183
189READ8_HANDLER( gamecom_internal_r )
184READ8_MEMBER( gamecom_state::gamecom_internal_r )
190185{
191   UINT8 * RAM = space->machine().region("maincpu")->base();
186   UINT8 * RAM = machine().region("maincpu")->base();
192187   return RAM[offset + 0x20];
193188}
194189
195WRITE8_HANDLER( gamecom_internal_w )
190WRITE8_MEMBER( gamecom_state::gamecom_internal_w )
196191{
197   gamecom_state *state = space->machine().driver_data<gamecom_state>();
198   UINT8 * RAM = space->machine().region("maincpu")->base();
192   UINT8 * RAM = machine().region("maincpu")->base();
199193   offset += 0x20;
200194   switch( offset )
201195   {
r11590r11591
203197      logerror( "Write to MMU0\n" );
204198      break;
205199   case SM8521_MMU1:
206      gamecom_set_mmu( space->machine(), 1, data );
200      gamecom_set_mmu(1, data);
207201      break;
208202   case SM8521_MMU2:
209      gamecom_set_mmu( space->machine(), 2, data );
203      gamecom_set_mmu(2, data);
210204      break;
211205   case SM8521_MMU3:
212      gamecom_set_mmu( space->machine(), 3, data );
206      gamecom_set_mmu(3, data);
213207      break;
214208   case SM8521_MMU4:
215      gamecom_set_mmu( space->machine(), 4, data );
209      gamecom_set_mmu(4, data);
216210      break;
217211
218212   /* Video hardware and DMA */
r11590r11591
220214      data &= 0x7f;
221215      break;
222216   case SM8521_TM0D:
223      state->m_timer[0].check_value = data;
217      m_timer[0].check_value = data;
224218      return;
225219   case SM8521_TM0C:
226      state->m_timer[0].enabled = data & 0x80;
227      state->m_timer[0].state_limit = gamecom_timer_limit[data & 0x07];
228      state->m_timer[0].state_count = 0;
220      m_timer[0].enabled = data & 0x80;
221      m_timer[0].state_limit = gamecom_timer_limit[data & 0x07];
222      m_timer[0].state_count = 0;
229223      RAM[SM8521_TM0D] = 0;
230224      break;
231225   case SM8521_TM1D:
232      state->m_timer[1].check_value = data;
226      m_timer[1].check_value = data;
233227      return;
234228   case SM8521_TM1C:
235      state->m_timer[1].enabled = data & 0x80;
236      state->m_timer[1].state_limit = gamecom_timer_limit[data & 0x07];
237      state->m_timer[1].state_count = 0;
229      m_timer[1].enabled = data & 0x80;
230      m_timer[1].state_limit = gamecom_timer_limit[data & 0x07];
231      m_timer[1].state_count = 0;
238232      RAM[SM8521_TM1D] = 0;
239233      break;
240234   case SM8521_CLKT:   /* bit 6-7 */
r11590r11591
244238         if ( data & 0x40 )
245239         {
246240            /* timer resolution 1 minute */
247            state->m_clock_timer->adjust(attotime::from_seconds(1), 0, attotime::from_seconds(60));
241            m_clock_timer->adjust(attotime::from_seconds(1), 0, attotime::from_seconds(60));
248242         }
249243         else
250244         {
251245            /* TImer resolution 1 second */
252            state->m_clock_timer->adjust(attotime::from_seconds(1), 0, attotime::from_seconds(1));
246            m_clock_timer->adjust(attotime::from_seconds(1), 0, attotime::from_seconds(1));
253247         }
254248      }
255249      else
256250      {
257251         /* disable timer reset */
258         state->m_clock_timer->enable( 0 );
252         m_clock_timer->enable( 0 );
259253         data &= 0xC0;
260254      }
261255      break;
262256
263257   /* Sound */
264258   case SM8521_SGC:
265      state->m_sound.sgc = data;
259      m_sound.sgc = data;
266260      break;
267261   case SM8521_SG0L:
268      state->m_sound.sg0l = data;
262      m_sound.sg0l = data;
269263      break;
270264   case SM8521_SG1L:
271      state->m_sound.sg1l = data;
265      m_sound.sg1l = data;
272266      break;
273267   case SM8521_SG0TH:
274      state->m_sound.sg0t = ( state->m_sound.sg0t & 0xFF ) | ( data << 8 );
268      m_sound.sg0t = ( m_sound.sg0t & 0xFF ) | ( data << 8 );
275269      break;
276270   case SM8521_SG0TL:
277      state->m_sound.sg0t = ( state->m_sound.sg0t & 0xFF00 ) | data;
271      m_sound.sg0t = ( m_sound.sg0t & 0xFF00 ) | data;
278272      break;
279273   case SM8521_SG1TH:
280      state->m_sound.sg1t = ( state->m_sound.sg1t & 0xFF ) | ( data << 8 );
274      m_sound.sg1t = ( m_sound.sg1t & 0xFF ) | ( data << 8 );
281275      break;
282276   case SM8521_SG1TL:
283      state->m_sound.sg1t = ( state->m_sound.sg1t & 0xFF00 ) | data;
277      m_sound.sg1t = ( m_sound.sg1t & 0xFF00 ) | data;
284278      break;
285279   case SM8521_SG2L:
286      state->m_sound.sg2l = data;
280      m_sound.sg2l = data;
287281      break;
288282   case SM8521_SG2TH:
289      state->m_sound.sg2t = ( state->m_sound.sg2t & 0xFF ) | ( data << 8 );
283      m_sound.sg2t = ( m_sound.sg2t & 0xFF ) | ( data << 8 );
290284      break;
291285   case SM8521_SG2TL:
292      state->m_sound.sg2t = ( state->m_sound.sg2t & 0xFF00 ) | data;
286      m_sound.sg2t = ( m_sound.sg2t & 0xFF00 ) | data;
293287      break;
294288   case SM8521_SGDA:
295      state->m_sound.sgda = data;
289      m_sound.sgda = data;
296290      break;
297291
298292   case SM8521_SG0W0:
r11590r11591
311305   case SM8521_SG0W13:
312306   case SM8521_SG0W14:
313307   case SM8521_SG0W15:
314      state->m_sound.sg0w[offset - SM8521_SG0W0] = data;
308      m_sound.sg0w[offset - SM8521_SG0W0] = data;
315309      break;
316310   case SM8521_SG1W0:
317311   case SM8521_SG1W1:
r11590r11591
329323   case SM8521_SG1W13:
330324   case SM8521_SG1W14:
331325   case SM8521_SG1W15:
332      state->m_sound.sg1w[offset - SM8521_SG1W0] = data;
326      m_sound.sg1w[offset - SM8521_SG1W0] = data;
333327      break;
334328
335329   /* Reserved addresses */
r11590r11591
341335   case SM8521_55: case SM8521_56: case SM8521_57: case SM8521_58:
342336   case SM8521_59: case SM8521_5A: case SM8521_5B: case SM8521_5C:
343337   case SM8521_5D:
344      logerror( "%X: Write to reserved address (0x%02X). Value written: 0x%02X\n", cpu_get_pc(&space->device()), offset, data );
338      logerror( "%X: Write to reserved address (0x%02X). Value written: 0x%02X\n", cpu_get_pc(m_maincpu), offset, data );
345339      break;
346340   }
347341   RAM[offset] = data;
r11590r11591
395389   {
396390   case 0x00:
397391      /* VRAM->VRAM */
398      state->m_dma.source_bank = &state->m_vram[(RAM[SM8521_DMVP] & 0x01) ? 0x2000 : 0x0000];
399      state->m_dma.dest_bank = &state->m_vram[(RAM[SM8521_DMVP] & 0x02) ? 0x2000 : 0x0000];
392      state->m_dma.source_bank = &state->m_p_videoram[(RAM[SM8521_DMVP] & 0x01) ? 0x2000 : 0x0000];
393      state->m_dma.dest_bank = &state->m_p_videoram[(RAM[SM8521_DMVP] & 0x02) ? 0x2000 : 0x0000];
400394      break;
401395   case 0x02:
402396      /* ROM->VRAM */
r11590r11591
412406         if (state->m_cartridge)
413407            state->m_dma.source_bank = state->m_cartridge + (RAM[SM8521_DMBR] << 14);
414408      }
415      state->m_dma.dest_bank = &state->m_vram[(RAM[SM8521_DMVP] & 0x02) ? 0x2000 : 0x0000];
409      state->m_dma.dest_bank = &state->m_p_videoram[(RAM[SM8521_DMVP] & 0x02) ? 0x2000 : 0x0000];
416410      break;
417411   case 0x04:
418412      /* Extend RAM->VRAM */
419413      state->m_dma.source_width = 64;
420      state->m_dma.source_bank = &state->m_vram[0x4000];
421      state->m_dma.dest_bank = &state->m_vram[(RAM[SM8521_DMVP] & 0x02) ? 0x2000 : 0x0000];
414      state->m_dma.source_bank = &state->m_p_videoram[0x4000];
415      state->m_dma.dest_bank = &state->m_p_videoram[(RAM[SM8521_DMVP] & 0x02) ? 0x2000 : 0x0000];
422416      break;
423417   case 0x06:
424418      /* VRAM->Extend RAM */
425      state->m_dma.source_bank = &state->m_vram[(RAM[SM8521_DMVP] & 0x01) ? 0x2000 : 0x0000];
419      state->m_dma.source_bank = &state->m_p_videoram[(RAM[SM8521_DMVP] & 0x01) ? 0x2000 : 0x0000];
426420      state->m_dma.dest_width = 64;
427      state->m_dma.dest_bank = &state->m_vram[0x4000];
421      state->m_dma.dest_bank = &state->m_p_videoram[0x4000];
428422      break;
429423   }
430424   state->m_dma.source_current = state->m_dma.source_width * state->m_dma.source_y;
src/mess/includes/gamecom.h
r11590r11591
1111#ifndef GAMECOM_H_
1212#define GAMECOM_H_
1313
14#include "cpu/sm8500/sm8500.h"
15#include "imagedev/cartslot.h"
16#include "rendlay.h"
17#include "image.h"
1418
1519/* SM8521 register addresses */
1620enum
r11590r11591
205209{
206210public:
207211   gamecom_state(const machine_config &mconfig, device_type type, const char *tag)
208      : driver_device(mconfig, type, tag) { }
212      : driver_device(mconfig, type, tag),
213   m_maincpu(*this, "maincpu")
214   { }
209215
210   UINT8 *m_vram;
216   required_device<cpu_device> m_maincpu;
217   DECLARE_READ8_MEMBER( gamecom_internal_r );
218   DECLARE_READ8_MEMBER( gamecom_pio_r );
219   DECLARE_WRITE8_MEMBER( gamecom_internal_w );
220   DECLARE_WRITE8_MEMBER( gamecom_pio_w );
221   UINT8 *m_p_videoram;
211222   UINT8 *m_cartridge1;
212223   UINT8 *m_cartridge2;
213224   UINT8 *m_cartridge;
214225   emu_timer *m_clock_timer;
226   emu_timer *m_scanline_timer;
215227   GAMECOM_DMA m_dma;
216228   GAMECOM_TIMER m_timer[2];
217229   gamecom_sound_t m_sound;
218   UINT32 m_stylus_x;
219   UINT32 m_stylus_y;
230   int m_stylus_x;
231   int m_stylus_y;
220232   int m_scanline;
221233   unsigned int m_base_address;
222   emu_timer *m_scanline_timer;
234   void gamecom_set_mmu(UINT8 mmu, UINT8 data);
235   void handle_stylus_press(int column);
223236};
224237
225238
r11590r11591
230243extern DEVICE_IMAGE_LOAD( gamecom_cart1 );
231244extern DEVICE_IMAGE_LOAD( gamecom_cart2 );
232245
233extern WRITE8_HANDLER( gamecom_internal_w );
234extern READ8_HANDLER( gamecom_internal_r );
235extern WRITE8_HANDLER( gamecom_pio_w );
236extern READ8_HANDLER( gamecom_pio_r );
237
238246extern void gamecom_handle_dma( device_t *device, int cycles );
239247extern void gamecom_update_timers( device_t *device, int cycles );
240248
src/mess/video/gamecom.c
r11590r11591
1919      bitmap_fill( machine.generic.tmpbitmap, &rec , 0);
2020      return;
2121   } else {
22      UINT8 *line = &state->m_vram[ state->m_base_address + 40 * state->m_scanline ];
22      UINT8 *line = &state->m_p_videoram[ state->m_base_address + 40 * state->m_scanline ];
2323      int   pal[4];
2424      int   i;
2525
src/mess/drivers/gamecom.c
r11590r11591
1414
1515
1616***************************************************************************/
17#define ADDRESS_MAP_MODERN
1718
1819#include "emu.h"
1920#include "includes/gamecom.h"
20#include "cpu/sm8500/sm8500.h"
21#include "imagedev/cartslot.h"
22#include "rendlay.h"
2321
24static ADDRESS_MAP_START(gamecom_mem_map, AS_PROGRAM, 8)
22static ADDRESS_MAP_START(gamecom_mem_map, AS_PROGRAM, 8, gamecom_state)
2523   AM_RANGE( 0x0000, 0x0013 )  AM_RAM
2624   AM_RANGE( 0x0014, 0x0017 )  AM_READWRITE( gamecom_pio_r, gamecom_pio_w )        // buttons
2725   AM_RANGE( 0x0018, 0x001F )  AM_RAM
r11590r11591
3331   AM_RANGE( 0x4000, 0x5FFF )  AM_ROMBANK("bank2")                                       /* External ROM/Flash. Controlled by MMU2 */
3432   AM_RANGE( 0x6000, 0x7FFF )  AM_ROMBANK("bank3")                                       /* External ROM/Flash. Controlled by MMU3 */
3533   AM_RANGE( 0x8000, 0x9FFF )  AM_ROMBANK("bank4")                                       /* External ROM/Flash. Controlled by MMU4 */
36   AM_RANGE( 0xA000, 0xDFFF )  AM_RAM AM_BASE_MEMBER(gamecom_state, m_vram)         /* VRAM */
34   AM_RANGE( 0xA000, 0xDFFF )  AM_RAM AM_BASE(m_p_videoram)         /* VRAM */
3735   AM_RANGE( 0xE000, 0xFFFF )  AM_RAM AM_SHARE("nvram")                  /* Extended I/O, Extended RAM */
3836ADDRESS_MAP_END
3937
r11590r11591
6967   PORT_BIT( 0xff, 80, IPT_LIGHTGUN_Y ) PORT_CROSSHAIR(Y, 1, 0, 0) PORT_MINMAX(0,159) PORT_SENSITIVITY(50) PORT_KEYDELTA(8)
7068INPUT_PORTS_END
7169
72#define GAMECOM_PALETTE_LENGTH   5
73
7470static const unsigned char palette[] =
7571{
7672   0xDF, 0xFF, 0x8F,   /* White */
r11590r11591
8379static PALETTE_INIT( gamecom )
8480{
8581   int index;
86   for ( index = 0; index < GAMECOM_PALETTE_LENGTH; index++ )
82   for ( index = 0; index < 5; index++ )
8783   {
8884      palette_set_color_rgb(machine,  4-index, palette[index*3+0], palette[index*3+1], palette[index*3+2] );
8985   }
r11590r11591
119115   MCFG_SCREEN_UPDATE( generic_bitmapped )
120116
121117   MCFG_DEFAULT_LAYOUT(layout_lcd)
122   MCFG_PALETTE_LENGTH( GAMECOM_PALETTE_LENGTH )
123   MCFG_PALETTE_INIT( gamecom )
118   MCFG_PALETTE_LENGTH(5)
119   MCFG_PALETTE_INIT(gamecom)
124120
125121   /* sound hardware */
126122#if 0
r11590r11591
146142ROM_START( gamecom )
147143   ROM_REGION( 0x2000, "maincpu", 0 )
148144   ROM_LOAD( "internal.bin", 0x1000,  0x1000, CRC(a0cec361) SHA1(03368237e8fed4a8724f3b4a1596cf4b17c96d33) )
145
149146   ROM_REGION( 0x40000, "kernel", 0 )
150147   ROM_LOAD( "external.bin", 0x00000, 0x40000, CRC(e235a589) SHA1(97f782e72d738f4d7b861363266bf46b438d9b50) )
148
151149   ROM_REGION( 0x200000, "cart1", ROMREGION_ERASEFF )
152150   ROM_REGION( 0x200000, "cart2", ROMREGION_ERASEFF )
153151ROM_END

Previous 15994 Revisions Next


© 1998-2018 The MESS Team