Previous 199869 Revisions Next

r26354 Friday 22nd November, 2013 at 11:20:23 UTC by Jürgen Buchmüller
Must use :CONFIG to access the running machine's ioport.
[/branches/alto2/src/emu/cpu/alto2]a2ether.c a2mem.c alto2cpu.c alto2cpu.h

branches/alto2/src/emu/cpu/alto2/a2mem.c
r26353r26354
808808      m_mem.hpb = 0;
809809   }
810810   // allocate 64K or 128K words of main memory
811   ioport_port* config = ioport("CONFIG");
811   ioport_port* config = ioport(":CONFIG");
812   // config should be valid, unless the driver doesn't define it
812813   if (config)
813814      m_mem.size = config->read() & 1 ? ALTO2_RAM_SIZE : 2 * ALTO2_RAM_SIZE;
814815   else
branches/alto2/src/emu/cpu/alto2/alto2cpu.c
r26353r26354
11611161void alto2_cpu_device::device_reset()
11621162{
11631163   soft_reset();
1164
1165   // call all sub-devices' reset_...
1166   reset_memory();
1167   reset_disk();
1168   reset_disp();
1169   reset_kbd();
1170   reset_mouse();
1171   reset_hw();
1172
1173   reset_emu();
1174   reset_ksec();
1175   reset_ether();
1176   reset_mrt();
1177   reset_dwt();
1178   reset_curt();
1179   reset_dht();
1180   reset_dvt();
1181   reset_part();
1182   reset_kwd();
11831164}
11841165
11851166/**
r26353r26354
28642845   }
28652846   m_next2_task = task_emu;      // switch to task 0 (emulator)
28662847   m_reset_mode = 0xffff;         // all tasks start in ROM0 again
2848   m_task = task_emu;            // set current task to emulator
2849   m_task_wakeup = 1 << task_emu;   // set only the emulator task wakeup flag
28672850
2868   m_dsp_time = 0;               // reset the display state timing
2851   m_dsp_time = 0;               // reset the display state machine timing accu
2852   m_unload_time = 0;            // reset the word unload timing accu
2853#if   (USE_BITCLK_TIMER == 0)
2854   m_bitclk_time = 0;            // reset the bitclk timing accu
2855#endif
28692856
2870   m_task = task_emu;            // start with task 0 (emulator)
2871   m_task_wakeup |= 1 << task_emu;   // set wakeup flag
2857   // call all sub-devices' reset_...
2858   reset_memory();
2859   reset_disk();
2860   reset_disp();
2861   reset_kbd();
2862   reset_mouse();
2863   reset_hw();
2864
2865   reset_emu();
2866   reset_ksec();
2867   reset_ether();
2868   reset_mrt();
2869   reset_dwt();
2870   reset_curt();
2871   reset_dht();
2872   reset_dvt();
2873   reset_part();
2874   reset_kwd();
28722875}
branches/alto2/src/emu/cpu/alto2/a2ether.c
r26353r26354
859859   m_eth.tx_count = 0;
860860   m_eth.rx_timer->reset();
861861   m_eth.tx_timer->reset();
862   ioport_port* config = ioport("CONFIG");
862   ioport_port* config = ioport(":CONFIG");
863   // config should be valid, unless the driver doesn't define it
863864   if (config)
864865      m_eth.duckbreath = duckbreath_sec[(config->read() >> 4) & 7];
865866   else
866867      m_eth.duckbreath = 0;
868   logerror("Ethernet duckbreath %d sec\n", m_eth.duckbreath);
867869}
branches/alto2/src/emu/cpu/alto2/alto2cpu.h
r26353r26354
4343};
4444
4545#ifndef   ALTO2_DEBUG
46#define   ALTO2_DEBUG             1         //!< define to 1 to enable logerror() output
46#define   ALTO2_DEBUG             0         //!< define to 1 to enable logerror() output
4747#endif
4848
4949#ifndef   ALTO2_CRAM_CONFIG

Previous 199869 Revisions Next


© 1997-2024 The MAME Team