branches/alto2/src/emu/cpu/alto2/a2mem.c
| r26175 | r26176 | |
| 838 | 838 | } |
| 839 | 839 | |
| 840 | 840 | // allocate 128KB of main memory |
| 841 | | m_mem.ram = global_alloc_array(UINT32, ALTO2_RAM_SIZE); |
| 842 | | m_mem.hpb = global_alloc_array(UINT8, ALTO2_RAM_SIZE); |
| 841 | m_mem.ram = global_alloc_array(UINT32, sizeof(UINT16)*ALTO2_RAM_SIZE); |
| 842 | m_mem.hpb = global_alloc_array(UINT8, sizeof(UINT16)*ALTO2_RAM_SIZE); |
| 843 | 843 | |
| 844 | 844 | /** |
| 845 | 845 | * <PRE> |
| r26175 | r26176 | |
| 892 | 892 | |
| 893 | 893 | #if ALTO2_HAMMING_CHECK |
| 894 | 894 | // Initialize the hamming codes and parity bit |
| 895 | | for (UINT32 addr = 0; addr < ALTO2_IO_PAGE_BASE; addr++) |
| 896 | | hamming_code(1, addr, m_mem.ram[addr]); |
| 895 | for (UINT32 addr = 0; addr < ALTO2_IO_PAGE_BASE; addr++) { |
| 896 | hamming_code(1, addr, 0); |
| 897 | hamming_code(1, 0200000 + addr, 0); |
| 898 | } |
| 897 | 899 | #endif |
| 898 | 900 | } |
branches/alto2/src/emu/cpu/alto2/a2disk.c
| r26175 | r26176 | |
| 2299 | 2299 | #endif |
| 2300 | 2300 | |
| 2301 | 2301 | /* KSTAT[0-3] update the current sector in the kstat field */ |
| 2302 | | PUT_KSTAT_SECTOR(m_dsk.kstat, dhd->get_sector()); |
| 2302 | PUT_KSTAT_SECTOR(m_dsk.kstat, dhd->get_sector() ^ 017); |
| 2303 | 2303 | |
| 2304 | 2304 | /* clear input and output shift registers (?) */ |
| 2305 | 2305 | m_dsk.shiftin = 0; |
| r26175 | r26176 | |
| 2369 | 2369 | m_dsk.bitclk_timer = machine().scheduler().timer_alloc(timer_expired_delegate(FUNC(alto2_cpu_device::disk_bitclk),this)); |
| 2370 | 2370 | #endif |
| 2371 | 2371 | |
| 2372 | m_dsk.strobon_timer = machine().scheduler().timer_alloc(timer_expired_delegate(FUNC(alto2_cpu_device::disk_strobon),this)); |
| 2373 | m_dsk.strobon_timer->adjust(attotime::from_nsec(TW_STROBON)); |
| 2374 | |
| 2372 | 2375 | m_dsk.seclate_timer = machine().scheduler().timer_alloc(timer_expired_delegate(FUNC(alto2_cpu_device::disk_seclate),this)); |
| 2373 | 2376 | m_dsk.seclate_timer->adjust(attotime::from_nsec(TW_SECLATE), 1); |
| 2374 | 2377 | |