Previous 199869 Revisions Next

r26023 Wednesday 6th November, 2013 at 18:05:58 UTC by Dirk Best
A few fixes to try to get it to compile, currently fails to compile
a2drive.c
[/branches/alto2/src/emu/cpu]cpu.mak
[/branches/alto2/src/emu/cpu/alto2]alto2.c alto2.h
[/branches/alto2/src/mess]mess.lst
[/branches/alto2/src/mess/drivers]alto2.c
[/branches/alto2/src/mess/includes]alto2.h

branches/alto2/src/emu/cpu/cpu.mak
r26022r26023
22772277ifneq ($(filter ALTO2,$(CPUS)),)
22782278OBJDIRS += $(CPUOBJ)/alto2
22792279CPUOBJS += $(CPUOBJ)/alto2/alto2.o \
2280   $(CPUOBJ)/alto2/a2drive.o \
22802281   $(CPUOBJ)/alto2/a2disk.o \
22812282   $(CPUOBJ)/alto2/a2disp.o \
22822283   $(CPUOBJ)/alto2/a2curt.o \
branches/alto2/src/emu/cpu/alto2/alto2.c
r26022r26023
99 *****************************************************************************/
1010#include "alto2.h"
1111
12
13//**************************************************************************
14//  DEVICE DEFINITIONS
15//**************************************************************************
16
17const device_type ALTO2 = &device_creator<alto2_cpu_device>;
18
19
20//**************************************************************************
21//  LIVE DEVICE
22//**************************************************************************
23
24//-------------------------------------------------
25//  alto2_cpu_device - constructor
26//-------------------------------------------------
27
1228alto2_cpu_device::alto2_cpu_device(const machine_config& mconfig, const char* tag, device_t* owner, UINT32 clock) :
1329   cpu_device(mconfig, ALTO2, "Xerox Alto-II", tag, owner, clock, "alto2", __FILE__),
1430   m_ucode_config("program", ENDIANNESS_BIG, 8, 32, 0),
r26022r26023
1632{
1733}
1834
35//-------------------------------------------------
36//  device_start - device-specific startup
37//-------------------------------------------------
38
39// FIXME
40void alto2_cpu_device::device_start()
41{
42
43}
44
45//-------------------------------------------------
46//  device_reset - device-specific reset
47//-------------------------------------------------
48
49// FIXME
50void alto2_cpu_device::device_reset()
51{
52
53}
54
55//-------------------------------------------------
56//  execute_set_input - act on a changed input/
57//  interrupt line
58//-------------------------------------------------
59
60// FIXME
61void alto2_cpu_device::execute_set_input(int inputnum, int state)
62{
63
64}
65
66//-------------------------------------------------
67//  state_string_export - export state as a string
68//  for the debugger
69//-------------------------------------------------
70
71// FIXME
72void alto2_cpu_device::state_string_export(const device_state_entry &entry, astring &string)
73{
74}
75
76// FIXME
77void alto2_cpu_device::fatal(int level, const char *format, ...)
78{
79   va_list ap;
80   va_start(ap, format);
81   fatalerror(format, ap);
82   va_end(ap);
83}
84
85#if 0
86// FIXME
87void alto2_cpu_device::init_mrt(int task)
88{
89
90}
91
92// FIXME
93int alto2_cpu_device::drive_ready_0(int unit)
94{
95   return 0;
96}
97
98// FIXME
99int alto2_cpu_device::drive_sector_mark_0(int unit)
100{
101   return 0;
102}
103
104// FIxME
105void alto2_cpu_device::drive_egate(int unit, int gate)
106{
107
108}
109
110// FIXME
111void alto2_cpu_device::drive_wrgate(int unit, int gate)
112{
113
114}
115
116// FIXME
117void alto2_cpu_device::drive_rdgate(int unit, int gate)
118{
119
120}
121
122// FIXME
123int alto2_cpu_device::drive_bits_per_sector() const
124{
125   return 0;
126}
127
128// FIXME
129attotime alto2_cpu_device::drive_bit_time(int unit)
130{
131   return attotime::from_double(0);
132}
133
134// FIXME
135void alto2_cpu_device::drive_wrdata(int unit, int index, int wrdata)
136{
137
138}
139
140// FIXME
141int alto2_cpu_device::drive_rddata(int unit, int index)
142{
143   return 0;
144}
145
146// FIXME
147int alto2_cpu_device::drive_rdclk(int unit, int index)
148{
149   return 0;
150}
151
152// FIXME
153int alto2_cpu_device::drive_sector(int unit)
154{
155   return 0;
156}
157
158// FIXME
159void alto2_cpu_device::drive_strobe(int unit, int cylinder, int restore, int strobe)
160{
161
162}
163#endif
164
19165/** @brief task names */
20166const char* alto2_cpu_device::task_name(int task)
21167{
branches/alto2/src/emu/cpu/alto2/alto2.h
r26022r26023
2626#define   LOG(x)
2727#endif
2828
29extern void fatal(int level, const char* format, ...);
29//extern void fatal(int level, const char* format, ...);
3030
3131#define   USE_PRIO_F9318   0         //!< define to 1 to use the F9318 priority encoder code
3232#define   USE_ALU_74181   1         //!< define to 1 to use the SN74181 ALU code
r26022r26023
235235   virtual offs_t disasm_disassemble(char *buffer, offs_t pc, const UINT8 *oprom, const UINT8 *opram, UINT32 options);
236236
237237private:
238   void fatal(int level, const char *format, ...);
239
238240   address_space_config m_ucode_config;
239241   address_space_config m_ram_config;
240242
branches/alto2/src/mess/includes/alto2.h
r26022r26023
4343   DECLARE_READ16_MEMBER(alto2_ram_r);
4444   DECLARE_WRITE16_MEMBER(alto2_ram_w);
4545   DECLARE_DRIVER_INIT(alto2);
46   virtual void machine_reset();
47   virtual void video_start();
46//   virtual void machine_reset();
47//   virtual void video_start();
4848   virtual void palette_init();
4949   DECLARE_MACHINE_RESET(alto2);
5050   void screen_eof_alto2(screen_device &screen, bool state);
5151
5252protected:
5353   required_device<cpu_device> m_maincpu;
54   required_device<ram_device> m_ucode;
54//   required_device<ram_device> m_ucode;
5555   required_device<ram_device> m_ram;
5656#if   0   // FIXME: write a harddisk_image_device like device_t for the DIABLO31
5757   required_device<diablo_device> m_disk0;
r26022r26023
7070   optional_ioport m_io_config;
7171
7272   // FIXME: use device timers instead of individual emu_timer* in alto2 code(?)
73   virtual void device_timer(emu_timer &timer, device_timer_id id, int param, void *ptr);
73//   virtual void device_timer(emu_timer &timer, device_timer_id id, int param, void *ptr);
7474};
7575
7676#endif /* _INCLUDES_ALTO2_H_ */
branches/alto2/src/mess/mess.lst
r26022r26023
22862286jonos
22872287ft68m
22882288molecula
2289alto2
branches/alto2/src/mess/drivers/alto2.c
r26022r26023
1010
1111#include "includes/alto2.h"
1212
13
14READ32_MEMBER( alto2_state::alto2_ucode_r )
15{
16   return 0;
17}
18
19WRITE32_MEMBER( alto2_state::alto2_ucode_w )
20{
21
22}
23
24READ16_MEMBER( alto2_state::alto2_ram_r )
25{
26   return 0;
27}
28
29WRITE16_MEMBER( alto2_state::alto2_ram_w )
30{
31
32}
33
1334/* Memory Maps */
1435
1536#if   (ALTO2_CRAM_CONFIG==1)
r26022r26023
3455   AM_RANGE(0x0000, ALTO2_RAM_SIZE/2-1) AM_READWRITE(alto2_ram_r, alto2_ram_w)
3556ADDRESS_MAP_END
3657
58
59/* Video */
60
61UINT32 alto2_state::screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect)
62{
63   return 0;
64}
65
66void alto2_state::screen_eof_alto2(screen_device &screen, bool state)
67{
68
69}
70
71/* Driver Init */
72
73DRIVER_INIT_MEMBER( alto2_state, alto2 )
74{
75
76}
77
78
3779/* Input Ports */
3880
3981/** @brief make an Alto key int from 1 << bit */
r26022r26023
175217   PORT_BIT(A2_KEY_P,         IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME(". >") PORT_CODE(KEYCODE_STOP) PORT_CHAR('.') PORT_CHAR('>')   //!< normal: .    shifted: >
176218   PORT_BIT(A2_KEY_S,         IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("; :") PORT_CODE(KEYCODE_COLON) PORT_CHAR(';') PORT_CHAR(':')//!< normal: ;    shifted: :
177219   PORT_BIT(A2_KEY_RETURN,      IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("RETURN") PORT_CODE(KEYCODE_ENTER) PORT_CHAR('\013')         //!< RETURN
178   PORT_BIT(A2_KEY_L,         IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME(" ") PORT_CODE(KEYCODE_LEFT)                        //!< normal: left arrow   shifted: up arrow (caret)
220   PORT_BIT(A2_KEY_L,         IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("â†� ↑") PORT_CODE(KEYCODE_LEFT)                        //!< normal: left arrow   shifted: up arrow (caret)
179221   PORT_BIT(A2_KEY_DEL,      IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("DEL") PORT_CODE(KEYCODE_DEL)                        //!< normal: DEL  shifted: ?
180222   PORT_BIT(A2_KEY_MSW_2_17,   IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("2/17") PORT_CODE(KEYCODE_MENU)                        //!< unused on Microswitch KDB
181223
r26022r26023
255297
256298static MACHINE_CONFIG_START( alto2, alto2_state )
257299   /* basic machine hardware */
258   MCFG_CPU_ADD("maincpu", ALTO2, 20160000)
300   MCFG_CPU_ADD("maincpu", ALTO2, XTAL_20_16MHz)
259301   MCFG_CPU_PROGRAM_MAP(alto2_ucode_map)
260302   MCFG_CPU_IO_MAP(alto2_ram_map)
261   MCFG_SCREEN_ADD("screen", RASTER)
262   MCFG_SCREEN_REFRESH_RATE(60)
263   MCFG_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(ALTO2_DISPLAY_VBLANK_TIME))
264303
265304   /* video hardware */
305   MCFG_SCREEN_ADD("screen", RASTER)
306   MCFG_SCREEN_RAW_PARAMS(XTAL_20_16MHz, ALTO2_DISPLAY_TOTAL_WIDTH, 0, ALTO2_DISPLAY_WIDTH, ALTO2_DISPLAY_TOTAL_HEIGHT, 0, ALTO2_DISPLAY_HEIGHT)
266307   MCFG_SCREEN_UPDATE_DRIVER(alto2_state, screen_update)
267   MCFG_SCREEN_SIZE(ALTO2_DISPLAY_TOTAL_WIDTH, ALTO2_DISPLAY_HLC_END-1)
268   MCFG_SCREEN_VISIBLE_AREA(0, ALTO2_DISPLAY_WIDTH-1, 0, ALTO2_DISPLAY_HEIGHT-1)
269308   MCFG_SCREEN_VBLANK_DRIVER(alto2_state, screen_eof_alto2)
270309
271310   MCFG_GFXDECODE(alto2)
r26022r26023
363402
364403/* Game Drivers */
365404
366/*    YEAR  NAME        PARENT  COMPAT  MACHINE     INPUT       INIT    COMPANY                     FULLNAME                FLAGS */
367COMP( 1974, alto2,      0,      0,      alto2,      alto2, alto2_state, alto2,    "Xerox Alto-II",            "Alto2",               0 )
405//    YEAR  NAME    PARENT  COMPAT  MACHINE  INPUT  CLASS        INIT   COMPANY  FULLNAME   FLAGS
406COMP( 1974, alto2,  0,      0,      alto2,   alto2, alto2_state, alto2, "Xerox", "Alto-II", GAME_NOT_WORKING )

Previous 199869 Revisions Next


© 1997-2024 The MAME Team