Skip to content

Commit c6f1d92

Browse files
committed
use the enums
1 parent d1e0175 commit c6f1d92

File tree

1 file changed

+25
-25
lines changed

1 file changed

+25
-25
lines changed

src/mame/adp/stellafr.cpp

Lines changed: 25 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ Sound and I/O board:
9797
#include "sound/dac.h"
9898
#include "speaker.h"
9999

100-
#define VERBOSE 1
100+
//#define VERBOSE 1
101101
#include "logmacro.h"
102102

103103
#include "stellafr.lh"
@@ -246,14 +246,14 @@ uint8_t stellafr_state::mux_r()
246246

247247
uint8_t data = 0x00;
248248

249-
if (li) data |= (1 << 0);
250-
if (emp) data |= (1 << 1);
251-
if (ma) data |= (1 << 2);
252-
if (st) data |= (1 << 3);
253-
if (t) data |= (1 << 4);
254-
if (t2) data |= (1 << 5);
255-
if (emp2) data |= (1 << 6);
256-
if (li2) data |= (1 << 7);
249+
if (li) data |= (1 << U10_OUTLI);
250+
if (emp) data |= (1 << U10_OUTEMP);
251+
if (ma) data |= (1 << U10_OUTMA);
252+
if (st) data |= (1 << U10_OUTST);
253+
if (t) data |= (1 << U10_OUTT);
254+
if (t2) data |= (1 << U10_OUTT2);
255+
if (emp2) data |= (1 << U10_EMP2);
256+
if (li2) data |= (1 << U10_LI2);
257257

258258
return data;
259259
}
@@ -262,14 +262,14 @@ void stellafr_state::mux_w(uint8_t data)
262262
{
263263
//m_mux_data++;
264264
//m_mux_data &= 0x0f;
265-
bool enma = BIT(data,0);
266-
bool enme2 = BIT(data,1);
267-
bool aw = BIT(data,2);
268-
bool aw2 = BIT(data,3);
269-
bool enanz = BIT(data,4); //enable 7seg
270-
bool enmux = BIT(data,5); //enable lamps/buttons
271-
bool enanz2 = BIT(data,6);
272-
bool enmux2 = BIT(data,7);
265+
bool enma = BIT(data,U5_ENM);
266+
bool enme2 = BIT(data,U5_ENME2);
267+
bool aw = BIT(data,U5_AW);
268+
bool aw2 = BIT(data,U5_AW2);
269+
bool enanz = BIT(data,U5_ENSTANZ); //enable 7seg
270+
bool enmux = BIT(data,U5_MUXMA); //enable lamps/buttons
271+
bool enanz2 = BIT(data,U5_EANZ2);
272+
bool enmux2 = BIT(data,U5_EMUX2);
273273

274274
LOG("\nmux_w()\n");
275275
LOG("EnMa %d\n",enma);
@@ -286,14 +286,14 @@ void stellafr_state::mux_w(uint8_t data)
286286
void stellafr_state::mux2_w(uint8_t data)
287287
{
288288
// U1
289-
bool ma1 = BIT(data,0);
290-
bool ma2 = BIT(data,1);
291-
bool me = BIT(data,2);
292-
bool data3 = BIT(data,3);
293-
bool anz = BIT(data,4); //main 7seg led out
294-
bool mux = BIT(data,5); //main lamps out
295-
bool anz2 = BIT(data,6);
296-
bool mux2 = BIT(data,7);
289+
bool ma1 = BIT(data,U1_1MA);
290+
bool ma2 = BIT(data,U1_2MA);
291+
bool me = BIT(data,U1_ME);
292+
bool data3 = BIT(data,U1_D3OUT);
293+
bool anz = BIT(data,U1_ANZ); //main 7seg led out
294+
bool mux = BIT(data,U1_MUX); //main lamps out
295+
bool anz2 = BIT(data,U1_ANZME2);
296+
bool mux2 = BIT(data,U1_MUX2);
297297

298298
LOG("\nmux2_w()\n");
299299
LOG("1MA %d\n",ma1);

0 commit comments

Comments
 (0)