Previous 199869 Revisions Next

r34137 Thursday 1st January, 2015 at 09:35:39 UTC by Osso
galaxold / scramble: Removed some unused code (nw)
[src/mame/includes]galaxold.h scramble.h
[src/mame/machine]scramble.c
[src/mame/video]galaxold.c

trunk/src/mame/includes/galaxold.h
r242648r242649
6666   UINT8 m__4in1_bank;
6767   tilemap_t *m_bg_tilemap;
6868   tilemap_t *m_rockclim_tilemap;
69   int m_mooncrst_gfxextend;
7069   int m_spriteram2_present;
7170   UINT8 m_gfxbank[5];
7271   UINT8 m_flipscreen_x;
trunk/src/mame/includes/scramble.h
r242648r242649
2222   optional_shared_ptr<UINT8> m_soundram;
2323
2424   UINT8 m_cavelon_bank;
25   UINT8 m_security_2B_counter;
26   UINT8 m_xb;
2725
2826   // harem
2927   UINT8 m_harem_decrypt_mode;
r242648r242649
8381   DECLARE_DRIVER_INIT(billiard);
8482   DECLARE_MACHINE_RESET(scramble);
8583   DECLARE_MACHINE_RESET(explorer);
86   DECLARE_WRITE8_MEMBER(scramble_protection_w);
87   DECLARE_READ8_MEMBER(scramble_protection_r);
8884   DECLARE_WRITE_LINE_MEMBER(scramble_sh_7474_q_callback);
8985   void cavelon_banksw();
9086   inline int bit(int i,int n);
trunk/src/mame/machine/scramble.c
r242648r242649
1919
2020   if (m_audiocpu != NULL)
2121      sh_init();
22
23   m_security_2B_counter = 0;
2422}
2523
2624MACHINE_RESET_MEMBER(scramble_state,explorer)
r242648r242649
4947
5048/* state of the security PAL (6J) */
5149
52WRITE8_MEMBER(scramble_state::scramble_protection_w)
53{
54   m_xb = data;
55}
5650
57READ8_MEMBER(scramble_state::scramble_protection_r)
58{
59   switch (m_maincpu->pc())
60   {
61   case 0x00a8: return 0xf0;
62   case 0x00be: return 0xb0;
63   case 0x0c1d: return 0xf0;
64   case 0x0c6a: return 0xb0;
65   case 0x0ceb: return 0x40;
66   case 0x0d37: return 0x60;
67   case 0x1ca2: return 0x00;  /* I don't think it's checked */
68   case 0x1d7e: return 0xb0;
69   default:
70      logerror("%s: read protection\n",machine().describe_context());
71      return 0;
72   }
73}
74
75
7651READ8_MEMBER(scramble_state::mariner_protection_1_r )
7752{
7853   return 7;
trunk/src/mame/video/galaxold.c
r242648r242649
404404   m_modify_color = 0;
405405   m_modify_ypos = 0;
406406
407   m_mooncrst_gfxextend = 0;
408
409407   m_draw_bullets = 0;
410408
411409   m_draw_background = &galaxold_state::galaxold_draw_background;


Previous 199869 Revisions Next


© 1997-2024 The MAME Team