1
0
mirror of https://github.com/TomHarte/CLK.git synced 2024-12-27 16:31:31 +00:00

Confirmed: it is inaccurate for a 6502 to self reset at power up. So that responsibility now rests in the machines.

This commit is contained in:
Thomas Harte 2016-05-10 21:05:52 -04:00
parent fab59cbc64
commit 5a4262d74e
2 changed files with 2 additions and 5 deletions

View File

@ -55,6 +55,7 @@ Machine::Machine() :
memset(_roms[c], 0xff, 16384);
_tape.set_delegate(this);
set_reset_line(true);
}
void Machine::setup_output(float aspect_ratio)
@ -85,6 +86,7 @@ void Machine::close_output()
unsigned int Machine::perform_bus_operation(CPU6502::BusOperation operation, uint16_t address, uint8_t *value)
{
unsigned int cycles = 1;
set_reset_line(false);
if(address < 0x8000)
{

View File

@ -513,11 +513,6 @@ template <class T> class Processor {
_carryFlag &= Flag::Carry;
_decimalFlag &= Flag::Decimal;
_overflowFlag &= Flag::Overflow;
// TODO: is this accurate? It feels more likely that a CPU would need to wait
// on an explicit reset command, since the relative startup times of different
// components from power on would be a bit unpredictable.
schedule_program(get_reset_program());
}
public: