mirror of
https://github.com/holub/mame
synced 2025-04-22 16:31:49 +03:00
Some notes on the AlphaSmart Pro machine
This commit is contained in:
parent
fab4341819
commit
4001cf85df
@ -4,10 +4,16 @@
|
||||
|
||||
08/28/2012 Skeleton driver
|
||||
|
||||
TODO:
|
||||
- define video HW capabilities
|
||||
- "Addr. Bus RAM error" string read, presumably memory mapped RAM at 0x8000
|
||||
is actually a r/w bank register.
|
||||
|
||||
****************************************************************************/
|
||||
|
||||
#include "emu.h"
|
||||
#include "cpu/mc68hc11/mc68hc11.h"
|
||||
#include "video/hd44780.h"
|
||||
#include "rendlay.h"
|
||||
|
||||
class alphasmart_state : public driver_device
|
||||
@ -20,11 +26,14 @@ public:
|
||||
|
||||
required_device<cpu_device> m_maincpu;
|
||||
|
||||
DECLARE_WRITE8_MEMBER(vram_w);
|
||||
|
||||
virtual void machine_start();
|
||||
virtual void palette_init();
|
||||
virtual UINT32 screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
|
||||
// virtual UINT32 screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
|
||||
};
|
||||
|
||||
|
||||
static ADDRESS_MAP_START(alphasmart_mem, AS_PROGRAM, 8, alphasmart_state)
|
||||
ADDRESS_MAP_UNMAP_HIGH
|
||||
AM_RANGE( 0x0000, 0x7fff ) AM_RAM
|
||||
@ -32,6 +41,8 @@ static ADDRESS_MAP_START(alphasmart_mem, AS_PROGRAM, 8, alphasmart_state)
|
||||
ADDRESS_MAP_END
|
||||
|
||||
static ADDRESS_MAP_START(alphasmart_io, AS_IO, 8, alphasmart_state)
|
||||
// AM_RANGE(MC68HC11_IO_PORTA, MC68HC11_IO_PORTA) AM_DEVREADWRITE("hd44780", hd44780_device, control_read, control_write)
|
||||
// AM_RANGE(MC68HC11_IO_PORTD, MC68HC11_IO_PORTD) AM_DEVREADWRITE("hd44780", hd44780_device, data_read, data_write)
|
||||
ADDRESS_MAP_END
|
||||
|
||||
/* Input ports */
|
||||
@ -48,11 +59,6 @@ void alphasmart_state::machine_start()
|
||||
{
|
||||
}
|
||||
|
||||
UINT32 alphasmart_state::screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
static const hc11_config alphasmart_hc11_config =
|
||||
{
|
||||
0, //has extended internal I/O
|
||||
@ -60,19 +66,28 @@ static const hc11_config alphasmart_hc11_config =
|
||||
0x00 //registers are at 0-0x3f
|
||||
};
|
||||
|
||||
static HD44780_INTERFACE( alphasmart_4line_display )
|
||||
{
|
||||
4, // number of lines
|
||||
16, // chars for line
|
||||
NULL // pixel update callback
|
||||
};
|
||||
|
||||
static MACHINE_CONFIG_START( alphasmart, alphasmart_state )
|
||||
/* basic machine hardware */
|
||||
MCFG_CPU_ADD("maincpu", MC68HC11, XTAL_8MHz/2) // MC68HC11D0, XTAL is 8 Mhz, unknown divider
|
||||
MCFG_CPU_PROGRAM_MAP(alphasmart_mem)
|
||||
MCFG_CPU_IO_MAP(alphasmart_io)
|
||||
MCFG_CPU_CONFIG(alphasmart_hc11_config)
|
||||
MCFG_CPU_PERIODIC_INT_DRIVER(alphasmart_state, irq0_line_hold, 50)
|
||||
// MCFG_CPU_PERIODIC_INT_DRIVER(alphasmart_state, irq0_line_hold, 50)
|
||||
|
||||
MCFG_HD44780_ADD("hd44780", alphasmart_4line_display)
|
||||
|
||||
/* video hardware */
|
||||
MCFG_SCREEN_ADD("screen", LCD)
|
||||
MCFG_SCREEN_REFRESH_RATE(50)
|
||||
MCFG_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500)) /* not accurate */
|
||||
MCFG_SCREEN_UPDATE_DRIVER(alphasmart_state, screen_update)
|
||||
MCFG_SCREEN_UPDATE_DEVICE("hd44780", hd44780_device, screen_update)
|
||||
MCFG_SCREEN_SIZE(6*40, 9*4)
|
||||
MCFG_SCREEN_VISIBLE_AREA(0, (6*40)-1, 0, (9*4)-1)
|
||||
MCFG_PALETTE_LENGTH(2)
|
||||
@ -83,6 +98,9 @@ MACHINE_CONFIG_END
|
||||
ROM_START( alphasma )
|
||||
ROM_REGION( 0x8000, "maincpu", 0 )
|
||||
ROM_LOAD( "alphasmartpro212.rom", 0x0000, 0x8000, CRC(896ddf1c) SHA1(c3c6a421c9ced92db97431d04b4a3f09a39de716) ) // Checksum 8D24 on label
|
||||
|
||||
ROM_REGION( 0x0860, "hd44780", ROMREGION_ERASE )
|
||||
ROM_LOAD( "44780a00.bin", 0x0000, 0x0860, BAD_DUMP CRC(3a89024c) SHA1(5a87b68422a916d1b37b5be1f7ad0b3fb3af5a8d))
|
||||
ROM_END
|
||||
|
||||
|
||||
|
@ -1898,7 +1898,6 @@ ADDRESS_MAP_END
|
||||
|
||||
TIMER_CALLBACK_MEMBER(pc8801_state::pc8801fd_upd765_tc_to_zero)
|
||||
{
|
||||
|
||||
//printf("0\n");
|
||||
machine().device<upd765a_device>("upd765")->tc_w(false);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user