Previous 15994 Revisions Next

r4193 Sunday 25th January, 2009 at 22:08:44 UTC by Antoine Mine
[HP48] added HP 48G+ driver (clone of HP 48G/GX)
[artwork]hp48gp.zip*
[src/mess]messdriv.c
[src/mess/drivers]hp48.c
[src/mess/includes]hp48.h
[src/mess/machine]hp48.c
[src/mess/video]hp48.c

src/mess/video/hp48.c
r4192r4193
22
33  Copyright (C) Antoine Mine' 2008
44
5   Hewlett Packard HP48 S/SX & G/GX
5   Hewlett Packard HP48 S/SX & G/GX/G+
66
77**********************************************************************/
88
src/mess/includes/hp48.h
r4192r4193
8383extern MACHINE_START( hp48sx );
8484extern MACHINE_START( hp48g  );
8585extern MACHINE_START( hp48gx );
86extern MACHINE_START( hp48gp );
8687
8788extern MACHINE_RESET( hp48 );
8889
src/mess/messdriv.c
r4192r4193
864864   DRIVER( comquest )   /* Comquest Plus German                        */
865865
866866   /* Hewlett Packard */
867   DRIVER( hp48s )      /* HP48 S */
868   DRIVER( hp48sx )   /* HP48 SX */
869   DRIVER( hp48g )      /* HP48 G */
870   DRIVER( hp48gx )   /* HP48 GX */
867   DRIVER( hp48s )      /* HP 48S */
868   DRIVER( hp48sx )   /* HP 48SX */
869   DRIVER( hp48g )      /* HP 48G */
870   DRIVER( hp48gx )   /* HP 48GX */
871   DRIVER( hp48gp )        /* HP 48G+ */
871872
872873   /* SpectraVideo */
873874   DRIVER( svi318 )   /* SVI-318 (PAL)                           */
src/mess/machine/hp48.c
r4192r4193
22
33  Copyright (C) Antoine Mine' 2008
44
5   Hewlett Packard HP48 S/SX & G/GX
5   Hewlett Packard HP48 S/SX & G/GX/G+
66
77**********************************************************************/
88
r4192r4193
4242   HP48_SX,
4343   HP48_G,
4444   HP48_GX,
45   HP48_GP,
4546} hp48_models;
4647
4748/* memory module configuration */
r4192r4193
8788/* current HP48 model */
8889static hp48_models hp48_model;
8990
90#define HP48_G_SERIES ((hp48_model==HP48_G) || (hp48_model==HP48_GX))
91#define HP48_G_SERIES ((hp48_model==HP48_G) || (hp48_model==HP48_GX) || (hp48_model==HP48_GP))
9192#define HP48_S_SERIES ((hp48_model==HP48_S) || (hp48_model==HP48_SX))
9293#define HP48_X_SERIES ((hp48_model==HP48_SX) || (hp48_model==HP48_GX))
93#define HP48_GX_MODEL (hp48_model==HP48_GX)
94#define HP48_GX_MODEL ((hp48_model==HP48_GX) || (hp48_model==HP48_GP))
9495
9596/* OUT register from SATURN (actually 12-bit) */
9697static UINT16 hp48_out;
r4192r4193
12461247{
12471248   hp48_machine_start( machine, HP48_GX );
12481249}
1250
1251MACHINE_START( hp48gp )
1252{
1253   hp48_machine_start( machine, HP48_GP );
1254}
src/mess/drivers/hp48.c
r4192r4193
22
33  Copyright (C) Antoine Mine' 2008
44
5   Hewlett Packard HP48 S/SX & G/GX
5   Hewlett Packard HP48 S/SX & G/GX/G+
66
77**********************************************************************/
88
r4192r4193
4545  - 1991-04-02 HP48S  (discontinued in 1993)
4646  - 1993-06-01 HP48G  (discontinued in 1999)
4747               HP48GX (discontinued in 2003)
48  - 1998-03-30 HP48G+ (discontinued in 2003)
4849
4950  Common characteristics:
5051  - HP family name: Charlemagne
r4192r4193
9697      . port 1: up to 128 KB RAM, can be merged with base RAM
9798      . port 2: up to   4 MB RAM, in 32 banks of 128 KB, cannot be merged
9899
100  - G+ model specific:
101    + Codename: Plus
102    + 128 KB RAM, not expandable
103    + no expansion port
104
99105*/
100106
101107
r4192r4193
474480
475481
476482
477/* G/GX */
483/* G/GX/G+ */
478484static INPUT_PORTS_START( hp48gx_kbd )
479485
480486        PORT_START( "LINE0" ) /* OUT = 0x001 */
r4192r4193
795801 */
796802
797803
798/* These ROMS are common to the G and GX models.
804/* These ROMS are common to the G, GX, and G+ models.
799805   The ROM detects whether it runs a G or a GX by simply testing the memory:
800806   if there are 32 KB (i.e., addresses wraps-around at 0x10000), it is a G; if there are
801807   128 KB, it is a GX.
802808   When a G is detected, some specially optimized routines may be used (they use the fact that
803809   no extension may be physically present).
810   The G+ model has always revision R.
804811 */
805812ROM_START ( hp48gx )
806813      ROM_DEFAULT_BIOS("r")
r4192r4193
841848
842849ROM_END
843850
844#define rom_hp48g rom_hp48gx
851#define rom_hp48g  rom_hp48gx
852#define rom_hp48gp rom_hp48gx
845853
846854
847855/* These ROMS are common to the S and SX models.
r4192r4193
934942
935943static const char layout_hp48gx[] = "hp48gx";
936944static const char layout_hp48g [] = "hp48g";
945static const char layout_hp48gp[] = "hp48gp";
937946static const char layout_hp48sx[] = "hp48sx";
938947static const char layout_hp48s [] = "hp48s";
939948
r4192r4193
9941003MACHINE_DRIVER_END
9951004
9961005
1006static MACHINE_DRIVER_START ( hp48gp )
1007   MDRV_IMPORT_FROM    ( hp48_common )
1008   MDRV_MACHINE_START  ( hp48gp )
1009   MDRV_DEFAULT_LAYOUT ( layout_hp48gp )
1010
1011   /* serial I/O */
1012   MDRV_XMODEM_ADD( "rs232_x", hp48_xmodem_rs232_conf )
1013   MDRV_KERMIT_ADD( "rs232_k", hp48_kermit_rs232_conf )
1014MACHINE_DRIVER_END
1015
1016
9971017static MACHINE_DRIVER_START ( hp48sx )
9981018   MDRV_IMPORT_FROM    ( hp48_common )
9991019   MDRV_CPU_REPLACE    ( "main", SATURN, 2000000 )
r4192r4193
10251045COMP ( 1991, hp48s , hp48sx, 0, hp48s,  hp48sx, hp48, NULL, "Hewlett Packard", "HP48S", 0 )
10261046COMP ( 1993, hp48gx, 0     , 0, hp48gx, hp48gx, hp48, NULL, "Hewlett Packard", "HP48GX", 0 )
10271047COMP ( 1993, hp48g , hp48gx, 0, hp48g,  hp48gx, hp48, NULL, "Hewlett Packard", "HP48G", 0 )
1048COMP ( 1998, hp48gp, hp48gx, 0, hp48gp, hp48gx, hp48, NULL, "Hewlett Packard", "HP48G+", 0 )
artwork/hp48gp.zip

Previous 15994 Revisions Next


© 1998-2018 The MESS Team