Previous 199869 Revisions Next

r26252 Monday 18th November, 2013 at 03:04:19 UTC by Jürgen Buchmüller
Fix timing based on assumption that the CPU clock is 5.8MHz (divider 5).
[/branches/alto2/src/emu/cpu/alto2]a2disp.c alto2.h
[/branches/alto2/src/mess/drivers]alto2.c

branches/alto2/src/emu/cpu/alto2/a2disp.c
r26251r26252
502502   for (int y = 0; y < ALTO2_DISPLAY_HEIGHT; y++) {
503503      UINT16* scanline = m_dsp.raw_bitmap + y * ALTO2_DISPLAY_SCANLINE_WORDS;
504504      m_dsp.scanline[y] = scanline;
505      memset(m_dsp.scanline[y], y & 1 ? 0x55 : 0xaa, sizeof(UINT16) * ALTO2_DISPLAY_VISIBLE_WORDS);
506      for (int x = 0; x < ALTO2_DISPLAY_SCANLINE_WORDS; x++)
507         update_bitmap_word(x*16, y, scanline[x]);
508505   }
509506}
510507
branches/alto2/src/emu/cpu/alto2/alto2.h
r26251r26252
3535#define   ALTO2_BUSSRC   8         //!< 8 bus sources
3636#define   ALTO2_F1MAX      16         //!< 16 F1 functions
3737#define   ALTO2_F2MAX      16         //!< 16 F2 functions
38#define   ALTO2_UCYCLE   170         //!< time in nano seconds for a CPU micro cycle: 29.4912MHz/8 -> 3.6864MHz ~= 271ns/clock
38#define   ALTO2_UCYCLE   169         //!< time in nano seconds for a CPU micro cycle: 29.4912MHz/5 -> 5.898240Hz ~= 169.542ns/clock
3939
4040#define   ALTO2_ETHER_FIFO_SIZE   16
4141
branches/alto2/src/mess/drivers/alto2.c
r26251r26252
256256
257257static MACHINE_CONFIG_START( alto2, alto2_state )
258258   /* basic machine hardware */
259   // SYSCLK is Display Control part A51 (tagged 29.4MHz) divided by 8
260   MCFG_CPU_ADD("maincpu", ALTO2, XTAL_29_4912MHz/8)
259   // SYSCLK is Display Control part A51 (tagged 29.4MHz) divided by 5(?)
260   // 5.8MHz according to de.wikipedia.org/wiki/Xerox_Alto
261   MCFG_CPU_ADD("maincpu", ALTO2, XTAL_29_4912MHz/5)
261262   MCFG_CPU_PROGRAM_MAP(alto2_ucode_map)
262263   MCFG_CPU_DATA_MAP(alto2_const_map)
263264   MCFG_CPU_IO_MAP(alto2_iomem_map)

Previous 199869 Revisions Next


© 1997-2024 The MAME Team