src/mess/machine/hp48.c
| r4192 | r4193 | |
| 2 | 2 | |
| 3 | 3 | Copyright (C) Antoine Mine' 2008 |
| 4 | 4 | |
| 5 | | Hewlett Packard HP48 S/SX & G/GX |
| 5 | Hewlett Packard HP48 S/SX & G/GX/G+ |
| 6 | 6 | |
| 7 | 7 | **********************************************************************/ |
| 8 | 8 | |
| r4192 | r4193 | |
| 42 | 42 | HP48_SX, |
| 43 | 43 | HP48_G, |
| 44 | 44 | HP48_GX, |
| 45 | HP48_GP, |
| 45 | 46 | } hp48_models; |
| 46 | 47 | |
| 47 | 48 | /* memory module configuration */ |
| r4192 | r4193 | |
| 87 | 88 | /* current HP48 model */ |
| 88 | 89 | static hp48_models hp48_model; |
| 89 | 90 | |
| 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)) |
| 91 | 92 | #define HP48_S_SERIES ((hp48_model==HP48_S) || (hp48_model==HP48_SX)) |
| 92 | 93 | #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)) |
| 94 | 95 | |
| 95 | 96 | /* OUT register from SATURN (actually 12-bit) */ |
| 96 | 97 | static UINT16 hp48_out; |
| r4192 | r4193 | |
| 1246 | 1247 | { |
| 1247 | 1248 | hp48_machine_start( machine, HP48_GX ); |
| 1248 | 1249 | } |
| 1250 | |
| 1251 | MACHINE_START( hp48gp ) |
| 1252 | { |
| 1253 | hp48_machine_start( machine, HP48_GP ); |
| 1254 | } |
src/mess/drivers/hp48.c
| r4192 | r4193 | |
| 2 | 2 | |
| 3 | 3 | Copyright (C) Antoine Mine' 2008 |
| 4 | 4 | |
| 5 | | Hewlett Packard HP48 S/SX & G/GX |
| 5 | Hewlett Packard HP48 S/SX & G/GX/G+ |
| 6 | 6 | |
| 7 | 7 | **********************************************************************/ |
| 8 | 8 | |
| r4192 | r4193 | |
| 45 | 45 | - 1991-04-02 HP48S (discontinued in 1993) |
| 46 | 46 | - 1993-06-01 HP48G (discontinued in 1999) |
| 47 | 47 | HP48GX (discontinued in 2003) |
| 48 | - 1998-03-30 HP48G+ (discontinued in 2003) |
| 48 | 49 | |
| 49 | 50 | Common characteristics: |
| 50 | 51 | - HP family name: Charlemagne |
| r4192 | r4193 | |
| 96 | 97 | . port 1: up to 128 KB RAM, can be merged with base RAM |
| 97 | 98 | . port 2: up to 4 MB RAM, in 32 banks of 128 KB, cannot be merged |
| 98 | 99 | |
| 100 | - G+ model specific: |
| 101 | + Codename: Plus |
| 102 | + 128 KB RAM, not expandable |
| 103 | + no expansion port |
| 104 | |
| 99 | 105 | */ |
| 100 | 106 | |
| 101 | 107 | |
| r4192 | r4193 | |
| 474 | 480 | |
| 475 | 481 | |
| 476 | 482 | |
| 477 | | /* G/GX */ |
| 483 | /* G/GX/G+ */ |
| 478 | 484 | static INPUT_PORTS_START( hp48gx_kbd ) |
| 479 | 485 | |
| 480 | 486 | PORT_START( "LINE0" ) /* OUT = 0x001 */ |
| r4192 | r4193 | |
| 795 | 801 | */ |
| 796 | 802 | |
| 797 | 803 | |
| 798 | | /* These ROMS are common to the G and GX models. |
| 804 | /* These ROMS are common to the G, GX, and G+ models. |
| 799 | 805 | The ROM detects whether it runs a G or a GX by simply testing the memory: |
| 800 | 806 | if there are 32 KB (i.e., addresses wraps-around at 0x10000), it is a G; if there are |
| 801 | 807 | 128 KB, it is a GX. |
| 802 | 808 | When a G is detected, some specially optimized routines may be used (they use the fact that |
| 803 | 809 | no extension may be physically present). |
| 810 | The G+ model has always revision R. |
| 804 | 811 | */ |
| 805 | 812 | ROM_START ( hp48gx ) |
| 806 | 813 | ROM_DEFAULT_BIOS("r") |
| r4192 | r4193 | |
| 841 | 848 | |
| 842 | 849 | ROM_END |
| 843 | 850 | |
| 844 | | #define rom_hp48g rom_hp48gx |
| 851 | #define rom_hp48g rom_hp48gx |
| 852 | #define rom_hp48gp rom_hp48gx |
| 845 | 853 | |
| 846 | 854 | |
| 847 | 855 | /* These ROMS are common to the S and SX models. |
| r4192 | r4193 | |
| 934 | 942 | |
| 935 | 943 | static const char layout_hp48gx[] = "hp48gx"; |
| 936 | 944 | static const char layout_hp48g [] = "hp48g"; |
| 945 | static const char layout_hp48gp[] = "hp48gp"; |
| 937 | 946 | static const char layout_hp48sx[] = "hp48sx"; |
| 938 | 947 | static const char layout_hp48s [] = "hp48s"; |
| 939 | 948 | |
| r4192 | r4193 | |
| 994 | 1003 | MACHINE_DRIVER_END |
| 995 | 1004 | |
| 996 | 1005 | |
| 1006 | static 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 ) |
| 1014 | MACHINE_DRIVER_END |
| 1015 | |
| 1016 | |
| 997 | 1017 | static MACHINE_DRIVER_START ( hp48sx ) |
| 998 | 1018 | MDRV_IMPORT_FROM ( hp48_common ) |
| 999 | 1019 | MDRV_CPU_REPLACE ( "main", SATURN, 2000000 ) |
| r4192 | r4193 | |
| 1025 | 1045 | COMP ( 1991, hp48s , hp48sx, 0, hp48s, hp48sx, hp48, NULL, "Hewlett Packard", "HP48S", 0 ) |
| 1026 | 1046 | COMP ( 1993, hp48gx, 0 , 0, hp48gx, hp48gx, hp48, NULL, "Hewlett Packard", "HP48GX", 0 ) |
| 1027 | 1047 | COMP ( 1993, hp48g , hp48gx, 0, hp48g, hp48gx, hp48, NULL, "Hewlett Packard", "HP48G", 0 ) |
| 1048 | COMP ( 1998, hp48gp, hp48gx, 0, hp48gp, hp48gx, hp48, NULL, "Hewlett Packard", "HP48G+", 0 ) |