Previous 15994 Revisions Next

r5476 Friday 21st August, 2009 at 06:49:14 UTC by Miodrag Milanović
Added I4004 from MAME tree and added Busicom 141-PF and 4004 Nixie Tube Clock
[artwork]4004clk.zip*
[docs]messnew.txt
[src/emu/cpu]cpu.mak
[src/emu/cpu/i4004]4004dasm.c* i4004.c* i4004.h*
[src/mess]mess.mak messdriv.c
[src/mess/drivers]4004clk.c* busicom.c*
[src/mess/includes]busicom.h*
[src/mess/video]busicom.c*

src/emu/cpu/cpu.mak
r5475r5476
544544                     $(CPUSRC)/e132xs/e132xsop.c
545545
546546
547                     
548#-------------------------------------------------
549# Intel 4004
550#-------------------------------------------------
547551
552ifneq ($(filter I4004,$(CPUS)),)
553OBJDIRS += $(CPUOBJ)/i4004
554CPUOBJS += $(CPUOBJ)/i4004/i4004.o
555DBGOBJS += $(CPUOBJ)/i4004/4004dasm.o
556endif
557
558$(CPUOBJ)/i4004/i4004.o:   $(CPUSRC)/i4004/i4004.c \
559                     $(CPUSRC)/i4004/i4004.h
560
561                     
562
548563#-------------------------------------------------
549564# Intel 8080/8085A
550565#-------------------------------------------------
src/emu/cpu/i4004/i4004.c
r0r5476
1/*****************************************************************************
2 *
3 *   i4004.c
4 *
5 *   Intel 4004 CPU
6 *
7 *   Initial version by Miodrag Milanovic
8 *
9 *****************************************************************************/
10#include "debugger.h"
11#include "i4004.h"
12
13#define VERBOSE 0
14
15#define LOG(x) do { if (VERBOSE) logerror x; } while (0)
16
17static UINT8 kbp_table[] = { 0x00,0x01,0x02,0x0f,0x03,0x0f,0x0f,0x0f,0x04,0x0f,0x0f,0x0f,0x0f,0x0f,0x0f,0x0f };
18
19/***************************************************************************
20    TYPE DEFINITIONS
21***************************************************************************/
22
23typedef struct _i4004_state i4004_state;
24struct _i4004_state
25{
26   UINT8   A; // Accumulator
27   UINT8   R[8];
28   PAIR   ADDR[4]; // Address registers
29   PAIR   RAM;
30   UINT8   C; // Carry flag
31   UINT8   TEST; // Test PIN status
32   PAIR   PC; // It is in fact one of ADDR regs
33
34   const device_config *device;
35   const address_space *program;
36   const address_space *data;
37   const address_space *io;
38   cpu_state_table    state;
39   int               icount;
40   int             pc_pos; // PC possition in ADDR
41   int               addr_mask;
42};
43
44/***************************************************************************
45    MACROS
46***************************************************************************/
47#define GET_PC               (cpustate->ADDR[cpustate->pc_pos])
48
49/***************************************************************************
50    CPU STATE DESCRIPTION
51***************************************************************************/
52
53#define I4004_STATE_ENTRY(_name, _format, _member, _datamask, _flags) \
54   CPU_STATE_ENTRY(I4004_##_name, #_name, _format, i4004_state, _member, _datamask, ~0, _flags)
55
56static const cpu_state_entry state_array[] =
57{
58   I4004_STATE_ENTRY(PC,   "%03X", PC.w.l, 0x0fff, 0)
59   I4004_STATE_ENTRY(GENPC,"%03X", PC.w.l, 0x0fff, CPUSTATE_NOSHOW)
60   I4004_STATE_ENTRY(A,   "%01X", A, 0x0f, 0)
61   I4004_STATE_ENTRY(R01, "%02X", R[0], 0xff, 0)
62   I4004_STATE_ENTRY(R23, "%02X", R[1], 0xff, 0)
63   I4004_STATE_ENTRY(R45, "%02X", R[2], 0xff, 0)
64   I4004_STATE_ENTRY(R67, "%02X", R[3], 0xff, 0)
65   I4004_STATE_ENTRY(R89, "%02X", R[4], 0xff, 0)
66   I4004_STATE_ENTRY(RAB, "%02X", R[5], 0xff, 0)
67   I4004_STATE_ENTRY(RCD, "%02X", R[6], 0xff, 0)
68   I4004_STATE_ENTRY(REF, "%02X", R[7], 0xff, 0)
69   I4004_STATE_ENTRY(ADDR1, "%03X", ADDR[0].w.l, 0x0fff, 0)
70   I4004_STATE_ENTRY(ADDR2, "%03X", ADDR[1].w.l, 0x0fff, 0)
71   I4004_STATE_ENTRY(ADDR3, "%03X", ADDR[2].w.l, 0x0fff, 0)
72   I4004_STATE_ENTRY(ADDR4, "%03X", ADDR[3].w.l, 0x0fff, 0)
73   I4004_STATE_ENTRY(RAM, "%03X", RAM.w.l, 0x0fff, 0)
74};
75
76static const cpu_state_table state_table_template =
77{
78   NULL,                  /* pointer to the base of state (offsets are relative to this) */
79   0,                     /* subtype this table refers to */
80   ARRAY_LENGTH(state_array),   /* number of entries */
81   state_array               /* array of entries */
82};
83
84/***************************************************************************
85    INLINE FUNCTIONS
86***************************************************************************/
87
88INLINE i4004_state *get_safe_token(const device_config *device)
89{
90   assert(device != NULL);
91   assert(device->token != NULL);
92   assert(device->type == CPU);
93   assert(cpu_get_type(device) == CPU_I4004);
94   return (i4004_state *)device->token;
95}
96
97INLINE UINT8 ROP(i4004_state *cpustate)
98{
99   UINT8 retVal = memory_decrypted_read_byte(cpustate->program, GET_PC.w.l);
100   GET_PC.w.l = (GET_PC.w.l + 1) & 0x0fff;
101   cpustate->PC = GET_PC;
102   return retVal;
103}
104
105INLINE UINT8 READ_ROM(i4004_state *cpustate)
106{
107   return memory_decrypted_read_byte(cpustate->program, (GET_PC.w.l & 0x0f00) | cpustate->R[0]);
108}
109
110INLINE void WPM(i4004_state *cpustate)
111{
112   UINT8 t =  (memory_read_byte_8le(cpustate->program, cpustate->RAM.d) << 4) | cpustate->A;
113   memory_write_byte_8le(cpustate->program, (GET_PC.w.l & 0x0f00) | cpustate->RAM.d, t);
114}
115
116
117INLINE UINT8 ARG(i4004_state *cpustate)
118{
119   UINT8 retVal = memory_raw_read_byte(cpustate->program, GET_PC.w.l);
120   GET_PC.w.l = (GET_PC.w.l + 1) & 0x0fff;
121   cpustate->PC = GET_PC;
122   return retVal;
123}
124
125INLINE UINT8 RM(i4004_state *cpustate)
126{
127   return memory_read_byte_8le(cpustate->data, cpustate->RAM.d) & 0x0f;
128}
129
130INLINE UINT8 RMS(i4004_state *cpustate, UINT32 a)
131{
132   return memory_read_byte_8le(cpustate->data, (cpustate->RAM.d & 0xff0) + a) >> 4;
133}
134
135INLINE void WM(i4004_state *cpustate, UINT8 v)
136{
137   UINT8 t =  memory_read_byte_8le(cpustate->data, cpustate->RAM.d);
138   memory_write_byte_8le(cpustate->data, cpustate->RAM.d, (t & 0xf0) | v);
139}
140
141
142INLINE void WMP(i4004_state *cpustate, UINT8 v)
143{
144   memory_write_byte_8le(cpustate->io, (cpustate->RAM.d >> 6) | 0x10, v & 0x0f);
145}
146
147INLINE void WMS(i4004_state *cpustate, UINT32 a, UINT8 v)
148{
149   UINT8 t =  memory_read_byte_8le(cpustate->data, (cpustate->RAM.d & 0xff0) + a);
150   memory_write_byte_8le(cpustate->data,(cpustate->RAM.d & 0xff0) + a, (t & 0x0f) | (v<<4));
151}
152
153INLINE UINT8 RIO(i4004_state *cpustate)
154{
155   return memory_read_byte_8le(cpustate->io, cpustate->RAM.b.l >> 4) & 0x0f;
156}
157
158INLINE void WIO(i4004_state *cpustate, UINT8 v)
159{
160   memory_write_byte_8le(cpustate->io, cpustate->RAM.b.l >> 4, v & 0x0f);
161}
162
163INLINE UINT8 GET_REG(i4004_state *cpustate, UINT8 num)
164{
165   UINT8 r = cpustate->R[num>>1];
166   if (num & 1) {
167      return r & 0x0f;
168   } else {
169      return (r >> 4) & 0x0f;
170   }
171}
172
173INLINE void SET_REG(i4004_state *cpustate, UINT8 num, UINT8 val)
174{
175   if (num & 1) {
176      cpustate->R[num>>1] = (cpustate->R[num>>1] & 0xf0) + (val & 0x0f);
177   } else {
178      cpustate->R[num>>1] = (cpustate->R[num>>1] & 0x0f) + ((val & 0x0f) << 4);
179   }
180}
181
182INLINE void PUSH_STACK(i4004_state *cpustate)
183{
184   cpustate->pc_pos = (cpustate->pc_pos + 1) & cpustate->addr_mask;
185}
186
187INLINE void POP_STACK(i4004_state *cpustate)
188{
189   cpustate->ADDR[cpustate->pc_pos].d = 0;
190   cpustate->pc_pos = (cpustate->pc_pos - 1) & cpustate->addr_mask;
191}
192
193void i4004_set_test(const device_config *device, UINT8 val)
194{
195   i4004_state *cpustate = get_safe_token(device);
196   cpustate->TEST = val;
197}
198
199static void execute_one(i4004_state *cpustate, int opcode)
200{
201   cpustate->icount -= 8;
202   switch (opcode)
203   {
204      case 0x00:    /* NOP  */
205         /* no op */
206         break;
207      case 0x10: case 0x11: case 0x12: case 0x13:
208      case 0x14: case 0x15: case 0x16: case 0x17:
209      case 0x18: case 0x19: case 0x1a: case 0x1b:
210      case 0x1c: case 0x1d: case 0x1e: case 0x1f: /* JCN */
211         {
212            UINT8 arg =  ARG(cpustate);
213
214            UINT8 C1 = BIT(opcode,3);
215            UINT8 C2 = BIT(opcode,2);
216            UINT8 C3 = BIT(opcode,1);
217            UINT8 C4 = BIT(opcode,0);
218            UINT8 JUMP = (((cpustate->A == 0) ? 1 : 0) & C2) | ((cpustate->C) & C3) | ((cpustate->TEST ^ 1) & C4);
219            cpustate->icount -= 8;
220
221            if(((C1 ^ 1) &  JUMP) | (C1 & (JUMP ^ 1))) {
222               GET_PC.w.l = (GET_PC.w.l & 0x0f00) | arg;
223               cpustate->PC = GET_PC;
224            }
225         }
226         break;
227      case 0x20: case 0x22: case 0x24: case 0x26:
228      case 0x28: case 0x2a: case 0x2c: case 0x2e: /* FIM */
229         cpustate->icount -= 8;
230         cpustate->R[(opcode & 0x0f)>>1] = ROP(cpustate);
231         break;
232      case 0x21: case 0x23: case 0x25: case 0x27:
233      case 0x29: case 0x2b: case 0x2d: case 0x2f: /* SRC */
234         cpustate->RAM.b.l = cpustate->R[(opcode & 0x0f)>>1];
235         break;
236      case 0x30: case 0x32: case 0x34: case 0x36:
237      case 0x38: case 0x3a: case 0x3c: case 0x3e: /* FIN */
238         cpustate->icount -= 8;
239         cpustate->R[(opcode & 0x0f)>>1] = READ_ROM(cpustate);
240         break;
241      case 0x31: case 0x33: case 0x35: case 0x37:
242      case 0x39: case 0x3b: case 0x3d: case 0x3f: /* JIN */
243         GET_PC.w.l = (GET_PC.w.l & 0x0f00) | cpustate->R[(opcode & 0x0f)>>1];
244         cpustate->PC = GET_PC;
245         break;
246      case 0x40: case 0x41: case 0x42: case 0x43:
247      case 0x44: case 0x45: case 0x46: case 0x47:
248      case 0x48: case 0x49: case 0x4a: case 0x4b:
249      case 0x4c: case 0x4d: case 0x4e: case 0x4f: /* JUN */
250         cpustate->icount -= 8;
251         GET_PC.w.l = ((opcode & 0x0f) << 8) | ARG(cpustate);
252         cpustate->PC = GET_PC;
253         break;
254      case 0x50: case 0x51: case 0x52: case 0x53:
255      case 0x54: case 0x55: case 0x56: case 0x57:
256      case 0x58: case 0x59: case 0x5a: case 0x5b:
257      case 0x5c: case 0x5d: case 0x5e: case 0x5f: /* JMS */
258         {
259            UINT16 newPC = ((opcode & 0x0f) << 8) | ARG(cpustate);
260            cpustate->icount -= 8;
261            PUSH_STACK(cpustate);
262            GET_PC.w.l = newPC;
263            cpustate->PC = GET_PC;
264         }
265         break;
266      case 0x60: case 0x61: case 0x62: case 0x63:
267      case 0x64: case 0x65: case 0x66: case 0x67:
268      case 0x68: case 0x69: case 0x6a: case 0x6b:
269      case 0x6c: case 0x6d: case 0x6e: case 0x6f: /* INC */
270         SET_REG(cpustate, opcode & 0x0f, GET_REG(cpustate, opcode & 0x0f) + 1);
271         break;
272      case 0x70: case 0x71: case 0x72: case 0x73:
273      case 0x74: case 0x75: case 0x76: case 0x77:
274      case 0x78: case 0x79: case 0x7a: case 0x7b:
275      case 0x7c: case 0x7d: case 0x7e: case 0x7f: /* ISZ */
276         {
277            UINT8 val = (GET_REG(cpustate, opcode & 0x0f) + 1) & 0xf;
278            UINT16 addr = ARG(cpustate);
279            cpustate->icount -= 8;
280            SET_REG(cpustate, opcode & 0x0f, val);
281            if (val!=0) {
282               GET_PC.w.l = (GET_PC.w.l & 0x0f00) | addr;
283            }
284            cpustate->PC = GET_PC;
285         }
286         break;
287      case 0x80: case 0x81: case 0x82: case 0x83:
288      case 0x84: case 0x85: case 0x86: case 0x87:
289      case 0x88: case 0x89: case 0x8a: case 0x8b:
290      case 0x8c: case 0x8d: case 0x8e: case 0x8f: /* ADD */
291         {
292            UINT8 acc = cpustate->A + GET_REG(cpustate, opcode & 0x0f) + cpustate->C;
293            cpustate->A = acc & 0x0f;
294            cpustate->C = (acc >> 4) & 1;
295         }
296         break;
297      case 0x90: case 0x91: case 0x92: case 0x93:
298      case 0x94: case 0x95: case 0x96: case 0x97:
299      case 0x98: case 0x99: case 0x9a: case 0x9b:
300      case 0x9c: case 0x9d: case 0x9e: case 0x9f: /* SUB */
301         {
302            UINT8 acc = cpustate->A + (GET_REG(cpustate, opcode & 0x0f) ^ 0x0f) + (cpustate->C ^ 1);
303            cpustate->A = acc & 0x0f;
304            cpustate->C = (acc >> 4) & 1;
305         }
306         break;
307      case 0xa0: case 0xa1: case 0xa2: case 0xa3:
308      case 0xa4: case 0xa5: case 0xa6: case 0xa7:
309      case 0xa8: case 0xa9: case 0xaa: case 0xab:
310      case 0xac: case 0xad: case 0xae: case 0xaf: /* LD */
311         cpustate->A = GET_REG(cpustate, opcode & 0x0f);
312         break;
313      case 0xb0: case 0xb1: case 0xb2: case 0xb3:
314      case 0xb4: case 0xb5: case 0xb6: case 0xb7:
315      case 0xb8: case 0xb9: case 0xba: case 0xbb:
316      case 0xbc: case 0xbd: case 0xbe: case 0xbf: /* XCH */
317         {
318            UINT8 temp = cpustate->A;
319            cpustate->A = GET_REG(cpustate, opcode & 0x0f);
320            SET_REG(cpustate, opcode & 0x0f, temp);
321         }
322         break;
323      case 0xc0: case 0xc1: case 0xc2: case 0xc3:
324      case 0xc4: case 0xc5: case 0xc6: case 0xc7:
325      case 0xc8: case 0xc9: case 0xca: case 0xcb:
326      case 0xcc: case 0xcd: case 0xce: case 0xcf: /*  BBL */
327          POP_STACK(cpustate);
328          cpustate->A = opcode & 0x0f;
329          cpustate->PC = GET_PC;
330         break;
331      case 0xd0: case 0xd1: case 0xd2: case 0xd3:
332      case 0xd4: case 0xd5: case 0xd6: case 0xd7:
333      case 0xd8: case 0xd9: case 0xda: case 0xdb:
334      case 0xdc: case 0xdd: case 0xde: case 0xdf: /* LDM */
335         cpustate->A = opcode & 0x0f;
336         break;
337      case 0xe0: /* WRM */
338         WM(cpustate,cpustate->A);
339         break;
340      case 0xe1: /* WMP */
341         WMP(cpustate,cpustate->A);
342         break;
343      case 0xe2: /* WRR */
344         WIO(cpustate,cpustate->A);
345         break;
346      case 0xe3: /* WPM */
347         WPM(cpustate);
348         break;
349      case 0xe4: /* WR0 */
350         WMS(cpustate,0,cpustate->A);
351         break;
352      case 0xe5: /* WR1 */
353         WMS(cpustate,1,cpustate->A);
354         break;
355      case 0xe6: /* WR2 */
356         WMS(cpustate,2,cpustate->A);
357         break;
358      case 0xe7: /* WR3 */
359         WMS(cpustate,3,cpustate->A);
360         break;
361      case 0xe8: /* SBM */
362         cpustate->A = cpustate->A + (RM(cpustate) ^ 0x0f) + (cpustate->C ^ 1);
363         cpustate->C = cpustate->A >> 4;
364         cpustate->A &= 0x0f;
365         break;
366      case 0xe9: /* RDM */
367         cpustate->A = RM(cpustate);
368         break;
369      case 0xea: /* RDR */
370         cpustate->A = RIO(cpustate);
371         break;
372      case 0xeb: /* ADM */
373         cpustate->A += RM(cpustate) + cpustate->C;
374         cpustate->C = cpustate->A >> 4;
375         cpustate->A &= 0x0f;
376         break;
377      case 0xec: /* RD0 */
378         cpustate->A = RMS(cpustate,0);
379         break;
380      case 0xed: /* RD1 */
381         cpustate->A = RMS(cpustate,1);
382         break;
383      case 0xee: /* RD2 */
384         cpustate->A = RMS(cpustate,2);
385         break;
386      case 0xef: /* RD3 */
387         cpustate->A = RMS(cpustate,3);
388         break;
389
390      case 0xf0: /* CLB */
391         cpustate->A = 0;
392         cpustate->C = 0;
393         break;
394      case 0xf1: /* CLC */
395         cpustate->C = 0;
396         break;
397      case 0xf2: /* IAC */
398         cpustate->A = cpustate->A++;
399         cpustate->C = cpustate->A >> 4;
400         cpustate->A &= 0x0f;
401         break;
402      case 0xf3: /* CMC */
403         cpustate->C ^= 1;
404         break;
405      case 0xf4: /* CMA */
406         cpustate->A ^= 0x0f;
407         break;
408      case 0xf5: /* RAL */
409         cpustate->A = (cpustate->A << 1) | cpustate->C;
410         cpustate->C = cpustate->A >> 4;
411         cpustate->A &= 0x0f;
412         break;
413      case 0xf6: /* RAR */
414         {
415            UINT8 c = cpustate->A & 1;
416            cpustate->A = (cpustate->A >> 1) | (cpustate->C  << 3);
417            cpustate->C = c;
418         }
419         break;
420      case 0xf7: /* TCC */
421         cpustate->A = cpustate->C;
422         cpustate->C = 0;
423         break;
424      case 0xf8: /* DAC */
425         cpustate->A = cpustate->A + 0x0f;
426         cpustate->C = cpustate->A >> 4;
427         cpustate->A &= 0x0f;
428         break;
429      case 0xf9: /* TCS */
430         cpustate->A = cpustate->C ? 10 : 9;
431         cpustate->C = 0;
432         break;
433      case 0xfa: /* STC */
434         cpustate->C = 1;
435         break;
436      case 0xfb: /* DAA */
437         if (cpustate->C || (cpustate->A > 9)) {
438            cpustate->A += 6;
439         }
440         if (cpustate->A > 0x0f) {
441            // it is unaffected if it is in range
442            cpustate->C = 1;
443         }
444         cpustate->A &= 0x0f;
445         break;
446      case 0xfc: /* KBP */
447         cpustate->A = kbp_table[cpustate->A];
448         break;
449      case 0xfd: /* DCL */
450         cpustate->RAM.b.h = cpustate->A;
451         break;
452   }
453}
454
455
456/***************************************************************************
457    COMMON EXECUTION
458***************************************************************************/
459
460static CPU_EXECUTE( i4004 )
461{
462   i4004_state *cpustate = get_safe_token(device);
463
464   cpustate->icount = cycles;
465
466
467   do
468   {
469      debugger_instruction_hook(device, GET_PC.d);
470      execute_one(cpustate, ROP(cpustate));
471
472   } while (cpustate->icount > 0);
473
474   return cycles - cpustate->icount;
475}
476
477/***************************************************************************
478    CORE INITIALIZATION
479***************************************************************************/
480
481static CPU_INIT( i4004 )
482{
483   i4004_state *cpustate = get_safe_token(device);
484
485   /* set up the state table */
486   cpustate->state = state_table_template;
487   cpustate->state.baseptr = cpustate;
488   cpustate->state.subtypemask = 1;
489
490   cpustate->device = device;
491
492   cpustate->program = memory_find_address_space(device, ADDRESS_SPACE_PROGRAM);
493   cpustate->data = memory_find_address_space(device, ADDRESS_SPACE_DATA);
494   cpustate->io = memory_find_address_space(device, ADDRESS_SPACE_IO);
495
496   state_save_register_device_item(device, 0, cpustate->PC);
497   state_save_register_device_item(device, 0, cpustate->A);
498   state_save_register_device_item(device, 0, cpustate->C);
499   state_save_register_device_item(device, 0, cpustate->TEST);
500   state_save_register_device_item(device, 0, cpustate->pc_pos);
501   state_save_register_device_item(device, 0, cpustate->ADDR[0]);
502   state_save_register_device_item(device, 0, cpustate->ADDR[1]);
503   state_save_register_device_item(device, 0, cpustate->ADDR[2]);
504   state_save_register_device_item(device, 0, cpustate->ADDR[3]);
505   state_save_register_device_item(device, 0, cpustate->R[0]);
506   state_save_register_device_item(device, 0, cpustate->R[1]);
507   state_save_register_device_item(device, 0, cpustate->R[2]);
508   state_save_register_device_item(device, 0, cpustate->R[3]);
509   state_save_register_device_item(device, 0, cpustate->R[4]);
510   state_save_register_device_item(device, 0, cpustate->R[5]);
511   state_save_register_device_item(device, 0, cpustate->R[6]);
512   state_save_register_device_item(device, 0, cpustate->R[7]);
513   state_save_register_device_item(device, 0, cpustate->RAM);
514}
515
516
517
518/***************************************************************************
519    COMMON RESET
520***************************************************************************/
521
522static CPU_RESET( i4004 )
523{
524   i4004_state *cpustate = get_safe_token(device);
525
526   cpustate->addr_mask = 3;
527   cpustate->C = 0;
528   cpustate->pc_pos = 0;
529   cpustate->A = 0;
530   memset(cpustate->R,0,8);
531   memset(cpustate->ADDR,0,sizeof(cpustate->ADDR));
532   cpustate->RAM.d = 0;
533   cpustate->PC = GET_PC;
534
535}
536
537
538
539/***************************************************************************
540    COMMON STATE IMPORT/EXPORT
541***************************************************************************/
542
543static CPU_IMPORT_STATE( i4004 )
544{
545}
546
547static CPU_EXPORT_STATE( i4004 )
548{
549}
550
551/***************************************************************************
552    COMMON SET INFO
553***************************************************************************/
554static CPU_SET_INFO( i4004 )
555{
556}
557
558/***************************************************************************
559    4004 GET INFO
560***************************************************************************/
561
562CPU_GET_INFO( i4004 )
563{
564   i4004_state *cpustate = (device != NULL && device->token != NULL) ? get_safe_token(device) : NULL;
565   switch (state)
566   {
567      /* --- the following bits of info are returned as 64-bit signed integers --- */
568      case CPUINFO_INT_CONTEXT_SIZE:               info->i = sizeof(i4004_state);         break;
569      case CPUINFO_INT_INPUT_LINES:               info->i = 0;                     break;
570      case CPUINFO_INT_DEFAULT_IRQ_VECTOR:         info->i = 0;                     break;
571      case DEVINFO_INT_ENDIANNESS:               info->i = ENDIANNESS_LITTLE;         break;
572      case CPUINFO_INT_CLOCK_MULTIPLIER:            info->i = 1;                     break;
573      case CPUINFO_INT_CLOCK_DIVIDER:               info->i = 1;                     break;
574      case CPUINFO_INT_MIN_INSTRUCTION_BYTES:         info->i = 1;                     break;
575      case CPUINFO_INT_MAX_INSTRUCTION_BYTES:         info->i = 2;                     break;
576      case CPUINFO_INT_MIN_CYCLES:               info->i = 8;                     break;
577      case CPUINFO_INT_MAX_CYCLES:               info->i = 16;                     break;
578
579      case CPUINFO_INT_DATABUS_WIDTH_PROGRAM:         info->i = 8;                     break;
580      case CPUINFO_INT_ADDRBUS_WIDTH_PROGRAM:       info->i = 12;                     break;
581      case CPUINFO_INT_ADDRBUS_SHIFT_PROGRAM:       info->i = 0;                     break;
582
583      case CPUINFO_INT_DATABUS_WIDTH_DATA:         info->i = 8;                     break;
584      case CPUINFO_INT_ADDRBUS_WIDTH_DATA:          info->i = 12;                     break;
585      case CPUINFO_INT_ADDRBUS_SHIFT_DATA:          info->i = 0;                     break;
586
587      case CPUINFO_INT_DATABUS_WIDTH_IO:            info->i = 8;                     break; // Only lower 4 bits used
588      case CPUINFO_INT_ADDRBUS_WIDTH_IO:             info->i = 6;                     break; // 4 I/O for each ROM chip and 4 OUT for each RAM
589      case CPUINFO_INT_ADDRBUS_SHIFT_IO:             info->i = 0;                     break; // There could be 4 chips in 16 banks for RAM
590
591      /* --- the following bits of info are returned as pointers to functions --- */
592      case CPUINFO_FCT_SET_INFO:      info->setinfo = CPU_SET_INFO_NAME(i4004);            break;
593      case CPUINFO_FCT_INIT:         info->init = CPU_INIT_NAME(i4004);                  break;
594      case CPUINFO_FCT_RESET:         info->reset = CPU_RESET_NAME(i4004);               break;
595      case CPUINFO_FCT_EXECUTE:      info->execute = CPU_EXECUTE_NAME(i4004);            break;
596      case CPUINFO_FCT_DISASSEMBLE:   info->disassemble = CPU_DISASSEMBLE_NAME(i4004);      break;
597      case CPUINFO_FCT_IMPORT_STATE:   info->import_state = CPU_IMPORT_STATE_NAME(i4004);      break;
598      case CPUINFO_FCT_EXPORT_STATE:   info->export_state = CPU_EXPORT_STATE_NAME(i4004);      break;
599
600      /* --- the following bits of info are returned as pointers --- */
601      case CPUINFO_PTR_INSTRUCTION_COUNTER:         info->icount = &cpustate->icount;      break;
602      case CPUINFO_PTR_STATE_TABLE:               info->state_table = &cpustate->state;   break;
603
604      /* --- the following bits of info are returned as NULL-terminated strings --- */
605      case DEVINFO_STR_NAME:                  strcpy(info->s, "4004");            break;
606      case DEVINFO_STR_FAMILY:               strcpy(info->s, "Intel 4004");         break;
607      case DEVINFO_STR_VERSION:               strcpy(info->s, "1.0");               break;
608      case DEVINFO_STR_SOURCE_FILE:            strcpy(info->s, __FILE__);            break;
609      case DEVINFO_STR_CREDITS:               strcpy(info->s, "Copyright Miodrag Milanovic"); break;
610
611      case CPUINFO_STR_FLAGS:
612         sprintf(info->s, ".%c%c%c",
613            (cpustate->A==0) ? 'Z':'.',
614            cpustate->C      ? 'C':'.',
615            cpustate->TEST   ? 'T':'.');
616         break;
617   }
618}
src/emu/cpu/i4004/i4004.h
r0r5476
1#ifndef __I4004_H__
2#define __I4004_H__
3
4#include "cpuintrf.h"
5
6
7/***************************************************************************
8    CONSTANTS
9***************************************************************************/
10
11enum
12{
13   I4004_PC,
14   I4004_A,
15   I4004_R01, I4004_R23, I4004_R45, I4004_R67, I4004_R89, I4004_RAB, I4004_RCD, I4004_REF,
16   I4004_ADDR1,I4004_ADDR2,I4004_ADDR3,I4004_ADDR4,I4004_RAM,
17   I4004_GENPC = REG_GENPC,
18   I4004_GENSP = REG_GENSP,
19   I4004_GENPCBASE = REG_GENPCBASE
20};
21
22/***************************************************************************
23    TYPE DEFINITIONS
24***************************************************************************/
25
26/***************************************************************************
27    FUNCTION PROTOTYPES
28***************************************************************************/
29
30CPU_GET_INFO( i4004 );
31#define CPU_I4004 CPU_GET_INFO_NAME( i4004 )
32
33CPU_DISASSEMBLE( i4004 );
34
35void i4004_set_test(const device_config *device, UINT8 val);
36#endif
src/emu/cpu/i4004/4004dasm.c
r0r5476
1/*****************************************************************************
2 *
3 *   4004dasm.c
4 *
5 *   Intel 4004 CPU Disassembly
6 *
7 *   Initial version by Miodrag Milanovic
8 *
9 *****************************************************************************/
10
11#include "cpuintrf.h"
12
13#define OP(A)   oprom[(A) - PC]
14#define ARG(A)  opram[(A) - PC]
15
16CPU_DISASSEMBLE( i4004 )
17{
18   UINT32 flags = 0;
19   UINT8 op;
20   unsigned PC = pc;
21   UINT16 page = PC & 0x0f00;
22   switch (op = OP(pc++))
23   {
24      case 0x00:    sprintf (buffer,"nop");                                 break;
25      case 0x11:    sprintf (buffer,"jnt $%03x",page | ARG(pc));   pc++;   break;
26      case 0x12:    sprintf (buffer,"jc $%03x",page | ARG(pc));      pc++;   break;
27      case 0x14:    sprintf (buffer,"jz $%03x",page | ARG(pc));      pc++;   break;
28      case 0x19:    sprintf (buffer,"jt $%03x",page | ARG(pc));      pc++;   break;
29      case 0x1a:    sprintf (buffer,"jnc $%03x",page | ARG(pc));   pc++;   break;
30      case 0x1c:    sprintf (buffer,"jnz $%03x",page | ARG(pc));   pc++;   break;
31      case 0x10: case 0x13: case 0x15: case 0x16:
32      case 0x17: case 0x18: case 0x1b: case 0x1d:
33      case 0x1e: case 0x1f:
34                  sprintf (buffer,"jcn $%01x,$%03x",op & 0x0f,page | ARG(pc)); pc++; break;
35      case 0x20: case 0x22: case 0x24: case 0x26:
36      case 0x28: case 0x2a: case 0x2c: case 0x2e:
37                  sprintf (buffer,"fim $%01x,$%02x",op & 0x0f,OP(pc)); pc++; break;
38      case 0x21: case 0x23: case 0x25: case 0x27:
39      case 0x29: case 0x2b: case 0x2d: case 0x2f:
40                  sprintf (buffer,"src $%01x",(op & 0x0f)-1); break;
41      case 0x30: case 0x32: case 0x34: case 0x36:
42      case 0x38: case 0x3a: case 0x3c: case 0x3e:
43                  sprintf (buffer,"fin $%01x",op & 0x0f); break;
44      case 0x31: case 0x33: case 0x35: case 0x37:
45      case 0x39: case 0x3b: case 0x3d: case 0x3f:
46                  sprintf (buffer,"jin $%01x",(op & 0x0f)-1); break;
47      case 0x40: case 0x41: case 0x42: case 0x43:
48      case 0x44: case 0x45: case 0x46: case 0x47:
49      case 0x48: case 0x49: case 0x4a: case 0x4b:
50      case 0x4c: case 0x4d: case 0x4e: case 0x4f:
51               sprintf (buffer,"jun $%01x%02x",op & 0x0f,ARG(pc)); pc++; break;
52      case 0x50: case 0x51: case 0x52: case 0x53:
53      case 0x54: case 0x55: case 0x56: case 0x57:
54      case 0x58: case 0x59: case 0x5a: case 0x5b:
55      case 0x5c: case 0x5d: case 0x5e: case 0x5f:
56               sprintf (buffer,"jms $%01x%02x",op & 0x0f,ARG(pc)); pc++; break;
57      case 0x60: case 0x61: case 0x62: case 0x63:
58      case 0x64: case 0x65: case 0x66: case 0x67:
59      case 0x68: case 0x69: case 0x6a: case 0x6b:
60      case 0x6c: case 0x6d: case 0x6e: case 0x6f:
61               sprintf (buffer,"inc $%01x",op & 0x0f); break;
62      case 0x70: case 0x71: case 0x72: case 0x73:
63      case 0x74: case 0x75: case 0x76: case 0x77:
64      case 0x78: case 0x79: case 0x7a: case 0x7b:
65      case 0x7c: case 0x7d: case 0x7e: case 0x7f:
66               sprintf (buffer,"isz $%01x,%03x",op & 0x0f,page | ARG(pc)); pc++; break;
67      case 0x80: case 0x81: case 0x82: case 0x83:
68      case 0x84: case 0x85: case 0x86: case 0x87:
69      case 0x88: case 0x89: case 0x8a: case 0x8b:
70      case 0x8c: case 0x8d: case 0x8e: case 0x8f:
71               sprintf (buffer,"add $%01x",op & 0x0f); break;
72      case 0x90: case 0x91: case 0x92: case 0x93:
73      case 0x94: case 0x95: case 0x96: case 0x97:
74      case 0x98: case 0x99: case 0x9a: case 0x9b:
75      case 0x9c: case 0x9d: case 0x9e: case 0x9f:
76               sprintf (buffer,"sub $%01x",op & 0x0f); break;
77      case 0xa0: case 0xa1: case 0xa2: case 0xa3:
78      case 0xa4: case 0xa5: case 0xa6: case 0xa7:
79      case 0xa8: case 0xa9: case 0xaa: case 0xab:
80      case 0xac: case 0xad: case 0xae: case 0xaf:
81               sprintf (buffer,"ld $%01x",op & 0x0f); break;
82      case 0xb0: case 0xb1: case 0xb2: case 0xb3:
83      case 0xb4: case 0xb5: case 0xb6: case 0xb7:
84      case 0xb8: case 0xb9: case 0xba: case 0xbb:
85      case 0xbc: case 0xbd: case 0xbe: case 0xbf:
86               sprintf (buffer,"xch $%01x",op & 0x0f); break;
87      case 0xc0: case 0xc1: case 0xc2: case 0xc3:
88      case 0xc4: case 0xc5: case 0xc6: case 0xc7:
89      case 0xc8: case 0xc9: case 0xca: case 0xcb:
90      case 0xcc: case 0xcd: case 0xce: case 0xcf:
91               sprintf (buffer,"bbl $%01x",op & 0x0f); break;
92      case 0xd0: case 0xd1: case 0xd2: case 0xd3:
93      case 0xd4: case 0xd5: case 0xd6: case 0xd7:
94      case 0xd8: case 0xd9: case 0xda: case 0xdb:
95      case 0xdc: case 0xdd: case 0xde: case 0xdf:
96               sprintf (buffer,"ldm $%01x",op & 0x0f); break;
97
98      case 0xe0:    sprintf (buffer,"wrm"); break;
99      case 0xe1:    sprintf (buffer,"wmp"); break;
100      case 0xe2:    sprintf (buffer,"wrr"); break;
101      case 0xe3:    sprintf (buffer,"wpm"); break;
102      case 0xe4:    sprintf (buffer,"wr0"); break;
103      case 0xe5:    sprintf (buffer,"wr1"); break;
104      case 0xe6:    sprintf (buffer,"wr2"); break;
105      case 0xe7:    sprintf (buffer,"wr3"); break;
106      case 0xe8:    sprintf (buffer,"sbm"); break;
107      case 0xe9:    sprintf (buffer,"rdm"); break;
108      case 0xea:    sprintf (buffer,"rdr"); break;
109      case 0xeb:    sprintf (buffer,"adm"); break;
110      case 0xec:    sprintf (buffer,"rd0"); break;
111      case 0xed:    sprintf (buffer,"rd1"); break;
112      case 0xee:    sprintf (buffer,"rd2"); break;
113      case 0xef:    sprintf (buffer,"rd3"); break;
114
115      case 0xf0:    sprintf (buffer,"clb"); break;
116      case 0xf1:    sprintf (buffer,"clc"); break;
117      case 0xf2:    sprintf (buffer,"iac"); break;
118      case 0xf3:    sprintf (buffer,"cmc"); break;
119      case 0xf4:    sprintf (buffer,"cma"); break;
120      case 0xf5:    sprintf (buffer,"ral"); break;
121      case 0xf6:    sprintf (buffer,"rar"); break;
122      case 0xf7:    sprintf (buffer,"tcc"); break;
123      case 0xf8:    sprintf (buffer,"dac"); break;
124      case 0xf9:    sprintf (buffer,"tcs"); break;
125      case 0xfa:    sprintf (buffer,"stc"); break;
126      case 0xfb:    sprintf (buffer,"daa"); break;
127      case 0xfc:    sprintf (buffer,"kbp"); break;
128      case 0xfd:    sprintf (buffer,"dcl"); break;
129
130      default : sprintf (buffer,"illegal"); break;
131   }
132   return (pc - PC) | flags | DASMFLAG_SUPPORTED;
133}
src/mess/video/busicom.c
r0r5476
1/***************************************************************************
2   
3        Busicom 141-PF
4
5        04/08/2009 Initial driver by Miodrag Milanovic
6
7****************************************************************************/
8#include "driver.h"
9#include "includes/busicom.h"
10
11// Printer font 34x44 as provided by MIT Media Lab
12
13UINT8 busicom_printer_line[11][17];
14UINT8 busicom_printer_line_color[11];
15
16static UINT8 printer_font[]= {   
170,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
180,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
190,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
200,0,0,0,0,0,0,0,0,0,0,0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0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
18150,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 };
1816
1817VIDEO_START( busicom )
1818{
1819}
1820
1821VIDEO_UPDATE( busicom )
1822{
1823   int y, x, b, j;   
1824   //34x44
1825   for (y = 0; y < 11; y++)
1826   {
1827      UINT8 col = 8 * busicom_printer_line_color[y];
1828      for (x = 0; x < 17; x++)
1829      {
1830         UINT8 chr = busicom_printer_line[y][x];         
1831         for (j = 0; j < 44; j++) {           
1832            for (b = 0; b < 34; b++)
1833            {                       
1834               *BITMAP_ADDR16(bitmap, (y*44)+j, x*40+b) =  printer_font[44*34 * chr + j*34 + b] + col ;
1835            }
1836            for (b = 34; b < 40; b++)
1837            {                       
1838               *BITMAP_ADDR16(bitmap, (y*44)+j, x*40+b) =  0;
1839            }
1840
1841         }
1842      }
1843   }
1844   return 0;
1845}
1846static UINT8 color[] = { 0xFF,0xDB,0xB7,0x92,0x6E,0x49,0x25,0x00 };
1847
1848static UINT8 color_red[] = { 0xb0,0xb5,0xc0,0xc5,0xd0,0xd5,0xdf };
1849
1850PALETTE_INIT( busicom )
1851{
1852   int i;
1853   for(i=0;i<8;i++) {     
1854      palette_set_color( machine, i, MAKE_RGB(color[i],color[i],color[i]) );
1855   }
1856   palette_set_color( machine, 8, MAKE_RGB(0xff,0xff,0xff) );
1857   for(i=0;i<7;i++) {     
1858      palette_set_color( machine, i+9, MAKE_RGB(color_red[i],0x00,0x00) );
1859   }
1860}
src/mess/includes/busicom.h
r0r5476
1/*****************************************************************************
2 *
3 * includes/busicom.h
4 *
5 ****************************************************************************/
6
7#ifndef BUSICOM_H_
8#define BUSICOM_H_
9
10
11/*----------- defined in video/busicom.c -----------*/
12
13extern UINT8 busicom_printer_line[11][17];
14extern UINT8 busicom_printer_line_color[11];
15
16extern PALETTE_INIT( busicom );
17extern VIDEO_START( busicom );
18extern VIDEO_UPDATE( busicom );
19
20#endif /* BUSICOM_H_ */
src/mess/messdriv.c
r5475r5476
14651465    DRIVER( elf2 )
14661466    DRIVER( pippin )
14671467    DRIVER( sol20 )
1468
1468    DRIVER( 4004clk )
1469    DRIVER( busicom )
1470   
14691471#endif /* DRIVER_RECURSIVE */
src/mess/mess.mak
r5475r5476
4545
4646CPUS += Z80
4747#CPUS += Z180
48CPUS += I4004
4849CPUS += I8085
4950CPUS += M6502
5051CPUS += H6280
r5475r5476
14501451   $(MESS_VIDEO)/pp01.o      \
14511452
14521453$(MESSOBJ)/skeleton.a:         \
1454   $(MESS_DRIVERS)/4004clk.o   \
14531455   $(MESS_DRIVERS)/act.o      \
14541456   $(MESS_DRIVERS)/amico2k.o   \
14551457   $(MESS_DRIVERS)/bob85.o      \
1458   $(MESS_DRIVERS)/busicom.o   \
1459   $(MESS_VIDEO)/busicom.o      \
14561460   $(MESS_DRIVERS)/d6809.o      \
14571461   $(MESS_DRIVERS)/elwro800.o   \
14581462   $(MESS_DRIVERS)/fk1.o      \
src/mess/drivers/4004clk.c
r0r5476
1/***************************************************************************
2   
3        4004 Nixie Clock
4
5        03/08/2009 Initial driver
6
7****************************************************************************/
8
9#include "driver.h"
10#include "cpu/i4004/i4004.h"
11#include "sound/dac.h"
12
13static UINT16 nixie[6];
14static UINT16 nixie_temp[16];
15
16static READ8_HANDLER(data_r)
17{
18   return input_port_read(space->machine, "INPUT") & 0x0f;
19}
20
21static UINT8 nixie_to_num(UINT16 val)
22{
23   if (BIT(val,0)) return 0;
24   if (BIT(val,1)) return 1;
25   if (BIT(val,2)) return 2;
26   if (BIT(val,3)) return 3;
27   if (BIT(val,4)) return 4;
28   if (BIT(val,5)) return 5;
29   if (BIT(val,6)) return 6;
30   if (BIT(val,7)) return 7;
31   if (BIT(val,8)) return 8;
32   if (BIT(val,9)) return 9;
33   return 10;
34}
35
36INLINE void output_set_nixie_value(int index, int value)
37{
38   output_set_indexed_value("nixie", index, value);
39}
40
41INLINE void output_set_neon_value(int index, int value)
42{
43   output_set_indexed_value("neon", index, value);
44}
45
46static void update_nixie(void)
47{
48   nixie[0] = ((nixie_temp[2] & 3)<<8) | (nixie_temp[1] << 4) | nixie_temp[0];
49   nixie[1] = (nixie_temp[4] << 6) | (nixie_temp[3] << 2) | (nixie_temp[2] >>2);
50   nixie[2] = ((nixie_temp[7] & 3)<<8) | (nixie_temp[6] << 4) | nixie_temp[5];
51   nixie[3] = (nixie_temp[9] << 6) | (nixie_temp[8] << 2) | (nixie_temp[7] >>2);     
52   nixie[4] = ((nixie_temp[12] & 3)<<8) | (nixie_temp[11] << 4) | nixie_temp[10];
53   nixie[5] = (nixie_temp[14] << 6) | (nixie_temp[13] << 2) | (nixie_temp[12] >>2);
54   
55   output_set_nixie_value(0,nixie_to_num(nixie[5]));
56   output_set_nixie_value(1,nixie_to_num(nixie[4]));
57   output_set_nixie_value(2,nixie_to_num(nixie[3]));
58   output_set_nixie_value(3,nixie_to_num(nixie[2]));
59   output_set_nixie_value(4,nixie_to_num(nixie[1]));
60   output_set_nixie_value(5,nixie_to_num(nixie[0]));
61}
62
63static WRITE8_HANDLER(nixie_w)
64{
65   nixie_temp[offset] = data;
66   update_nixie();
67}
68
69static WRITE8_HANDLER(neon_w)
70{
71   output_set_neon_value(0,BIT(data,3));
72   output_set_neon_value(1,BIT(data,2));
73   output_set_neon_value(2,BIT(data,1));
74   output_set_neon_value(3,BIT(data,0));
75}
76
77static WRITE8_HANDLER(relays_w)
78{
79   const device_config *dac_device = devtag_get_device(space->machine, "dac");
80   dac_data_w(dac_device, (data & 1) ? 0x80 : 0x40); //tick - tock   
81}
82
83static ADDRESS_MAP_START(4004clk_rom, ADDRESS_SPACE_PROGRAM, 8)
84   AM_RANGE(0x0000, 0x0FFF) AM_ROM
85ADDRESS_MAP_END
86
87static ADDRESS_MAP_START(4004clk_mem, ADDRESS_SPACE_DATA, 8)
88   ADDRESS_MAP_UNMAP_HIGH   
89   AM_RANGE(0x0000, 0x007F) AM_RAM
90ADDRESS_MAP_END
91
92static ADDRESS_MAP_START( 4004clk_io , ADDRESS_SPACE_IO, 8)
93   ADDRESS_MAP_UNMAP_HIGH   
94   AM_RANGE(0x00, 0x0e) AM_WRITE(nixie_w)
95   AM_RANGE(0x00, 0x00) AM_READ(data_r)
96   AM_RANGE(0x0f, 0x0f) AM_WRITE(neon_w)
97   AM_RANGE(0x10, 0x10) AM_WRITE(relays_w)
98ADDRESS_MAP_END
99
100/* Input ports */
101INPUT_PORTS_START( 4004clk )
102   PORT_START("INPUT")
103      PORT_BIT(0x01, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("Select") PORT_CODE(KEYCODE_1)
104      PORT_BIT(0x02, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("Browse") PORT_CODE(KEYCODE_2)
105      PORT_CONFNAME( 0x04, 0x00, "Tick-Tock")
106         PORT_CONFSETTING( 0x00, "ON" )
107         PORT_CONFSETTING( 0x04, "OFF" )
108      PORT_CONFNAME( 0x08, 0x08, "50/60 Hz")
109         PORT_CONFSETTING( 0x00, "50 Hz" )
110         PORT_CONFSETTING( 0x08, "60 Hz" )
111INPUT_PORTS_END
112
113static UINT8 timer = 0;
114
115/*
116      16ms Int generator
117        __  __
118      _| |_|
119      0 1 0 1
120     
121*/
122
123static TIMER_CALLBACK(timer_callback)
124{
125   i4004_set_test(cputag_get_cpu(machine, "maincpu"),timer);
126   timer^=1;
127}
128
129static MACHINE_RESET(4004clk)
130{
131   timer = 0;
132   timer_pulse(machine, ATTOTIME_IN_HZ(120), NULL, 0, timer_callback);
133}
134
135static const char layout_4004clk [] = "4004clk";
136
137static MACHINE_DRIVER_START( 4004clk )
138    /* basic machine hardware */
139    MDRV_CPU_ADD("maincpu",I4004, XTAL_5MHz / 8)
140    MDRV_CPU_PROGRAM_MAP(4004clk_rom)
141    MDRV_CPU_DATA_MAP(4004clk_mem)
142    MDRV_CPU_IO_MAP(4004clk_io)   
143
144    MDRV_MACHINE_RESET(4004clk)
145   
146   /* video hardware */
147   MDRV_DEFAULT_LAYOUT(layout_4004clk)   
148   
149   /* sound hardware */
150   MDRV_SPEAKER_STANDARD_MONO("mono")
151   MDRV_SOUND_ADD("dac", DAC, 0)
152   MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0)
153MACHINE_DRIVER_END
154
155/* ROM definition */
156ROM_START( 4004clk )
157    ROM_REGION( 0x1000, "maincpu", ROMREGION_ERASEFF )
158   ROM_LOAD( "clock.u30", 0x0000, 0x0100, CRC(3d8608a5) SHA1(47fa0a91779e1afc34592f91068f8af2e74593d4))
159   ROM_LOAD( "clock.u31", 0x0100, 0x0100, CRC(c83af4bc) SHA1(c8bd7ff1322e5ad280364ed87fc9e2ed38120c21))
160   ROM_LOAD( "clock.u32", 0x0200, 0x0100, CRC(72442ae7) SHA1(dc25269cf9db7a9e70a86fededeb01efecf80fe7))
161   ROM_LOAD( "clock.u33", 0x0300, 0x0100, CRC(74789383) SHA1(ca5ef2c42dae1761599ead56498fb0bfa0db80a5))
162   ROM_LOAD( "clock.u34", 0x0400, 0x0100, CRC(d817cc54) SHA1(a54e744465dde20d37ba54bf2bdb1c4708235f9a))
163   ROM_LOAD( "clock.u35", 0x0500, 0x0100, CRC(ece36d21) SHA1(c8cf7e08e90463e910ed2d21d8e562e73d7e0b08))
164   ROM_LOAD( "clock.u36", 0x0600, 0x0100, CRC(65aa3cb1) SHA1(9b134bd46747a1bccc004c347b3162e9dc846426))
165   ROM_LOAD( "clock.u37", 0x0700, 0x0100, CRC(4c2a2632) SHA1(5f75c2d67571ffcfb98f37944f7f4bc7f531c109))
166   ROM_LOAD( "clock.u38", 0x0800, 0x0100, CRC(133da0d6) SHA1(08863a287471c0e77f27cea087cb4a3b372d49c1))
167   ROM_LOAD( "clock.u39", 0x0900, 0x0100, CRC(0628593c) SHA1(34249753056cd425e0d48c188c830d64464006c9))
168   ROM_LOAD( "clock.u40", 0x0A00, 0x0100, CRC(1c2e94b5) SHA1(89e6c70b936fd9882a229de671dcada7c39b9e8e))
169   ROM_LOAD( "clock.u41", 0x0B00, 0x0100, CRC(48b4510d) SHA1(17c5eedc36b469bfae23e204c614ccc01bd4df02))
170   ROM_LOAD( "clock.u42", 0x0C00, 0x0100, CRC(4b768675) SHA1(8862b9911bd5907e679539c1e98921f0686b8a76))
171   ROM_LOAD( "clock.u43", 0x0D00, 0x0100, CRC(df8db80f) SHA1(34ef8e9ae9fd4e88659e1e14759a2baf1cf589a5))
172   ROM_LOAD( "clock.u44", 0x0E00, 0x0100, CRC(23037c71) SHA1(87702bdf5985fa58d4cabcc0d4530e229bfebcbb))
173   ROM_LOAD( "clock.u45", 0x0F00, 0x0100, CRC(a8d419ef) SHA1(86742a5ad410c027e9cf9a95e2006dc1128715e5))
174ROM_END
175
176/* Driver */
177
178/*    YEAR  NAME    PARENT  COMPAT   MACHINE    INPUT    INIT    CONFIG  COMPANY               FULLNAME             FLAGS */
179COMP( 2008, 4004clk,  0,    0,       4004clk,    4004clk,  0,      0,      "John L. Weinrich",   "4004 Nixie Clock", 0)
180
src/mess/drivers/busicom.c
r0r5476
1/***************************************************************************
2   
3        Busicom 141-PF
4
5        04/08/2009 Initial driver by Miodrag Milanovic
6
7****************************************************************************/
8
9#include "driver.h"
10#include "cpu/i4004/i4004.h"
11#include "includes/busicom.h"
12
13static UINT8 drum_index =0;
14static UINT16 keyboard_shifter = 0;
15static UINT32 printer_shifter = 0;
16
17static UINT8 get_bit_selected(UINT32 val,int num)
18{
19   int i;
20   for(i=0;i<num;i++) {
21      if (BIT(val,i)==0) return i;
22   }   
23   return 0;
24}
25static READ8_HANDLER(keyboard_r)
26{
27   static const char *const keynames[] = { "LINE0", "LINE1", "LINE2", "LINE3", "LINE4", "LINE5", "LINE6", "LINE7", "LINE8" , "LINE9"};
28   return input_port_read(space->machine,keynames[get_bit_selected(keyboard_shifter & 0x3ff,10)]);
29}
30
31static READ8_HANDLER(printer_r)
32{
33   UINT8 retVal = 0;
34   if (drum_index==0) retVal |= 1;
35   retVal |= input_port_read(space->machine,"PAPERADV") & 1 ? 8 : 0;
36   return retVal;
37}
38
39
40static WRITE8_HANDLER(shifter_w)
41{
42   if (BIT(data,0)) {
43      keyboard_shifter <<= 1;
44      keyboard_shifter |= BIT(data,1);
45   }
46   if (BIT(data,2)) {
47      printer_shifter <<= 1;
48      printer_shifter |= BIT(data,1);
49   }
50}
51
52static WRITE8_HANDLER(printer_w)
53{
54   int i,j;   
55   if (BIT(data,0)) {     
56      logerror("color : %02x %02x %d\n",BIT(data,0),data,drum_index);
57      busicom_printer_line_color[10] = 1;     
58     
59   }
60   if (BIT(data,1)) {
61      for(i=3;i<18;i++) {
62         if(BIT(printer_shifter,i)) {
63            busicom_printer_line[10][i-3] = drum_index + 1;           
64         }
65      }
66      if(BIT(printer_shifter,0)) {
67         busicom_printer_line[10][15] = drum_index + 13 + 1;
68      }
69      if(BIT(printer_shifter,1)) {
70         busicom_printer_line[10][16] = drum_index + 26 + 1;
71      }
72   }
73   if (BIT(data,3)) {
74     
75      for(j=0;j<10;j++) {
76         for(i=0;i<17;i++) {
77            busicom_printer_line[j][i] = busicom_printer_line[j+1][i];
78            busicom_printer_line_color[j] = busicom_printer_line_color[j+1];
79         }
80      }
81      for(i=0;i<17;i++) {
82         busicom_printer_line[10][i] = 0;
83      }     
84      busicom_printer_line_color[10] = 0;
85     
86   }
87}
88static WRITE8_HANDLER(status_w)
89{
90   UINT8 mem_lamp = BIT(data,0);
91   UINT8 over_lamp = BIT(data,1);
92   UINT8 minus_lamp = BIT(data,2);
93   
94   //logerror("status %c %c %c\n",mem_lamp ? 'M':'x',over_lamp ? 'O':'x',minus_lamp ? '-':'x');
95}
96
97static WRITE8_HANDLER(printer_ctrl_w)
98{
99}
100
101static ADDRESS_MAP_START(busicom_rom, ADDRESS_SPACE_PROGRAM, 8)
102   ADDRESS_MAP_UNMAP_HIGH   
103   AM_RANGE(0x0000, 0x04FF) AM_ROM
104ADDRESS_MAP_END
105
106static ADDRESS_MAP_START(busicom_mem, ADDRESS_SPACE_DATA, 8)
107   ADDRESS_MAP_UNMAP_HIGH
108   AM_RANGE(0x0000, 0x07F) AM_RAM
109ADDRESS_MAP_END
110
111static ADDRESS_MAP_START( busicom_io , ADDRESS_SPACE_IO, 8)
112   ADDRESS_MAP_UNMAP_HIGH
113   AM_RANGE(0x00, 0x00) AM_WRITE(shifter_w) // ROM0 I/O
114   AM_RANGE(0x01, 0x01) AM_READWRITE(keyboard_r,printer_ctrl_w) // ROM1 I/O
115   AM_RANGE(0x02, 0x02) AM_READ(printer_r)  // ROM2 I/O
116   AM_RANGE(0x10, 0x10) AM_WRITE(printer_w) // RAM0 output
117   AM_RANGE(0x11, 0x11) AM_WRITE(status_w)  // RAM1 output
118ADDRESS_MAP_END
119
120/* Input ports */
121INPUT_PORTS_START( busicom )
122   PORT_START("LINE0")
123      PORT_BIT(0x01, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_NAME("CM") PORT_CODE(KEYCODE_1)
124      PORT_BIT(0x02, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_NAME("RM") PORT_CODE(KEYCODE_2)
125      PORT_BIT(0x04, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_NAME("M-") PORT_CODE(KEYCODE_3)
126      PORT_BIT(0x08, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_NAME("M+") PORT_CODE(KEYCODE_4)
127   PORT_START("LINE1")
128      PORT_BIT(0x01, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_NAME("SQRT") PORT_CODE(KEYCODE_S)
129      PORT_BIT(0x02, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_NAME("%") PORT_CODE(KEYCODE_5)
130      PORT_BIT(0x04, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_NAME("M=-") PORT_CODE(KEYCODE_6)
131      PORT_BIT(0x08, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_NAME("M=+") PORT_CODE(KEYCODE_7)
132   PORT_START("LINE2")
133      PORT_BIT(0x01, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_NAME("diamond") PORT_CODE(KEYCODE_D)
134      PORT_BIT(0x02, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_NAME("/") PORT_CODE(KEYCODE_SLASH_PAD)
135      PORT_BIT(0x04, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_NAME("*") PORT_CODE(KEYCODE_ASTERISK)
136      PORT_BIT(0x08, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_NAME("=") PORT_CODE(KEYCODE_ENTER_PAD)
137   PORT_START("LINE3")
138      PORT_BIT(0x01, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_NAME("-") PORT_CODE(KEYCODE_MINUS_PAD)
139      PORT_BIT(0x02, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_NAME("+") PORT_CODE(KEYCODE_PLUS_PAD)
140      PORT_BIT(0x04, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_NAME("diamond 2") PORT_CODE(KEYCODE_TILDE)
141      PORT_BIT(0x08, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_NAME("000") PORT_CODE(KEYCODE_8)
142   PORT_START("LINE4")
143      PORT_BIT(0x01, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_NAME("9") PORT_CODE(KEYCODE_9_PAD)
144      PORT_BIT(0x02, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_NAME("6") PORT_CODE(KEYCODE_6_PAD)
145      PORT_BIT(0x04, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_NAME("3") PORT_CODE(KEYCODE_3_PAD)
146      PORT_BIT(0x08, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_NAME(".") PORT_CODE(KEYCODE_DEL_PAD)
147   PORT_START("LINE5")
148      PORT_BIT(0x01, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_NAME("8") PORT_CODE(KEYCODE_8_PAD)
149      PORT_BIT(0x02, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_NAME("5") PORT_CODE(KEYCODE_5_PAD)
150      PORT_BIT(0x04, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_NAME("2") PORT_CODE(KEYCODE_2_PAD)
151      PORT_BIT(0x08, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_NAME("00") PORT_CODE(KEYCODE_9)
152   PORT_START("LINE6")
153      PORT_BIT(0x01, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_NAME("7") PORT_CODE(KEYCODE_7_PAD)
154      PORT_BIT(0x02, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_NAME("4") PORT_CODE(KEYCODE_4_PAD)
155      PORT_BIT(0x04, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_NAME("1") PORT_CODE(KEYCODE_1_PAD)
156      PORT_BIT(0x08, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_NAME("0") PORT_CODE(KEYCODE_0_PAD)
157   PORT_START("LINE7")
158      PORT_BIT(0x01, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_NAME("Sign") PORT_CODE(KEYCODE_RALT) PORT_CODE(KEYCODE_LALT)
159      PORT_BIT(0x02, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_NAME("EX") PORT_CODE(KEYCODE_X)
160      PORT_BIT(0x04, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_NAME("CE") PORT_CODE(KEYCODE_E)
161      PORT_BIT(0x08, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_NAME("C") PORT_CODE(KEYCODE_C)
162   PORT_START("LINE8")
163      PORT_CONFNAME( 0x0f, 0x00, "Digital point")
164         PORT_CONFSETTING( 0x00, "0" )
165         PORT_CONFSETTING( 0x01, "1" )
166         PORT_CONFSETTING( 0x02, "2" )
167         PORT_CONFSETTING( 0x03, "3" )
168         PORT_CONFSETTING( 0x04, "4" )
169         PORT_CONFSETTING( 0x05, "5" )
170         PORT_CONFSETTING( 0x06, "6" )
171         PORT_CONFSETTING( 0x08, "8" )     
172   PORT_START("LINE9")
173      PORT_CONFNAME( 0x0f, 0x00, "Rounding")
174         PORT_CONFSETTING( 0x01, "/N" )
175         PORT_CONFSETTING( 0x00, "FL" )
176         PORT_CONFSETTING( 0x08, "5/4" )
177   PORT_START("PAPERADV")
178      PORT_BIT(0x01, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_NAME("Paper adv.") PORT_CODE(KEYCODE_SPACE)
179
180INPUT_PORTS_END
181
182static UINT8 timer =0;
183
184static TIMER_CALLBACK(timer_callback)
185{
186   timer ^=1;
187   if (timer==1) drum_index++;
188   if (drum_index==13) drum_index=0;
189   i4004_set_test(cputag_get_cpu(machine, "maincpu"),timer);   
190   
191}
192static MACHINE_RESET(busicom)
193{
194   int i,j;
195   drum_index =0;
196   keyboard_shifter = 0;
197   printer_shifter = 0;
198   timer_pulse(machine, ATTOTIME_IN_MSEC(28*2), NULL, 0, timer_callback);
199   
200   for(i=0;i<17;i++) {
201      for(j=0;j<11;j++) {
202         busicom_printer_line[j][i] = 0;
203         busicom_printer_line_color[j] = 0;
204      }
205   }
206   
207}
208
209static const char layout_busicom [] = "busicom";
210
211static MACHINE_DRIVER_START( busicom )
212    /* basic machine hardware */
213    MDRV_CPU_ADD("maincpu",I4004, 750000)
214    MDRV_CPU_PROGRAM_MAP(busicom_rom)
215    MDRV_CPU_DATA_MAP(busicom_mem)
216    MDRV_CPU_IO_MAP(busicom_io)   
217
218    MDRV_MACHINE_RESET(busicom)
219   
220    /* video hardware */
221    MDRV_SCREEN_ADD("screen", RASTER)
222    MDRV_SCREEN_REFRESH_RATE(50)
223    MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500)) /* not accurate */
224    MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16)
225    MDRV_SCREEN_SIZE(40*17, 44*11)
226    MDRV_SCREEN_VISIBLE_AREA(0, 40*17-1, 0, 44*11-1)
227    MDRV_PALETTE_LENGTH(16)
228    MDRV_PALETTE_INIT(busicom)
229   
230   MDRV_VIDEO_START(busicom)
231   MDRV_VIDEO_UPDATE(busicom)       
232MACHINE_DRIVER_END
233
234static SYSTEM_CONFIG_START(busicom)
235SYSTEM_CONFIG_END
236
237/* ROM definition */
238ROM_START( busicom )
239   ROM_REGION( 0x1000, "maincpu", ROMREGION_ERASEFF )
240   ROM_LOAD( "busicom.l01", 0x0000, 0x0100, CRC(51ae2513) SHA1(5cb4097a3945db35af4ed64b629b20b08fc9824f))
241   ROM_LOAD( "busicom.l02", 0x0100, 0x0100, CRC(a05411ad) SHA1(81503a99a0d34fa29bf1245de0a44af2f174abdd))
242   ROM_LOAD( "busicom.l05", 0x0200, 0x0100, CRC(6120addf) SHA1(4b7ec183613630120b3c313c782122713d4327c5))
243   ROM_LOAD( "busicom.l07", 0x0300, 0x0100, CRC(84a90daa) SHA1(e2931753b0fd35144cb5a9d73fcae8e104e5e3ed))
244   ROM_LOAD( "busicom.l11", 0x0400, 0x0100, CRC(4d2b2942) SHA1(9a59db76eff084369797735ec19da8cbc70d0d39))
245ROM_END
246
247/* Driver */
248
249/*    YEAR  NAME    PARENT  COMPAT   MACHINE    INPUT    INIT    CONFIG COMPANY   FULLNAME       FLAGS */
250COMP( 1974, busicom,  0,       0,    busicom,    busicom,     0,       busicom,    "Business Computer Corporation",   "Busicom 141-PF",      GAME_NOT_WORKING)
251
docs/messnew.txt
r5475r5476
44------------------------------------------------------
55- Tandy 1000RL  [Wilbert Pol]
66- Nintendo Game Boy Advance [R. Belmont, MooglyGuy]
7- 4004 Nixie Tube Clock [Miodrag Milanovic]
8- Busicom 141-PF [Miodrag Milanovic]
79
8
910Systems Promoted from GAME_NOT_WORKING:
1011---------------------------------------
1112- Elektor Junior [Manfred Schneider]
artwork/4004clk.zip

Previous 15994 Revisions Next


© 1998-2018 The MESS Team