Previous 199869 Revisions Next

r36852 Tuesday 31st March, 2015 at 22:12:08 UTC by Angelo Salese
irq 2 is certainly used somehow, I don't know yet where tho ... (it apparently fixes sound not triggered at some point)
[/trunk]makefile
[scripts]genie.lua
[scripts/src/osd]modules.lua sdl.lua sdl_cfg.lua windows.lua windows_cfg.lua
[src/mame/audio]hng64.c
[src/mess]mess.lst
[src/mess/drivers]hh_tms1k.c ticalc1x.c
[src/mess/includes]hh_tms1k.h
[src/mess/layout]astro.lay
[src/osd/sdl]osdsdl.h sdlmain.c

trunk/makefile
r245363r245364
293293PARAMS += --targetos=$(TARGETOS)
294294endif
295295
296ifndef USE_QT
297ifneq ($(TARGETOS),macosx)
298USE_QT := 1
299else
300USE_QT := 0
301endif
302endif
303PARAMS += --USE_QT=$(USE_QT)
304
296305ifdef DONT_USE_NETWORK
297306PARAMS += --DONT_USE_NETWORK='$(DONT_USE_NETWORK)'
298307endif
r245363r245364
305314PARAMS += --USE_DISPATCH_GL='$(USE_DISPATCH_GL)'
306315endif
307316
308ifdef NO_USE_MIDI
309PARAMS += --NO_USE_MIDI='$(NO_USE_MIDI)'
310endif
311
312ifdef USE_QTDEBUG
313PARAMS += --USE_QTDEBUG='$(USE_QTDEBUG)'
314endif
315
316317ifdef MESA_INSTALL_ROOT
317318PARAMS += --MESA_INSTALL_ROOT='$(MESA_INSTALL_ROOT)'
318319endif
r245363r245364
325326PARAMS += --NO_USE_XINPUT='$(NO_USE_XINPUT)'
326327endif
327328
329ifdef NO_USE_MIDI
330PARAMS += --NO_USE_MIDI='$(NO_USE_MIDI)'
331endif
332
328333ifdef SDL_LIBVER
329334PARAMS += --SDL_LIBVER='$(SDL_LIBVER)'
330335endif
r245363r245364
705710
706711LAYOUTS=$(wildcard $(SRC)/emu/layout/*.lay) $(wildcard $(SRC)/$(TARGET)/layout/*.lay)
707712
708MOC_FILES=$(wildcard $(SRC)/osd/modules/debugger/qt/*.h)
709ifneq ($(USE_QTDEBUG),1)
710ifeq ($(TARGETOS),macosx)
713ifeq ($(USE_QT),0)
711714MOC_FILES=
712endif
713ifeq ($(TARGETOS),solaris)
714MOC_FILES=
715endif
716ifeq ($(TARGETOS),haiku)
717MOC_FILES=
718endif
719ifeq ($(TARGETOS),emscripten)
720MOC_FILES=
721endif
722ifeq ($(TARGETOS),os2)
723MOC_FILES=
724endif
725endif
715else
716MOC_FILES=$(wildcard $(SRC)/osd/modules/debugger/qt/*.h)
726717
727718ifeq ($(OS),windows)
728719MOC = moc
720ifneq ($(OSD),sdl)
721MOC_FILES=
722endif
729723else
730724MOCTST = $(shell which moc-qt4 2>/dev/null)
731725ifeq '$(MOCTST)' ''
r245363r245364
740734endif
741735endif
742736
737endif
743738
744739ifneq (,$(wildcard src/osd/$(OSD)/$(OSD).mak))
745740include src/osd/$(OSD)/$(OSD).mak
trunk/scripts/genie.lua
r245363r245364
182182   }
183183}
184184
185newoption {
186   trigger = "USE_QT",
187   description = "Use of QT.",
188   allowed = {
189      { "0",   "Disabled"    },
190      { "1",   "Enabled"      },
191   }
192}
193
194newoption {
195   trigger = "DONT_USE_NETWORK",
196   description = "Disable network access",
197}
198
185199local os_version = str_to_version(_OPTIONS["os_version"])
186200
187201USE_BGFX = 1
r245363r245364
192206   USE_BGFX = tonumber(_OPTIONS["USE_BGFX"])
193207end
194208
209USE_QT = 1
210if(_OPTIONS["USE_QT"]~=nil) then
211   USE_QT = tonumber(_OPTIONS["USE_QT"])
212end
213
195214GEN_DIR = MAME_BUILD_DIR .. "generated/"
196215
197216if (_OPTIONS["target"] == nil) then return false end
trunk/scripts/src/osd/modules.lua
r245363r245364
1function osdmodulesbuild()
2
3   removeflags {
4      "SingleOutputDir",
5   }
6
7   options {
8      "ForceCPP",
9   }
10
11   files {
12      MAME_DIR .. "src/osd/modules/lib/osdobj_common.c",
13      MAME_DIR .. "src/osd/modules/debugger/none.c",
14      MAME_DIR .. "src/osd/modules/debugger/debugint.c",
15      MAME_DIR .. "src/osd/modules/debugger/debugwin.c",
16      MAME_DIR .. "src/osd/modules/debugger/debugqt.c",
17      MAME_DIR .. "src/osd/modules/font/font_sdl.c",
18      MAME_DIR .. "src/osd/modules/font/font_windows.c",
19      MAME_DIR .. "src/osd/modules/font/font_osx.c",
20      MAME_DIR .. "src/osd/modules/font/font_none.c",
21      MAME_DIR .. "src/osd/modules/netdev/taptun.c",
22      MAME_DIR .. "src/osd/modules/netdev/pcap.c",
23      MAME_DIR .. "src/osd/modules/netdev/none.c",
24      MAME_DIR .. "src/osd/modules/midi/portmidi.c",
25      MAME_DIR .. "src/osd/modules/midi/none.c",
26      MAME_DIR .. "src/osd/modules/sound/js_sound.c",
27      MAME_DIR .. "src/osd/modules/sound/direct_sound.c",
28      MAME_DIR .. "src/osd/modules/sound/sdl_sound.c",
29      MAME_DIR .. "src/osd/modules/sound/none.c",
30   }
31
32   if _OPTIONS["targetos"]=="windows" then
33      includedirs {
34         MAME_DIR .. "3rdparty/winpcap/Include",
35      }
36   end
37
38   if _OPTIONS["NO_OPENGL"]=="1" then
39      defines {
40         "USE_OPENGL=0",
41      }
42   else
43      files {
44         MAME_DIR .. "src/osd/modules/render/drawogl.c",
45         MAME_DIR .. "src/osd/modules/opengl/gl_shader_tool.c",
46         MAME_DIR .. "src/osd/modules/opengl/gl_shader_mgr.c",
47      }
48      defines {
49         "USE_OPENGL=1",
50      }
51      if _OPTIONS["USE_DISPATCH_GL"]=="1" then
52         defines {
53            "USE_DISPATCH_GL=1",
54         }
55      end
56   end
57
58   if USE_BGFX == 1 then
59      files {
60         MAME_DIR .. "src/osd/modules/render/drawbgfx.c",
61      }
62      defines {
63         "USE_BGFX"
64      }
65      includedirs {
66         MAME_DIR .. "3rdparty/bgfx/include",
67         MAME_DIR .. "3rdparty/bx/include",
68      }
69   end
70
71   if _OPTIONS["NO_USE_MIDI"]=="1" then
72      defines {
73         "NO_USE_MIDI",
74      }
75   end
76
77   if _OPTIONS["USE_QTDEBUG"]=="1" then
78      files {
79         MAME_DIR .. "src/osd/modules/debugger/qt/debuggerview.c",
80         MAME_DIR .. "src/osd/modules/debugger/qt/windowqt.c",
81         MAME_DIR .. "src/osd/modules/debugger/qt/logwindow.c",
82         MAME_DIR .. "src/osd/modules/debugger/qt/dasmwindow.c",
83         MAME_DIR .. "src/osd/modules/debugger/qt/mainwindow.c",
84         MAME_DIR .. "src/osd/modules/debugger/qt/memorywindow.c",
85         MAME_DIR .. "src/osd/modules/debugger/qt/breakpointswindow.c",
86         MAME_DIR .. "src/osd/modules/debugger/qt/deviceswindow.c",
87         MAME_DIR .. "src/osd/modules/debugger/qt/deviceinformationwindow.c",
88         GEN_DIR .. "osd/modules/debugger/qt/debuggerview.moc.c",
89         GEN_DIR .. "osd/modules/debugger/qt/windowqt.moc.c",
90         GEN_DIR .. "osd/modules/debugger/qt/logwindow.moc.c",
91         GEN_DIR .. "osd/modules/debugger/qt/dasmwindow.moc.c",
92         GEN_DIR .. "osd/modules/debugger/qt/mainwindow.moc.c",
93         GEN_DIR .. "osd/modules/debugger/qt/memorywindow.moc.c",
94         GEN_DIR .. "osd/modules/debugger/qt/breakpointswindow.moc.c",
95         GEN_DIR .. "osd/modules/debugger/qt/deviceswindow.moc.c",
96         GEN_DIR .. "osd/modules/debugger/qt/deviceinformationwindow.moc.c",
97      }
98      defines {
99         "USE_QTDEBUG=1",
100      }
101      if _OPTIONS["targetos"]=="windows" then
102         configuration { "mingw*" }
103            buildoptions {
104               "-I$(shell qmake -query QT_INSTALL_HEADERS)/QtCore",
105               "-I$(shell qmake -query QT_INSTALL_HEADERS)/QtGui",
106               "-I$(shell qmake -query QT_INSTALL_HEADERS)",
107            }
108         configuration { }
109      elseif _OPTIONS["targetos"]=="macosx" then
110         -- TODO: search path for Qt on OSX platform
111      else
112         buildoptions {
113            string.gsub(os.outputof("pkg-config --cflags QtGui"), '[\r\n]+', ' '),
114         }
115      end
116   else
117      defines {
118         "USE_QTDEBUG=0",
119      }
120   end
121
122end
123
124
125function osdmodulestargetconf()
126
127   if _OPTIONS["NO_OPENGL"]~="1" then
128      if _OPTIONS["targetos"]=="macosx" then
129         links {
130            "OpenGL.framework",
131         }
132      elseif _OPTIONS["USE_DISPATCH_GL"]~="1" then
133         if _OPTIONS["targetos"]=="windows" then
134            links {
135               "opengl32",
136            }
137         else
138            links {
139               "GL",
140            }
141         end
142      end
143   end
144
145   if _OPTIONS["NO_USE_MIDI"]~="1" then
146      if _OPTIONS["targetos"]=="linux" then
147         linkoptions {
148            string.gsub(os.outputof("pkg-config --libs alsa"), '[\r\n]+', ' '),
149         }
150      elseif _OPTIONS["targetos"]=="macosx" then
151         links {
152            "CoreAudio.framework",
153            "CoreMIDI.framework",
154         }
155      end
156   end
157
158   if _OPTIONS["USE_QTDEBUG"]=="1" then
159      if _OPTIONS["targetos"]=="windows" then
160         linkoptions {
161            "-L$(shell qmake -query QT_INSTALL_LIBS)",
162         }
163         links {
164            "qtmain",
165            "QtGui4",
166            "QtCore4",
167         }
168      elseif _OPTIONS["targetos"]=="macosx" then
169         -- TODO: Qt libs for OSX platform
170      else
171         linkoptions {
172            string.gsub(os.outputof("pkg-config --libs QtGui"), '[\r\n]+', ' '),
173         }
174      end
175   end
176
177end
178
179
180newoption {
181   trigger = "DONT_USE_NETWORK",
182   description = "Disable network access",
183}
184
185newoption {
186   trigger = "NO_OPENGL",
187   description = "Disable use of OpenGL",
188   allowed = {
189      { "0",  "Enable OpenGL"  },
190      { "1",  "Disable OpenGL" },
191   },
192}
193
194if not _OPTIONS["NO_OPENGL"] then
195   if _OPTIONS["targetos"]=="os2" then
196      _OPTIONS["NO_OPENGL"] = "1"
197   else
198      _OPTIONS["NO_OPENGL"] = "0"
199   end
200end
201
202newoption {
203   trigger = "USE_DISPATCH_GL",
204   description = "Use GL-dispatching",
205   allowed = {
206      { "0",  "Link to OpenGL library"  },
207      { "1",  "Use GL-dispatching"      },
208   },
209}
210
211if not _OPTIONS["USE_DISPATCH_GL"] then
212   if USE_BGFX == 1 then
213      _OPTIONS["USE_DISPATCH_GL"] = "0"
214   else
215      _OPTIONS["USE_DISPATCH_GL"] = "1"
216   end
217end
218
219newoption {
220   trigger = "NO_USE_MIDI",
221   description = "Disable MIDI I/O",
222   allowed = {
223      { "0",  "Enable MIDI"  },
224      { "1",  "Disable MIDI" },
225   },
226}
227
228if not _OPTIONS["NO_USE_MIDI"] then
229   if _OPTIONS["targetos"]=="freebsd" or _OPTIONS["targetos"]=="openbsd" or _OPTIONS["targetos"]=="netbsd" or _OPTIONS["targetos"]=="solaris" or _OPTIONS["targetos"]=="haiku" or _OPTIONS["targetos"] == "emscripten" or _OPTIONS["targetos"] == "os2" then
230      _OPTIONS["NO_USE_MIDI"] = "1"
231   else
232      _OPTIONS["NO_USE_MIDI"] = "0"
233   end
234end
235
236newoption {
237   trigger = "USE_QTDEBUG",
238   description = "Use QT debugger",
239   allowed = {
240      { "0",  "Don't use Qt debugger"  },
241      { "1",  "Use Qt debugger" },
242   },
243}
244
245if not _OPTIONS["USE_QTDEBUG"] then
246   if _OPTIONS["targetos"]=="windows" or _OPTIONS["targetos"]=="macosx" or _OPTIONS["targetos"]=="solaris" or _OPTIONS["targetos"]=="haiku" or _OPTIONS["targetos"] == "emscripten" or _OPTIONS["targetos"] == "os2" then
247      _OPTIONS["USE_QTDEBUG"] = "0"
248   else
249      _OPTIONS["USE_QTDEBUG"] = "1"
250   end
251end
trunk/scripts/src/osd/sdl.lua
r245363r245364
1dofile("modules.lua")
2
3
41function maintargetosdoptions(_target)
5   osdmodulestargetconf()
6
72   if _OPTIONS["USE_DISPATCH_GL"]~="1" and _OPTIONS["MESA_INSTALL_ROOT"] then
83      libdirs {
94         path.join(_OPTIONS["MESA_INSTALL_ROOT"],"lib"),
r245363r245364
3732            "SDL_ttf",
3833         }
3934      end
35      if _OPTIONS["NO_OPENGL"]~="1" and _OPTIONS["USE_DISPATCH_GL"]~="1" then
36         links {
37            "GL"
38         }
39      end
4040      linkoptions {
4141         string.gsub(os.outputof("pkg-config --libs fontconfig"), '[\r\n]+', ' '),
4242      }
4343   end
4444
4545   if _OPTIONS["targetos"]=="windows" then
46      if _OPTIONS["NO_OPENGL"]~="1" and _OPTIONS["USE_DISPATCH_GL"]~="1" then
47         links {
48            "opengl32"
49         }
50      end
4651      configuration { "mingw*" }
4752         linkoptions{
4853            "-municode",
r245363r245364
6065            "SDL2",
6166         }
6267      configuration {}
68
69      if (USE_QT == 1) then
70         linkoptions{
71            "-L$(shell qmake -query QT_INSTALL_LIBS)",
72         }
73         links {
74            "qtmain",
75            "QtGui4",
76            "QtCore4",
77         }
78      end
79   elseif _OPTIONS["targetos"]=="linux" then
80      if USE_QT == 1 then
81         linkoptions {
82            "$(shell pkg-config --libs QtGui)",
83         }
84         links {
85            "QtGui",
86            "QtCore",
87         }
88      end
89      if _OPTIONS["NO_USE_MIDI"]~="1" then
90         linkoptions {
91            string.gsub(os.outputof("pkg-config --libs alsa"), '[\r\n]+', ' '),
92         }
93      end
94   elseif _OPTIONS["targetos"]=="macosx" then
95      if _OPTIONS["NO_USE_MIDI"]~="1" then
96         links {
97            "CoreAudio.framework",
98            "CoreMIDI.framework",
99         }
100      end
63101   elseif _OPTIONS["targetos"]=="haiku" then
64102      links {
65103         "network",
r245363r245364
84122
85123
86124newoption {
125   trigger = "NO_OPENGL",
126   description = "Disable use of OpenGL",
127   allowed = {
128      { "0",  "Enable OpenGL"  },
129      { "1",  "Disable OpenGL" },
130   },
131}
132
133if not _OPTIONS["NO_OPENGL"] then
134   if _OPTIONS["targetos"]=="os2" then
135      _OPTIONS["NO_OPENGL"] = "1"
136   else
137      _OPTIONS["NO_OPENGL"] = "0"
138   end
139end
140
141newoption {
142   trigger = "USE_DISPATCH_GL",
143   description = "Use GL-dispatching (takes precedence over MESA_INSTALL_ROOT)",
144   allowed = {
145      { "0",  "Link to OpenGL library"  },
146      { "1",  "Use GL-dispatching"      },
147   },
148}
149
150if not _OPTIONS["USE_DISPATCH_GL"] then
151   if USE_BGFX == 1 then
152      _OPTIONS["USE_DISPATCH_GL"] = "0"
153   else
154      _OPTIONS["USE_DISPATCH_GL"] = "1"
155   end
156end
157
158newoption {
87159   trigger = "MESA_INSTALL_ROOT",
88   description = "link against specific GL-Library - also adds rpath to executable (overridden by USE_DISPATCH_GL)",
160   description = "link against specific GL-Library - also adds rpath to executable",
89161}
90162
91163newoption {
r245363r245364
119191end
120192
121193newoption {
194   trigger = "NO_USE_MIDI",
195   description = "Disable MIDI I/O",
196   allowed = {
197      { "0",  "Enable MIDI"  },
198      { "1",  "Disable MIDI" },
199   },
200}
201
202if not _OPTIONS["NO_USE_MIDI"] then
203   if _OPTIONS["targetos"]=="freebsd" or _OPTIONS["targetos"]=="openbsd" or _OPTIONS["targetos"]=="netbsd" or _OPTIONS["targetos"]=="solaris" or _OPTIONS["targetos"]=="haiku" or _OPTIONS["targetos"] == "emscripten" or _OPTIONS["targetos"] == "os2" then
204      _OPTIONS["NO_USE_MIDI"] = "1"
205   else
206      _OPTIONS["NO_USE_MIDI"] = "0"
207   end
208end
209
210newoption {
122211   trigger = "SDL_LIBVER",
123212   description = "Choose SDL version",
124213   allowed = {
r245363r245364
206295   SYNC_IMPLEMENTATION = "os2"
207296end
208297
298if _OPTIONS["NO_X11"]~="1" then
299   libdirs {
300      "/usr/X11/lib",
301      "/usr/X11R6/lib",
302      "/usr/openwin/lib",
303   }
304   if _OPTIONS["SDL_LIBVER"]=="sdl" then
305      links {
306         "X11",
307      }
308   end
309end
310
209311if BASE_TARGETOS=="unix" then
210312   if _OPTIONS["targetos"]=="macosx" then
211313      links {
212314         "Cocoa.framework",
315         "OpenGL.framework",
213316      }
214317      if _OPTIONS["MACOSX_USE_LIBSDL"]~="1" then
215318         linkoptions {
r245363r245364
230333         }
231334      end
232335   else
233      if _OPTIONS["NO_X11"]=="1" then
234         _OPTIONS["USE_QTDEBUG"] = "0"
235         USE_BGFX = 0
236      else
237         libdirs {
238            "/usr/X11/lib",
239            "/usr/X11R6/lib",
240            "/usr/openwin/lib",
241         }
242         if _OPTIONS["SDL_LIBVER"]=="sdl" then
243            links {
244               "X11",
245            }
246         end
247      end
248336      linkoptions {
249337         string.gsub(os.outputof(sdlconfigcmd() .. " --libs"), '[\r\n]+', ' '),
250338      }
r245363r245364
286374   uuid (os.uuid("osd_" .. _OPTIONS["osd"]))
287375   kind "StaticLib"
288376
377   removeflags {
378      "SingleOutputDir",
379   }
380   
381   options {
382      "ForceCPP",
383   }
384
289385   dofile("sdl_cfg.lua")
290   osdmodulesbuild()
291
386   
292387   includedirs {
293388      MAME_DIR .. "src/emu",
294389      MAME_DIR .. "src/osd",
r245363r245364
296391      MAME_DIR .. "src/lib/util",
297392      MAME_DIR .. "src/osd/modules/render",
298393      MAME_DIR .. "3rdparty",
394      MAME_DIR .. "3rdparty/winpcap/Include",
395      MAME_DIR .. "3rdparty/bgfx/include",
396      MAME_DIR .. "3rdparty/bx/include",
299397      MAME_DIR .. "src/osd/sdl",
300398   }
301399
r245363r245364
341439      MAME_DIR .. "src/osd/sdl/window.c",
342440      MAME_DIR .. "src/osd/sdl/output.c",
343441      MAME_DIR .. "src/osd/sdl/watchdog.c",
442      MAME_DIR .. "src/osd/modules/lib/osdobj_common.c",
344443      MAME_DIR .. "src/osd/modules/render/drawsdl.c",
444      MAME_DIR .. "src/osd/modules/debugger/none.c",
445      MAME_DIR .. "src/osd/modules/debugger/debugint.c",
446      MAME_DIR .. "src/osd/modules/debugger/debugwin.c",
447      MAME_DIR .. "src/osd/modules/debugger/debugqt.c",
448      MAME_DIR .. "src/osd/modules/font/font_sdl.c",
449      MAME_DIR .. "src/osd/modules/font/font_windows.c",
450      MAME_DIR .. "src/osd/modules/font/font_osx.c",
451      MAME_DIR .. "src/osd/modules/font/font_none.c",
452      MAME_DIR .. "src/osd/modules/netdev/taptun.c",
453      MAME_DIR .. "src/osd/modules/netdev/pcap.c",
454      MAME_DIR .. "src/osd/modules/netdev/none.c",
455      MAME_DIR .. "src/osd/modules/midi/portmidi.c",
456      MAME_DIR .. "src/osd/modules/midi/none.c",
457      MAME_DIR .. "src/osd/modules/sound/js_sound.c",
458      MAME_DIR .. "src/osd/modules/sound/direct_sound.c",
459      MAME_DIR .. "src/osd/modules/sound/sdl_sound.c",
460      MAME_DIR .. "src/osd/modules/sound/none.c",
345461   }
462   if _OPTIONS["NO_OPENGL"]~="1" then
463      files {
464         MAME_DIR .. "src/osd/modules/render/drawogl.c",
465         MAME_DIR .. "src/osd/modules/opengl/gl_shader_tool.c",
466         MAME_DIR .. "src/osd/modules/opengl/gl_shader_mgr.c",
467      }
468   end
346469   if _OPTIONS["SDL_LIBVER"]=="sdl2" then
347470      files {
348471         MAME_DIR .. "src/osd/modules/render/draw13.c",
349472      }
350473   end
351474
475   if USE_QT == 1 then
476      files {
477         MAME_DIR .. "src/osd/modules/debugger/qt/debuggerview.c",
478         MAME_DIR .. "src/osd/modules/debugger/qt/windowqt.c",
479         MAME_DIR .. "src/osd/modules/debugger/qt/logwindow.c",
480         MAME_DIR .. "src/osd/modules/debugger/qt/dasmwindow.c",
481         MAME_DIR .. "src/osd/modules/debugger/qt/mainwindow.c",
482         MAME_DIR .. "src/osd/modules/debugger/qt/memorywindow.c",
483         MAME_DIR .. "src/osd/modules/debugger/qt/breakpointswindow.c",
484         MAME_DIR .. "src/osd/modules/debugger/qt/deviceswindow.c",
485         MAME_DIR .. "src/osd/modules/debugger/qt/deviceinformationwindow.c",
352486
487         GEN_DIR  .. "osd/modules/debugger/qt/debuggerview.moc.c",
488         GEN_DIR  .. "osd/modules/debugger/qt/windowqt.moc.c",
489         GEN_DIR  .. "osd/modules/debugger/qt/logwindow.moc.c",
490         GEN_DIR  .. "osd/modules/debugger/qt/dasmwindow.moc.c",
491         GEN_DIR  .. "osd/modules/debugger/qt/mainwindow.moc.c",
492         GEN_DIR  .. "osd/modules/debugger/qt/memorywindow.moc.c",
493         GEN_DIR  .. "osd/modules/debugger/qt/breakpointswindow.moc.c",
494         GEN_DIR  .. "osd/modules/debugger/qt/deviceswindow.moc.c",
495         GEN_DIR  .. "osd/modules/debugger/qt/deviceinformationwindow.moc.c",
496      }
497   end
498
499   if USE_BGFX == 1 then
500      files {
501         MAME_DIR .. "src/osd/modules/render/drawbgfx.c",
502      }
503   end
504
505
353506project ("ocore_" .. _OPTIONS["osd"])
354507   uuid (os.uuid("ocore_" .. _OPTIONS["osd"]))
355508   kind "StaticLib"
trunk/scripts/src/osd/sdl_cfg.lua
r245363r245364
88   }
99end
1010
11if _OPTIONS["NO_OPENGL"]~="1" and _OPTIONS["USE_DISPATCH_GL"]~="1" and _OPTIONS["MESA_INSTALL_ROOT"] then
12   includedirs {
13      path.join(_OPTIONS["MESA_INSTALL_ROOT"],"include"),
11if _OPTIONS["NO_OPENGL"]=="1" then
12   defines {
13      "USE_OPENGL=0",
1414   }
15else
16   defines {
17      "USE_OPENGL=1",
18   }
19   if _OPTIONS["USE_DISPATCH_GL"]=="1" then
20      defines {
21         "USE_DISPATCH_GL=1",
22      }
23   elseif _OPTIONS["MESA_INSTALL_ROOT"] then
24      includedirs {
25         path.join(_OPTIONS["MESA_INSTALL_ROOT"],"include"),
26      }
27   end
1528end
1629
1730
r245363r245364
4154   }
4255end
4356
44if _OPTIONS["NO_USE_MIDI"]~="1" and _OPTIONS["targetos"]=="linux" then
57if _OPTIONS["NO_USE_MIDI"]=="1" then
58   defines {
59      "NO_USE_MIDI",
60   }
61elseif _OPTIONS["targetos"]=="linux" then
4562   buildoptions {
4663      string.gsub(os.outputof("pkg-config --cflags alsa"), '[\r\n]+', ' '),
4764   }
r245363r245364
6279   }
6380end
6481
82if USE_BGFX == 1 then
83   defines {
84      "USE_BGFX"
85   }
86end
87
6588defines {
6689   "OSD_SDL",
6790   "SYNC_IMPLEMENTATION=" .. SYNC_IMPLEMENTATION,
r245363r245364
101124   defines {
102125      "UNICODE",
103126      "_UNICODE",
127      "USE_QTDEBUG=" .. USE_QT,
104128      "main=utf8_main",
105129   }
106
130   configuration { "mingw*" }
131      buildoptions {
132         "-I$(shell qmake -query QT_INSTALL_HEADERS)/QtCore",
133         "-I$(shell qmake -query QT_INSTALL_HEADERS)/QtGui",
134         "-I$(shell qmake -query QT_INSTALL_HEADERS)",
135      }
136     
107137   configuration { "vs*" }
108138      includedirs {
109139         path.join(_OPTIONS["SDL_INSTALL_ROOT"],"include")
r245363r245364
111141   configuration { }
112142
113143elseif _OPTIONS["targetos"]=="linux" then
144   defines {
145      "USE_QTDEBUG=" .. USE_QT,
146   }
114147   buildoptions {
115148      '$(shell pkg-config --cflags QtGui)',
116149   }
r245363r245364
118151   defines {
119152      "SDLMAME_MACOSX",
120153      "SDLMAME_DARWIN",
154      "USE_QTDEBUG=0",
121155   }
122156elseif _OPTIONS["targetos"]=="freebsd" then
123157   buildoptions {
trunk/scripts/src/osd/windows.lua
r245363r245364
1dofile("modules.lua")
2
3
41function maintargetosdoptions(_target)
5   osdmodulestargetconf()
6
72   linkoptions {
83      "-municode",
94   }
r245363r245364
2621   uuid (os.uuid("osd_" .. _OPTIONS["osd"]))
2722   kind "StaticLib"
2823
24   removeflags {
25      "SingleOutputDir",
26   }
27
28   options {
29      "ForceCPP",
30   }
31
2932   dofile("windows_cfg.lua")
30   osdmodulesbuild()
3133
3234   defines {
3335      "DIRECTINPUT_VERSION=0x0800",
r245363r245364
4143      MAME_DIR .. "src/lib/util",
4244      MAME_DIR .. "src/osd/modules/render",
4345      MAME_DIR .. "3rdparty",
46      MAME_DIR .. "3rdparty/winpcap/Include",
47      MAME_DIR .. "3rdparty/bgfx/include",
48      MAME_DIR .. "3rdparty/bx/include",
4449   }
4550
4651   includedirs {
r245363r245364
6065      MAME_DIR .. "src/osd/windows/window.c",
6166      MAME_DIR .. "src/osd/windows/winmenu.c",
6267      MAME_DIR .. "src/osd/windows/winmain.c",
68      MAME_DIR .. "src/osd/modules/debugger/none.c",
69      MAME_DIR .. "src/osd/modules/debugger/debugint.c",
70      MAME_DIR .. "src/osd/modules/debugger/debugwin.c",
71      MAME_DIR .. "src/osd/modules/debugger/debugqt.c",
6372      MAME_DIR .. "src/osd/modules/debugger/win/consolewininfo.c",
6473      MAME_DIR .. "src/osd/modules/debugger/win/debugbaseinfo.c",
6574      MAME_DIR .. "src/osd/modules/debugger/win/debugviewinfo.c",
r245363r245364
7382      MAME_DIR .. "src/osd/modules/debugger/win/memorywininfo.c",
7483      MAME_DIR .. "src/osd/modules/debugger/win/pointswininfo.c",
7584      MAME_DIR .. "src/osd/modules/debugger/win/uimetrics.c",
85      MAME_DIR .. "src/osd/modules/render/drawogl.c",
86      MAME_DIR .. "src/osd/modules/opengl/gl_shader_tool.c",
87      MAME_DIR .. "src/osd/modules/opengl/gl_shader_mgr.c",
88      MAME_DIR .. "src/osd/modules/lib/osdobj_common.c",
89      MAME_DIR .. "src/osd/modules/font/font_sdl.c",
90      MAME_DIR .. "src/osd/modules/font/font_windows.c",
91      MAME_DIR .. "src/osd/modules/font/font_osx.c",
92      MAME_DIR .. "src/osd/modules/font/font_none.c",
93      MAME_DIR .. "src/osd/modules/netdev/taptun.c",
94      MAME_DIR .. "src/osd/modules/netdev/pcap.c",
95      MAME_DIR .. "src/osd/modules/netdev/none.c",
96      MAME_DIR .. "src/osd/modules/midi/portmidi.c",
97      MAME_DIR .. "src/osd/modules/midi/none.c",
98      MAME_DIR .. "src/osd/modules/sound/js_sound.c",
99      MAME_DIR .. "src/osd/modules/sound/direct_sound.c",
100      MAME_DIR .. "src/osd/modules/sound/sdl_sound.c",
101      MAME_DIR .. "src/osd/modules/sound/none.c",
76102   }
77103
104   if USE_BGFX == 1 then
105      files {
106         MAME_DIR .. "src/osd/modules/render/drawbgfx.c",
107      }
108   end
78109
110
79111project ("ocore_" .. _OPTIONS["osd"])
80112   uuid (os.uuid("ocore_" .. _OPTIONS["osd"]))
81113   kind "StaticLib"
trunk/scripts/src/osd/windows_cfg.lua
r245363r245364
33   "_UNICODE",
44   "OSD_WINDOWS",
55   "USE_SDL=0",
6   "USE_QTDEBUG=0",
7   "USE_OPENGL=1",
8   "USE_DISPATCH_GL=1",
9   "DIRECTINPUT_VERSION=0x0800",
610   "main=utf8_main",
711   "_WIN32_WINNT=0x0501",
812}
trunk/src/mame/audio/hng64.c
r245363r245364
194194//  logerror("hng64_sound_port_0008_w %04x %04x\n", data, mem_mask);
195195   // seems to one or more of the DMARQ on the V53, writes here when it expects DMA channel 3 to transfer ~0x20 bytes just after startup
196196
197
197   printf("transfer\n");
198198   m_audiocpu->dreq3_w(data&1);
199199//  m_audiocpu->hack_w(1);
200200
r245363r245364
339339   // these are very active, maybe they feed back into the v53 via one of the IRQ pins?  TM2 toggles more rapidly than TM1
340340//  logerror("tcu_tm1_cb %02x\n", state);
341341   //m_audiocpu->set_input_line(5, state? ASSERT_LINE:CLEAR_LINE); // not accurate, just so we have a trigger
342   /* Almost likely wrong */
343   m_audiocpu->set_input_line(2, state? ASSERT_LINE :CLEAR_LINE);
344
342345}
343346
344347WRITE_LINE_MEMBER(hng64_state::tcu_tm2_cb)
r245363r245364
347350//  logerror("tcu_tm2_cb %02x\n", state);
348351
349352   // NOT ACCURATE, just so that all the interrupts get triggered for now.
350   //static int i = 0;
351   //m_audiocpu->set_input_line(i, state? ASSERT_LINE:CLEAR_LINE);
353   #if 0
354   static int i;
355   if(machine().input().code_pressed_once(KEYCODE_Z))
356      i++;
357
358   if(machine().input().code_pressed_once(KEYCODE_X))
359      i--;
360     
361   if(i < 0)
362      i = 0;
363   if(i > 7)
364      i = 7;
365
366   printf("trigger %02x %d\n",i,state);
367     
368   //if(machine().input().code_pressed_once(KEYCODE_C))
369   {
370      m_audiocpu->set_input_line(i, state? ASSERT_LINE :CLEAR_LINE);
371   }
352372   //i++;
353373   //if (i == 3) i = 0;
374   #endif
354375}
355376
356377
trunk/src/mess/drivers/hh_tms1k.c
r245363r245364
13441344  * TMS1470NLHL MP1133 (die labeled TMS1400 MP1133)
13451345  * 9digit 7seg VFD display + 8 LEDs(4 green, 4 yellow), no sound
13461346
1347  This is an astrological calculator, and also supports 4-function
1348  calculations. Refer to the official manual on how to use this device.
1347  x
13491348
13501349***************************************************************************/
13511350
1352void hh_tms1k_state::astro_display()
1353{
1354   // declare 7segs
1355   for (int y = 0; y < 9; y++)
1356      m_display_segmask[y] = 0xff;
1357
1358   display_matrix(8, 10, m_o, m_r);
1359}
1360
13611351WRITE16_MEMBER(hh_tms1k_state::astro_write_r)
13621352{
1363   // R0-R7: input mux
1364   m_inp_mux = data & 0xff;
1365   
1366   // R0-R9: select digit/leds
1367   m_r = data;
1368   astro_display();
13691353}
13701354
13711355WRITE16_MEMBER(hh_tms1k_state::astro_write_o)
13721356{
1373   // O0-O7: digit segments/leds
1374   m_o = data;
1375   astro_display();
13761357}
13771358
13781359READ8_MEMBER(hh_tms1k_state::astro_read_k)
13791360{
1380   return read_inputs(8);
1361   return 0;
13811362}
13821363
13831364
13841365static INPUT_PORTS_START( astro )
1385   PORT_START("IN.0") // R0
1386   PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_KEYBOARD ) PORT_CODE(KEYCODE_0) PORT_CODE(KEYCODE_0_PAD) PORT_NAME("0")
1387   PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_KEYBOARD ) PORT_CODE(KEYCODE_5) PORT_CODE(KEYCODE_5_PAD) PORT_NAME("5")
1388   PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_KEYBOARD ) PORT_CODE(KEYCODE_SLASH_PAD) PORT_NAME(UTF8_DIVIDE"/Sun")
1389   PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_UNUSED )
1390
1391   PORT_START("IN.1") // R1
1392   PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_KEYBOARD ) PORT_CODE(KEYCODE_1) PORT_CODE(KEYCODE_1_PAD) PORT_NAME("1")
1393   PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_KEYBOARD ) PORT_CODE(KEYCODE_6) PORT_CODE(KEYCODE_6_PAD) PORT_NAME("6")
1394   PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_KEYBOARD ) PORT_CODE(KEYCODE_ASTERISK) PORT_NAME(UTF8_MULTIPLY"/Mercury")
1395   PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_UNUSED )
1396
1397   PORT_START("IN.2") // R2
1398   PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_KEYBOARD ) PORT_CODE(KEYCODE_2) PORT_CODE(KEYCODE_2_PAD) PORT_NAME("2")
1399   PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_KEYBOARD ) PORT_CODE(KEYCODE_7) PORT_CODE(KEYCODE_7_PAD) PORT_NAME("7")
1400   PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_KEYBOARD ) PORT_CODE(KEYCODE_MINUS_PAD) PORT_NAME("-/Venus")
1401   PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_UNUSED )
1402
1403   PORT_START("IN.3") // R3
1404   PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_KEYBOARD ) PORT_CODE(KEYCODE_3) PORT_CODE(KEYCODE_3_PAD) PORT_NAME("3")
1405   PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_KEYBOARD ) PORT_CODE(KEYCODE_8) PORT_CODE(KEYCODE_8_PAD) PORT_NAME("8")
1406   PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_KEYBOARD ) PORT_CODE(KEYCODE_PLUS_PAD) PORT_NAME("+/Mars")
1407   PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_UNUSED )
1408
1409   PORT_START("IN.4") // R4
1410   PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_KEYBOARD ) PORT_CODE(KEYCODE_4) PORT_CODE(KEYCODE_4_PAD) PORT_NAME("4")
1411   PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_KEYBOARD ) PORT_CODE(KEYCODE_9) PORT_CODE(KEYCODE_9_PAD) PORT_NAME("9")
1412   PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_KEYBOARD ) PORT_CODE(KEYCODE_ENTER) PORT_CODE(KEYCODE_ENTER_PAD) PORT_NAME("=/Astro")
1413   PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_UNUSED )
1414
1415   PORT_START("IN.5") // R5
1416   PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_KEYBOARD ) PORT_CODE(KEYCODE_Z) PORT_NAME("B1")
1417   PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_KEYBOARD ) PORT_CODE(KEYCODE_X) PORT_NAME("B2")
1418   PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_KEYBOARD ) PORT_CODE(KEYCODE_STOP) PORT_CODE(KEYCODE_DEL_PAD) PORT_NAME(".")
1419   PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_UNUSED )
1420
1421   PORT_START("IN.6") // R6
1422   PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_KEYBOARD ) PORT_CODE(KEYCODE_DEL) PORT_NAME("C")
1423   PORT_BIT( 0x0e, IP_ACTIVE_HIGH, IPT_UNUSED )
1424
1425   PORT_START("IN.7") // R7
1426   PORT_BIT( 0x07, IP_ACTIVE_HIGH, IPT_UNUSED )
1427   PORT_CONFNAME( 0x08, 0x08, "Mode" )
1428   PORT_CONFSETTING(    0x00, "Calculator" )
1429   PORT_CONFSETTING(    0x08, "Astro" )
14301366INPUT_PORTS_END
14311367
14321368
14331369static MACHINE_CONFIG_START( astro, hh_tms1k_state )
14341370
14351371   /* basic machine hardware */
1436   MCFG_CPU_ADD("maincpu", TMS1470, 450000) // approximation - RC osc. R=4.7K, C=33pf, but unknown RC curve
1372   MCFG_CPU_ADD("maincpu", TMS1470, 400000) // approximation - RC osc. R=4.7K, C=33pf, but unknown RC curve
14371373   MCFG_TMS1XXX_READ_K_CB(READ8(hh_tms1k_state, astro_read_k))
14381374   MCFG_TMS1XXX_WRITE_R_CB(WRITE16(hh_tms1k_state, astro_write_r))
14391375   MCFG_TMS1XXX_WRITE_O_CB(WRITE16(hh_tms1k_state, astro_write_o))
r245363r245364
14631399  Press the R key to start, followed by a set of unique numbers and E.
14641400  Refer to the official manual for more information.
14651401
1402
14661403***************************************************************************/
14671404
14681405WRITE16_MEMBER(hh_tms1k_state::comp4_write_r)
r245363r245364
26562593CONS( 1979, starwbc,   0,        0, starwbc,   starwbc,   driver_device, 0, "Kenner", "Star Wars - Electronic Battle Command", GAME_SUPPORTS_SAVE )
26572594CONS( 1979, starwbcp,  starwbc,  0, starwbc,   starwbc,   driver_device, 0, "Kenner", "Star Wars - Electronic Battle Command (prototype)", GAME_SUPPORTS_SAVE )
26582595
2659COMP( 1979, astro,     0,        0, astro,     astro,     driver_device, 0, "Kosmos", "Astro", GAME_SUPPORTS_SAVE | GAME_NO_SOUND_HW )
2596COMP( 1979, astro,     0,        0, astro,     astro,     driver_device, 0, "Kosmos", "Astro", GAME_SUPPORTS_SAVE | GAME_NO_SOUND_HW | GAME_NOT_WORKING )
26602597
26612598CONS( 1977, comp4,     0,        0, comp4,     comp4,     driver_device, 0, "Milton Bradley", "Comp IV", GAME_SUPPORTS_SAVE | GAME_NO_SOUND_HW )
26622599CONS( 1978, simon,     0,        0, simon,     simon,     driver_device, 0, "Milton Bradley", "Simon (Rev. A)", GAME_SUPPORTS_SAVE )
trunk/src/mess/drivers/ticalc1x.c
r245363r245364
4343   DECLARE_WRITE16_MEMBER(ti1270_write_r);
4444   DECLARE_READ8_MEMBER(ti1270_read_k);
4545
46   DECLARE_WRITE16_MEMBER(ti1000_write_o);
47   DECLARE_WRITE16_MEMBER(ti1000_write_r);
48   DECLARE_READ8_MEMBER(ti1000_read_k);
49
5046   DECLARE_WRITE16_MEMBER(wizatron_write_o);
5147   DECLARE_WRITE16_MEMBER(wizatron_write_r);
5248   DECLARE_READ8_MEMBER(wizatron_read_k);
r245363r245364
401397
402398/***************************************************************************
403399
404  TI-1000
405  * TMS1990 MCU labeled TMC1991NL, die labeled 1991-91A
406  * 8-digit 7seg LED display
407
408***************************************************************************/
409
410WRITE16_MEMBER(ticalc1x_state::ti1000_write_r)
411{
412   // R0-R7: select digit (right-to-left)
413   UINT8 o = BITSWAP8(m_o,7,4,3,2,1,0,6,5);
414   display_matrix_seg(8, 8, o, data, 0xff);
415}
416
417WRITE16_MEMBER(ticalc1x_state::ti1000_write_o)
418{
419   // O0-O3,O5(?): input mux
420   // O0-O7: digit segments
421   m_inp_mux = (data & 0xf) | (data >> 1 & 0x10);
422   m_o = data;
423}
424
425READ8_MEMBER(ticalc1x_state::ti1000_read_k)
426{
427   return read_inputs(5);
428}
429
430
431static INPUT_PORTS_START( ti1000 )
432   PORT_START("IN.0") // O0
433   PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_KEYBOARD ) PORT_CODE(KEYCODE_1) PORT_CODE(KEYCODE_1_PAD) PORT_NAME("1")
434   PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_KEYBOARD ) PORT_CODE(KEYCODE_2) PORT_CODE(KEYCODE_2_PAD) PORT_NAME("2")
435   PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_KEYBOARD ) PORT_CODE(KEYCODE_3) PORT_CODE(KEYCODE_3_PAD) PORT_NAME("3")
436   PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_KEYBOARD ) PORT_CODE(KEYCODE_PLUS_PAD) PORT_NAME("+")
437
438   PORT_START("IN.1") // O1
439   PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_KEYBOARD ) PORT_CODE(KEYCODE_4) PORT_CODE(KEYCODE_4_PAD) PORT_NAME("4")
440   PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_KEYBOARD ) PORT_CODE(KEYCODE_5) PORT_CODE(KEYCODE_5_PAD) PORT_NAME("5")
441   PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_KEYBOARD ) PORT_CODE(KEYCODE_6) PORT_CODE(KEYCODE_6_PAD) PORT_NAME("6")
442   PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_KEYBOARD ) PORT_CODE(KEYCODE_MINUS_PAD) PORT_NAME("-")
443
444   PORT_START("IN.2") // O2
445   PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_KEYBOARD ) PORT_CODE(KEYCODE_7) PORT_CODE(KEYCODE_7_PAD) PORT_NAME("7")
446   PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_KEYBOARD ) PORT_CODE(KEYCODE_8) PORT_CODE(KEYCODE_8_PAD) PORT_NAME("8")
447   PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_KEYBOARD ) PORT_CODE(KEYCODE_9) PORT_CODE(KEYCODE_9_PAD) PORT_NAME("9")
448   PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_KEYBOARD ) PORT_CODE(KEYCODE_ASTERISK) PORT_NAME(UTF8_MULTIPLY)
449
450   // note: even though power buttons are on the matrix, they are not CPU-controlled
451   PORT_START("IN.3") // O3 or O4?
452   PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_KEYBOARD ) PORT_CODE(KEYCODE_PGDN) PORT_NAME("Off") PORT_CHANGED_MEMBER(DEVICE_SELF, ticalc1x_state, power_button, (void *)false)
453   PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_KEYBOARD ) PORT_CODE(KEYCODE_MINUS) PORT_NAME("+/-")
454   PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_KEYBOARD ) PORT_CODE(KEYCODE_SLASH) PORT_NAME("%")
455   PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_KEYBOARD ) PORT_CODE(KEYCODE_SLASH_PAD) PORT_NAME(UTF8_DIVIDE)
456
457   PORT_START("IN.4") // O5
458   PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_KEYBOARD ) PORT_CODE(KEYCODE_PGUP) PORT_CODE(KEYCODE_DEL) PORT_NAME("On/C") PORT_CHANGED_MEMBER(DEVICE_SELF, ticalc1x_state, power_button, (void *)true)
459   PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_KEYBOARD ) PORT_CODE(KEYCODE_0) PORT_CODE(KEYCODE_0_PAD) PORT_NAME("0")
460   PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_KEYBOARD ) PORT_CODE(KEYCODE_STOP) PORT_CODE(KEYCODE_DEL_PAD) PORT_NAME(".")
461   PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_KEYBOARD ) PORT_CODE(KEYCODE_ENTER) PORT_CODE(KEYCODE_ENTER_PAD) PORT_NAME("=")
462INPUT_PORTS_END
463
464
465static MACHINE_CONFIG_START( ti1000, ticalc1x_state )
466
467   /* basic machine hardware */
468   MCFG_CPU_ADD("maincpu", TMS1990, 250000) // guessed
469   MCFG_TMS1XXX_READ_K_CB(READ8(ticalc1x_state, ti1000_read_k))
470   MCFG_TMS1XXX_WRITE_O_CB(WRITE16(ticalc1x_state, ti1000_write_o))
471   MCFG_TMS1XXX_WRITE_R_CB(WRITE16(ticalc1x_state, ti1000_write_r))
472
473   MCFG_TIMER_DRIVER_ADD_PERIODIC("display_decay", hh_tms1k_state, display_decay_tick, attotime::from_msec(1))
474   MCFG_DEFAULT_LAYOUT(layout_ti1270)
475
476   /* no video! */
477
478   /* no sound! */
479MACHINE_CONFIG_END
480
481
482
483
484
485/***************************************************************************
486
487400  TI WIZ-A-TRON
488401  * TMS0970 MCU labeled TMC0907NL ZA0379, DP0907BS. die labeled 0970F-07B
489402  * 9-digit 7seg LED display(one custom digit)
r245363r245364
660573
661574WRITE16_MEMBER(ticalc1x_state::lilprof78_write_o)
662575{
663   // O0-O3,O5(?): input mux
576   // O0-O3,O5: input mux
664577   // O0-O6: digit segments A-G
665578   // O7: 6th digit
666579   m_inp_mux = (data & 0xf) | (data >> 1 & 0x10);
r245363r245364
743656   m_display_segmask[0] = 0xe2;
744657
745658   // R0-R8: select digit
746   UINT8 o = BITSWAP8(m_o,7,5,2,1,4,0,6,3);
747   display_matrix_seg(8, 9, o, data, 0xff);
659   display_matrix_seg(8, 9, BITSWAP8(m_o,7,5,2,1,4,0,6,3), data, 0xff);
748660}
749661
750662WRITE16_MEMBER(ticalc1x_state::ti30_write_o)
r245363r245364
1007919ROM_END
1008920
1009921
1010ROM_START( ti1000 )
1011   ROM_REGION( 0x0400, "maincpu", 0 )
1012   ROM_LOAD( "tmc1991nl", 0x0000, 0x0400, CRC(2da5381d) SHA1(b5dc14553db2068ed48e130e5ec9109930d8cda9) )
1013
1014   ROM_REGION( 782, "maincpu:ipla", 0 )
1015   ROM_LOAD( "tms0970_ti1000_ipla.pla", 0, 782, CRC(05306ef8) SHA1(60a0a3c49ce330bce0c27f15f81d61461d0432ce) )
1016   ROM_REGION( 860, "maincpu:mpla", 0 )
1017   ROM_LOAD( "tms0970_ti1000_mpla.pla", 0, 860, CRC(7f50ab2e) SHA1(bff3be9af0e322986f6e545b567c97d70e135c93) )
1018   ROM_REGION( 352, "maincpu:opla", 0 )
1019   ROM_LOAD( "tms0970_ti1000_opla.pla", 0, 352, CRC(1d82061a) SHA1(90e4a4b0fb3b4ae5965da90479b7fed737ad8831) )
1020   ROM_REGION( 157, "maincpu:spla", 0 )
1021   ROM_LOAD( "tms0970_ti1000_spla.pla", 0, 157, CRC(234ca3a8) SHA1(76844dd87cb380a07c8fcbef143038087e98f138) )
1022ROM_END
1023
1024
1025922ROM_START( wizatron )
1026923   ROM_REGION( 0x0400, "maincpu", 0 )
1027924   ROM_LOAD( "za0379", 0x0000, 0x0400, CRC(5a6af094) SHA1(b1f27e1f13f4db3b052dd50fb08dbf9c4d8db26e) )
r245363r245364
11171014COMP( 1975, tisr16ii,  0,        0, tisr16ii,  tisr16ii,  driver_device, 0, "Texas Instruments", "SR-16 II", GAME_SUPPORTS_SAVE | GAME_NO_SOUND_HW )
11181015
11191016COMP( 1976, ti1270,    0,        0, ti1270,    ti1270,    driver_device, 0, "Texas Instruments", "TI-1270", GAME_SUPPORTS_SAVE | GAME_NO_SOUND_HW )
1120COMP( 1977, ti1000,    0,        0, ti1000,    ti1000,    driver_device, 0, "Texas Instruments", "TI-1000", GAME_SUPPORTS_SAVE | GAME_NO_SOUND_HW )
11211017COMP( 1977, wizatron,  0,        0, wizatron,  wizatron,  driver_device, 0, "Texas Instruments", "Wiz-A-Tron", GAME_SUPPORTS_SAVE | GAME_NO_SOUND_HW )
11221018COMP( 1976, lilprof,   0,        0, lilprof,   lilprof,   driver_device, 0, "Texas Instruments", "Little Professor (1976 version)", GAME_SUPPORTS_SAVE | GAME_NO_SOUND_HW )
11231019COMP( 1978, lilprof78, lilprof,  0, lilprof78, lilprof78, driver_device, 0, "Texas Instruments", "Little Professor (1978 version)", GAME_SUPPORTS_SAVE | GAME_NO_SOUND_HW )
trunk/src/mess/includes/hh_tms1k.h
r245363r245364
101101   DECLARE_WRITE16_MEMBER(starwbc_write_o);
102102   DECLARE_READ8_MEMBER(starwbc_read_k);
103103
104   void astro_display();
105104   DECLARE_WRITE16_MEMBER(astro_write_r);
106105   DECLARE_WRITE16_MEMBER(astro_write_o);
107106   DECLARE_READ8_MEMBER(astro_read_k);
trunk/src/mess/layout/astro.lay
r245363r245364
55
66   <element name="static_black"><rect><color red="0.0" green="0.0" blue="0.0" /></rect></element>
77
8   <element name="text_sun"><text string="SUN"><color red="0.66" green="0.66" blue="0.7" /></text></element>
9   <element name="text_mercury"><text string="MERCURY"><color red="0.66" green="0.66" blue="0.7" /></text></element>
10   <element name="text_venus"><text string="VENUS"><color red="0.66" green="0.66" blue="0.7" /></text></element>
11   <element name="text_mars"><text string="MARS"><color red="0.66" green="0.66" blue="0.7" /></text></element>
128
13   <element name="led_g" defstate="0">
14      <disk state="1"><color red="0.25" green="1.0" blue="0.25" /></disk>
15      <disk state="0"><color red="0.05" green="0.2" blue="0.05" /></disk>
16   </element>
17   <element name="led_y" defstate="0">
18      <disk state="1"><color red="1.0" green="1.0" blue="0.25" /></disk>
19      <disk state="0"><color red="0.2" green="0.2" blue="0.05" /></disk>
20   </element>
21
22   <element name="digit" defstate="0">
23      <led7seg><color red="0.2" green="1.0" blue="0.85" /></led7seg>
24   </element>
25
26
279<!-- build screen -->
2810
2911   <view name="Internal Layout">
30      <bounds left="0" right="90" top="0" bottom="32" />
12      <bounds left="0" right="47" top="0" bottom="53" />
3113      <bezel element="static_black">
32         <bounds left="0" right="90" top="0" bottom="32" />
14         <bounds left="0" right="47" top="0" bottom="53" />
3315      </bezel>
3416
35      <bezel name="digit0" element="digit"><bounds x="0" y="0" width="10" height="15" /></bezel>
36      <bezel name="digit1" element="digit"><bounds x="10" y="0" width="10" height="15" /></bezel>
37      <bezel name="digit2" element="digit"><bounds x="20" y="0" width="10" height="15" /></bezel>
38      <bezel name="digit3" element="digit"><bounds x="30" y="0" width="10" height="15" /></bezel>
39      <bezel name="digit4" element="digit"><bounds x="40" y="0" width="10" height="15" /></bezel>
40      <bezel name="digit5" element="digit"><bounds x="50" y="0" width="10" height="15" /></bezel>
41      <bezel name="digit6" element="digit"><bounds x="60" y="0" width="10" height="15" /></bezel>
42      <bezel name="digit7" element="digit"><bounds x="70" y="0" width="10" height="15" /></bezel>
43      <bezel name="digit8" element="digit"><bounds x="80" y="0" width="10" height="15" /></bezel>
4417
45      <bezel element="text_sun"><bounds x="10" y="22" width="10" height="3" /></bezel>
46      <bezel element="text_mercury"><bounds x="30" y="22" width="10" height="3" /></bezel>
47      <bezel element="text_venus"><bounds x="50" y="22" width="10" height="3" /></bezel>
48      <bezel element="text_mars"><bounds x="70" y="22" width="10" height="3" /></bezel>
49
50      <bezel name="lamp90" element="led_g"><bounds x="10" y="27" width="4" height="4" /></bezel>
51      <bezel name="lamp91" element="led_y"><bounds x="15" y="27" width="4" height="4" /></bezel>
52
53      <bezel name="lamp92" element="led_g"><bounds x="30" y="27" width="4" height="4" /></bezel>
54      <bezel name="lamp93" element="led_y"><bounds x="35" y="27" width="4" height="4" /></bezel>
55
56      <bezel name="lamp94" element="led_g"><bounds x="50" y="27" width="4" height="4" /></bezel>
57      <bezel name="lamp95" element="led_y"><bounds x="55" y="27" width="4" height="4" /></bezel>
58
59      <bezel name="lamp96" element="led_g"><bounds x="70" y="27" width="4" height="4" /></bezel>
60      <bezel name="lamp97" element="led_y"><bounds x="75" y="27" width="4" height="4" /></bezel>
61
62
6318   </view>
6419</mamelayout>
trunk/src/mess/mess.lst
r245363r245364
10841084tisr16    // 1974 SR-16
10851085tisr16ii
10861086ti1270
1087ti1000
10881087ti30      // 1976 TI-30
10891088tiprog
10901089tibusan1
trunk/src/osd/sdl/osdsdl.h
r245363r245364
3030   #define SDL13_COMBINE_RESIZE (0)
3131#endif
3232
33#if defined(NO_DEBUGGER)
34#define SDLMAME_HAS_DEBUGGER            (0)
35#else
36#define SDLMAME_HAS_DEBUGGER            (1)
37#endif
38
3339//============================================================
3440//  Defines
3541//============================================================
trunk/src/osd/sdl/sdlmain.c
r245363r245364
397397   MACRO_VERBOSE(LSB_FIRST);
398398   MACRO_VERBOSE(PTR64);
399399   MACRO_VERBOSE(MAME_DEBUG);
400   MACRO_VERBOSE(NO_DEBUGBER);
400401   MACRO_VERBOSE(BIGENDIAN);
401402   MACRO_VERBOSE(CPP_COMPILE);
402403   MACRO_VERBOSE(SYNC_IMPLEMENTATION);
r245363r245364
598599
599600   defines_verbose();
600601
602   if (!SDLMAME_HAS_DEBUGGER)
603      if (machine.debug_flags & DEBUG_FLAG_OSD_ENABLED)
604      {
605         osd_printf_error("sdlmame: -debug not supported on X11-less builds\n\n");
606         osd_exit();
607         exit(-1);
608      }
609
601610   osd_common_t::init_subsystems();
602611
603612   if (options().oslog())


Previous 199869 Revisions Next


© 1997-2024 The MAME Team