Einzelnen Beitrag anzeigen
  #4560  
Alt 12.06.2021, 18:15
fhub fhub ist offline
Lebende Foren Legende
 
Registriert seit: 19.04.2010
Beiträge: 2.579
Abgegebene Danke: 434
Erhielt 5.699 Danke für 1.311 Beiträge
Aktivitäten Langlebigkeit
7/20 14/20
Heute Beiträge
0/3 sssss2579
AW: Re: Mess Emulator für diverse Schachcomputer ist fertig!

 Zitat von fhub Beitrag anzeigen
Ok, I'll try it, but I'm not sure if I'll get this method working again after so many years ...
Yep, I got it working!

But your method with this m_onbutton_timer requires a bit too much code IMO, so I've just used a boolean variable 'arbinit', which I set to 'true' (only for the Sargon 2.5) in machine_reset(), and then I use the following code in input_r():
Code:
u8 arb_state::input_r()
{
	u8 data = 0;

	// PA0-PA7: multiplexed inputs
	if (m_inp_mux < 8)
		data = m_board->read_file(m_inp_mux);
	else if (m_inp_mux < 9) {
		data = m_inputs[m_inp_mux - 8]->read();
		if (arbinit) {
			data |= 0x80;
			arbinit = false;
		}
	}

	return ~data;
}
It seems to work correctly, since it's also only executed once after each reset.

BTW, is it normal, that the RESET button for the ARB and ARBV2 doesn't seem to do anything?

Geändert von fhub (12.06.2021 um 18:42 Uhr)
Mit Zitat antworten