@@ -97,7 +97,7 @@ Sound and I/O board:
97
97
#include " sound/dac.h"
98
98
#include " speaker.h"
99
99
100
- #define VERBOSE 1
100
+ // #define VERBOSE 1
101
101
#include " logmacro.h"
102
102
103
103
#include " stellafr.lh"
@@ -246,14 +246,14 @@ uint8_t stellafr_state::mux_r()
246
246
247
247
uint8_t data = 0x00 ;
248
248
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 );
257
257
258
258
return data;
259
259
}
@@ -262,14 +262,14 @@ void stellafr_state::mux_w(uint8_t data)
262
262
{
263
263
// m_mux_data++;
264
264
// 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 );
273
273
274
274
LOG (" \n mux_w()\n " );
275
275
LOG (" EnMa %d\n " ,enma);
@@ -286,14 +286,14 @@ void stellafr_state::mux_w(uint8_t data)
286
286
void stellafr_state::mux2_w (uint8_t data)
287
287
{
288
288
// 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 );
297
297
298
298
LOG (" \n mux2_w()\n " );
299
299
LOG (" 1MA %d\n " ,ma1);
0 commit comments