Previous 15994 Revisions Next

r12237 Friday 15th July, 2011 at 14:08:54 UTC by Miodrag Milanović
New skeleton:
- Zenith Z-100 [Minataku, Miodrag Milanovic]

New clone added:
- Sharp PC-7000 [Minataku, Miodrag Milanovic]
[src/mess]mess.lst mess.mak
[src/mess/drivers]pc.c z100.c*

src/mess/mess.lst
r12236r12237
633633pcega    // 1987 PC with EGA
634634bw230   // 1985 Bondwell (CGA)
635635europc   // 1988 Schneider Euro PC (CGA or Hercules)
636pc7000  // 1985 Sharp PC-7000
636637
637638// PC Junior
638639ibmpcjr   // 1984 IBM PC Jr
r12236r12237
19221923super6
19231924mpz80
19241925poly1
1926z100
src/mess/drivers/z100.c
r0r12237
1/***************************************************************************
2   
3        Zenith Z-100
4
5        15/07/2011 Skeleton driver.
6
7****************************************************************************/
8
9#include "emu.h"
10#include "cpu/i86/i86.h"
11
12class z100_state : public driver_device
13{
14public:
15   z100_state(const machine_config &mconfig, device_type type, const char *tag)
16      : driver_device(mconfig, type, tag)
17   { }
18};
19/*
20Z207A      EQU 0B0H   ; Z-207 disk controller base port
21  ; (See DEFZ207 to program controller)
22Z217A      EQU 0AEH   ; Z-217 disk controller base port
23  ; (See DEFZ217 to program controller)
24ZGRNSEG      EQU 0E000H   ; Segment of green video plane
25ZREDSEG      EQU 0D000H   ; Segment of red video plane
26ZBLUSEG      EQU 0C000H   ; Segment of blue video plane
27ZVIDEO      EQU 0D8H   ; Video 68A21 port
28  ; PA0 -> enable red display
29  ; PA1 -> enable green display
30  ; PA2 -> enable blue display
31  ; PA3 -> not flash screen
32  ; PA4 -> not write multiple red
33  ; PA5 -> not write multiple green
34  ; PA6 -> not write multiple blue
35  ; PA7 -> disable video RAM
36  ; PB7-PB0 -> LA15-LA8
37  ; CA1 - not used
38  ; CA2 -> clear screen
39  ; CB1 - not used
40  ; CB2 -> value to write (0 or 1) on clear screen
41  ; (see DEF6821 to program the 6821)
42ZCRTC      EQU 0DCH   ; Video 6845 CRT-C port
43  ; (see DEF6845 to program the 6845)
44ZLPEN      EQU 0DEH   ; Light pen latch
45  ZLPEN_BIT     EQU 00000111B     ; Bit hit by pen
46  ZLPEN_ROW     EQU 11110000B     ; Row hit by pen
47ZPIA      EQU 0E0H   ; Parallel printer plus light pen and
48                                ;  video vertical retrace 68A21 port
49  ; PA0 -> PDATA1
50  ; PA1 -> PDATA2
51  ; PA2 -> not STROBE
52  ; PA3 -> not INIT
53  ; PA4 <- VSYNC
54  ; PA5 -> clear VSYNC flip flop
55  ; PA6 <- light pen switch
56  ; PA7 -> clear light pen flip flop
57  ; PB0 <- BUSY
58  ; PB1 <- not ERROR
59  ; PB2 -> PDATA3
60  ; PB3 -> PDATA4
61  ; PB4 -> PDATA5
62  ; PB5 -> PDATA6
63  ; PB6 -> PDATA7
64  ; PB7 -> PDATA8
65  ; CA1 <- light pen hit (from flip flop)
66  ; CA2 <- VSYNC (from flip flop)
67  ; CB1 <- not ACKNLG
68  ; CB2 <- BUSY
69  ; (See DEF6821 to program the PIA)
70ZTIMER      EQU 0E4H   ; Timer 8253 port
71  ZTIMEVAL     EQU 2500     ; 100ms divide by N value
72  ; (See DEF8253 to program the 8253)
73ZTIMERS      EQU 0FBH   ; Timer interrupt status port
74  ZTIMERS0     EQU 001H     ; Timer 0 interrupt
75  ZTIMERS2     EQU 002H     ; Timer 2 interrupt
76ZSERA      EQU 0E8H   ; First 2661-2 serial port
77ZSERB      EQU 0ECH   ; Second 2661-2 serial port
78  ; (See DEFEP2 to program 2661-2)
79ZM8259A      EQU 0F2H   ; Master 8259A interrupt controller port
80  ZINTEI     EQU 0        ; Parity error or S-100 pin 98 interrupt
81  ZINTPS     EQU 1        ; Processor swap interrupt
82  ZINTTIM     EQU 2        ; Timer interrupt
83  ZINTSLV     EQU 3        ; Slave 8259A interrupt
84  ZINTSA     EQU 4        ; Serial port A interrupt
85  ZINTSB     EQU 5        ; Serial port B interrupt
86  ZINTKD     EQU 6        ; Keyboard, Display, or Light pen interrupt
87  ZINTPP     EQU 7        ; Parallel port interrupt
88  ; (See DEF8259A to program the 8259A)
89  ZM8259AI     EQU 64       ; Base interrupt number for master
90ZS8259A      EQU 0F0H   ; Secondary 8259A interrupt controller port
91  ZS8259AI     EQU 72       ; Base interrupt number for slave
92  BIOSAI     EQU ZS8259AI+8    ; Base of BIOS generated interrupts
93ZKEYBRD      EQU 0F4H   ; Keyboard port
94  ZKEYBRDD     EQU ZKEYBRD+0     ; Keyboard data port
95  ZKEYBRDC     EQU ZKEYBRD+1     ; Keyboard command port
96    ZKEYRES       EQU 0       ; Reset command
97    ZKEYARD       EQU 1       ; Autorepeat on command
98    ZKEYARF       EQU 2       ; Autorepeat off command
99    ZKEYKCO       EQU 3       ; Key click on command
100    ZKEYKCF       EQU 4       ; Key click off command
101    ZKEYCF       EQU 5       ; Clear keyboard FIFO command
102    ZKEYCLK       EQU 6       ; Generate a click sound command
103    ZKEYBEP       EQU 7       ; Generate a beep sound command
104    ZKEYEK       EQU 8       ; Enable keyboard command
105    ZKEYDK       EQU 9       ; Disable keyboard command
106    ZKEYUDM       EQU 10       ; Enter UP/DOWN mode command
107    ZKEYNSM       EQU 11       ; Enter normal scan mode command
108    ZKEYEI       EQU 12       ; Enable keyboard interrupts command
109    ZKEYDI       EQU 13       ; Disable keyboard interrupts command
110  ZKEYBRDS     EQU ZKEYBRD+1     ; Keyboard status port
111    ZKEYOBF       EQU 001H       ; Output buffer not empty
112    ZKEYIBF       EQU 002H       ; Input buffer full
113ZMCL      EQU 0FCH   ; Memory control latch
114  ZMCLMS     EQU 00000011B     ; Map select mask
115    ZSM0       EQU 0       ; Map select 0
116    ZSM1       EQU 1       ; Map select 1
117    ZSM2       EQU 2       ; Map select 2
118    ZSM3       EQU 3       ; Map select 3
119  ZMCLRM     EQU 00001100B     ; Monitor ROM mapping mask
120    ZRM0       EQU 0*4        ; Power up mode - ROM everywhere on reads
121    ZRM1       EQU 1*4        ; ROM at top of every 64K page
122    ZRM2       EQU 2*4        ; ROM at top of 8088's addr space
123    ZRM3       EQU 3*4        ; Disable ROM
124  ZMCLPZ     EQU 00010000B     ; 0=Set Parity to the zero state
125  ZMCLPK     EQU 00100000B     ; 0=Disable parity checking circuity
126  ZMCLPF     EQU 01000000B     ; 0=Disable parity error flag
127Z205BA      EQU 098H   ; Base address for Z-205 boards
128  Z205BMC     EQU 8        ; Maximum of 8 Z-205 boards installed
129ZHAL      EQU 0FDH   ; Hi-address latch
130  ZHAL85     EQU 0FFH     ; 8085 Mask
131  ZHAL88     EQU 0F0H     ; 8088 Mask
132ZPSP      EQU 0FEH   ; Processor swap port
133  ZPSPPS     EQU 10000000B   ; Processor select (0=8085, 1=8088)
134  ZPSPPS5     EQU 00000000B     ; Select 8085
135  ZPSPPS8     EQU 10000000B   ; Select 8088
136  ZPSPSI     EQU 00000010B   ; Generate interrupt on swapping
137  ZPSPI8     EQU 00000001B     ; 8088 processes all interrupts
138ZDIPSW      EQU 0FFH   ; Configuration dip switches
139  ZDIPSWBOOT     EQU 00000111B     ; Boot device field
140  ZDIPSWAB     EQU 00001000B     ; 1=Auto boot(0=Manual boot)
141  ZDIPSWRES     EQU 01110000B     ; Reserved
142  ZDIPSWHZ     EQU 10000000B     ; 1=50Hz(0=60HZ)
143
144 */
145static ADDRESS_MAP_START(z100_mem, AS_PROGRAM, 8)
146   ADDRESS_MAP_UNMAP_HIGH
147   AM_RANGE(0x00000,0x1ffff) AM_RAM // 128 KB RAM
148   AM_RANGE(0xc0000,0xcffff) AM_RAM // Green
149   AM_RANGE(0xd0000,0xdffff) AM_RAM // Red
150   AM_RANGE(0xe0000,0xeffff) AM_RAM // Blue
151   AM_RANGE(0xfc000,0xfffff) AM_ROM AM_REGION("ipl", 0)
152ADDRESS_MAP_END
153
154static READ8_HANDLER(unk_f5_r)
155{
156   return 0;
157}
158
159static ADDRESS_MAP_START( z100_io , AS_IO, 8)
160   ADDRESS_MAP_UNMAP_HIGH
161   AM_RANGE (0xf5, 0xf5) AM_READ(unk_f5_r)
162ADDRESS_MAP_END
163
164/* Input ports */
165INPUT_PORTS_START( z100 )
166INPUT_PORTS_END
167
168
169static MACHINE_RESET(z100)
170{   
171}
172
173static VIDEO_START( z100 )
174{
175}
176
177static SCREEN_UPDATE( z100 )
178{
179    return 0;
180}
181
182static MACHINE_CONFIG_START( z100, z100_state )
183    /* basic machine hardware */
184    MCFG_CPU_ADD("maincpu",I8088, XTAL_14_31818MHz/3)
185    MCFG_CPU_PROGRAM_MAP(z100_mem)
186    MCFG_CPU_IO_MAP(z100_io)   
187
188    MCFG_MACHINE_RESET(z100)
189   
190    /* video hardware */
191    MCFG_SCREEN_ADD("screen", RASTER)
192    MCFG_SCREEN_REFRESH_RATE(50)
193    MCFG_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500)) /* not accurate */
194    MCFG_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16)
195    MCFG_SCREEN_SIZE(640, 480)
196    MCFG_SCREEN_VISIBLE_AREA(0, 640-1, 0, 480-1)
197    MCFG_SCREEN_UPDATE(z100)
198
199    MCFG_PALETTE_LENGTH(2)
200    MCFG_PALETTE_INIT(black_and_white)
201
202    MCFG_VIDEO_START(z100)
203MACHINE_CONFIG_END
204
205/* ROM definition */
206ROM_START( z100 )
207   ROM_REGION( 0x4000, "ipl", ROMREGION_ERASEFF )
208   ROM_LOAD( "intel-d27128-1.bin", 0x0000, 0x4000, CRC(b21f0392) SHA1(69e492891cceb143a685315efe0752981a2d8143))
209ROM_END
210
211/* Driver */
212
213/*    YEAR  NAME    PARENT  COMPAT   MACHINE    INPUT    INIT    COMPANY   FULLNAME       FLAGS */
214COMP( 1982, z100,     0,       0,       z100,    z100,     0,      "Zenith",   "Z-100",      GAME_NOT_WORKING | GAME_NO_SOUND)
215
src/mess/drivers/pc.c
r12236r12237
18051805   ROM_LOAD("5788005.u33", 0x00000, 0x2000, BAD_DUMP CRC(0bf56d70) SHA1(c2a8b10808bf51a3c123ba3eb1e9dd608231916f)) /* "AMI 8412PI // 5788005 // (C) IBM CORP. 1981 // KOREA" */
18061806ROM_END
18071807
1808ROM_START( pc7000 )
1809    ROM_REGION16_LE(0x100000,"maincpu", 0)
1810    ROMX_LOAD( "mitsubishi-m5l27128k-1.bin", 0xf8000, 0x4000, CRC(9683957f) SHA1(4569eab6d88eb1bba0d553d1358e593c326978aa), ROM_SKIP(1))
1811    ROMX_LOAD( "mitsubishi-m5l27128k-2.bin", 0xf8001, 0x4000, CRC(99b229a4) SHA1(5800c8bafed26873d8cfcc79a05f93a780a31c91), ROM_SKIP(1))
1812
1813   /* IBM 1501981(CGA) and 1501985(MDA) Character rom */
1814   ROM_REGION(0x2000,"gfx1", 0)
1815   ROM_LOAD("5788005.u33", 0x00000, 0x2000, CRC(0bf56d70) SHA1(c2a8b10808bf51a3c123ba3eb1e9dd608231916f)) /* "AMI 8412PI // 5788005 // (C) IBM CORP. 1981 // KOREA" */
1816ROM_END
1817
18081818/***************************************************************************
18091819
18101820  Game driver(s)
r12236r12237
18441854COMP ( 1987,   m240,       ibm5150,   0,   olivetti,   pccga,   pccga,   "Olivetti",  "M240" , GAME_NOT_WORKING)
18451855
18461856COMP ( 1983,   ibm5550,    ibm5150,   0,   ibm5550,   pccga,   pccga,   "IBM",  "5550" , GAME_NOT_WORKING)
1857
1858COMP(  1985,   pc7000,      ibm5150,   0,   pccga,     pccga,      pccga,   "Sharp",  "PC-7000" , GAME_NOT_WORKING)
src/mess/mess.mak
r12236r12237
17591759   $(MESS_DRIVERS)/vii.o      \
17601760   $(MESS_DRIVERS)/vta2000.o   \
17611761   $(MESS_DRIVERS)/xor100.o   \
1762   $(MESS_DRIVERS)/z100.o      \
17621763
17631764
17641765

Previous 15994 Revisions Next


© 1998-2018 The MESS Team