Previous 199869 Revisions Next

r36853 Tuesday 31st March, 2015 at 22:00:27 UTC by David Haywood
new clones
Hexion (Asia ver AAA, bootleg) [system11]

(this means there's an original AAA version out there, this one has been hacked to play the music on an extra M6295, although all the konami custom sound code is still in there)
[/trunk]makefile
[scripts]genie.lua
[scripts/src/osd]modules.lua* sdl.lua sdl_cfg.lua windows.lua windows_cfg.lua
[src/mame]mame.lst
[src/mame/audio]hng64.c
[src/mame/drivers]hexion.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
r245364r245365
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
305296ifdef DONT_USE_NETWORK
306297PARAMS += --DONT_USE_NETWORK='$(DONT_USE_NETWORK)'
307298endif
r245364r245365
314305PARAMS += --USE_DISPATCH_GL='$(USE_DISPATCH_GL)'
315306endif
316307
308ifdef NO_USE_MIDI
309PARAMS += --NO_USE_MIDI='$(NO_USE_MIDI)'
310endif
311
312ifdef USE_QTDEBUG
313PARAMS += --USE_QTDEBUG='$(USE_QTDEBUG)'
314endif
315
317316ifdef MESA_INSTALL_ROOT
318317PARAMS += --MESA_INSTALL_ROOT='$(MESA_INSTALL_ROOT)'
319318endif
r245364r245365
326325PARAMS += --NO_USE_XINPUT='$(NO_USE_XINPUT)'
327326endif
328327
329ifdef NO_USE_MIDI
330PARAMS += --NO_USE_MIDI='$(NO_USE_MIDI)'
331endif
332
333328ifdef SDL_LIBVER
334329PARAMS += --SDL_LIBVER='$(SDL_LIBVER)'
335330endif
r245364r245365
710705
711706LAYOUTS=$(wildcard $(SRC)/emu/layout/*.lay) $(wildcard $(SRC)/$(TARGET)/layout/*.lay)
712707
713ifeq ($(USE_QT),0)
708MOC_FILES=$(wildcard $(SRC)/osd/modules/debugger/qt/*.h)
709ifneq ($(USE_QTDEBUG),1)
710ifeq ($(TARGETOS),macosx)
714711MOC_FILES=
715else
716MOC_FILES=$(wildcard $(SRC)/osd/modules/debugger/qt/*.h)
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
717726
718727ifeq ($(OS),windows)
719728MOC = moc
720ifneq ($(OSD),sdl)
721MOC_FILES=
722endif
723729else
724730MOCTST = $(shell which moc-qt4 2>/dev/null)
725731ifeq '$(MOCTST)' ''
r245364r245365
734740endif
735741endif
736742
737endif
738743
739744ifneq (,$(wildcard src/osd/$(OSD)/$(OSD).mak))
740745include src/osd/$(OSD)/$(OSD).mak
trunk/scripts/genie.lua
r245364r245365
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
199185local os_version = str_to_version(_OPTIONS["os_version"])
200186
201187USE_BGFX = 1
r245364r245365
206192   USE_BGFX = tonumber(_OPTIONS["USE_BGFX"])
207193end
208194
209USE_QT = 1
210if(_OPTIONS["USE_QT"]~=nil) then
211   USE_QT = tonumber(_OPTIONS["USE_QT"])
212end
213
214195GEN_DIR = MAME_BUILD_DIR .. "generated/"
215196
216197if (_OPTIONS["target"] == nil) then return false end
trunk/scripts/src/osd/modules.lua
r0r245365
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
r245364r245365
1dofile("modules.lua")
2
3
14function maintargetosdoptions(_target)
5   osdmodulestargetconf()
6
27   if _OPTIONS["USE_DISPATCH_GL"]~="1" and _OPTIONS["MESA_INSTALL_ROOT"] then
38      libdirs {
49         path.join(_OPTIONS["MESA_INSTALL_ROOT"],"lib"),
r245364r245365
3237            "SDL_ttf",
3338         }
3439      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
5146      configuration { "mingw*" }
5247         linkoptions{
5348            "-municode",
r245364r245365
6560            "SDL2",
6661         }
6762      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
10163   elseif _OPTIONS["targetos"]=="haiku" then
10264      links {
10365         "network",
r245364r245365
12284
12385
12486newoption {
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 {
15987   trigger = "MESA_INSTALL_ROOT",
160   description = "link against specific GL-Library - also adds rpath to executable",
88   description = "link against specific GL-Library - also adds rpath to executable (overridden by USE_DISPATCH_GL)",
16189}
16290
16391newoption {
r245364r245365
191119end
192120
193121newoption {
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 {
211122   trigger = "SDL_LIBVER",
212123   description = "Choose SDL version",
213124   allowed = {
r245364r245365
295206   SYNC_IMPLEMENTATION = "os2"
296207end
297208
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
311209if BASE_TARGETOS=="unix" then
312210   if _OPTIONS["targetos"]=="macosx" then
313211      links {
314212         "Cocoa.framework",
315         "OpenGL.framework",
316213      }
317214      if _OPTIONS["MACOSX_USE_LIBSDL"]~="1" then
318215         linkoptions {
r245364r245365
333230         }
334231      end
335232   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
336248      linkoptions {
337249         string.gsub(os.outputof(sdlconfigcmd() .. " --libs"), '[\r\n]+', ' '),
338250      }
r245364r245365
374286   uuid (os.uuid("osd_" .. _OPTIONS["osd"]))
375287   kind "StaticLib"
376288
377   removeflags {
378      "SingleOutputDir",
379   }
380   
381   options {
382      "ForceCPP",
383   }
384
385289   dofile("sdl_cfg.lua")
386   
290   osdmodulesbuild()
291
387292   includedirs {
388293      MAME_DIR .. "src/emu",
389294      MAME_DIR .. "src/osd",
r245364r245365
391296      MAME_DIR .. "src/lib/util",
392297      MAME_DIR .. "src/osd/modules/render",
393298      MAME_DIR .. "3rdparty",
394      MAME_DIR .. "3rdparty/winpcap/Include",
395      MAME_DIR .. "3rdparty/bgfx/include",
396      MAME_DIR .. "3rdparty/bx/include",
397299      MAME_DIR .. "src/osd/sdl",
398300   }
399301
r245364r245365
439341      MAME_DIR .. "src/osd/sdl/window.c",
440342      MAME_DIR .. "src/osd/sdl/output.c",
441343      MAME_DIR .. "src/osd/sdl/watchdog.c",
442      MAME_DIR .. "src/osd/modules/lib/osdobj_common.c",
443344      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",
461345   }
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
469346   if _OPTIONS["SDL_LIBVER"]=="sdl2" then
470347      files {
471348         MAME_DIR .. "src/osd/modules/render/draw13.c",
472349      }
473350   end
474351
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",
486352
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
506353project ("ocore_" .. _OPTIONS["osd"])
507354   uuid (os.uuid("ocore_" .. _OPTIONS["osd"]))
508355   kind "StaticLib"
trunk/scripts/src/osd/sdl_cfg.lua
r245364r245365
88   }
99end
1010
11if _OPTIONS["NO_OPENGL"]=="1" then
12   defines {
13      "USE_OPENGL=0",
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"),
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
2815end
2916
3017
r245364r245365
5441   }
5542end
5643
57if _OPTIONS["NO_USE_MIDI"]=="1" then
58   defines {
59      "NO_USE_MIDI",
60   }
61elseif _OPTIONS["targetos"]=="linux" then
44if _OPTIONS["NO_USE_MIDI"]~="1" and _OPTIONS["targetos"]=="linux" then
6245   buildoptions {
6346      string.gsub(os.outputof("pkg-config --cflags alsa"), '[\r\n]+', ' '),
6447   }
r245364r245365
7962   }
8063end
8164
82if USE_BGFX == 1 then
83   defines {
84      "USE_BGFX"
85   }
86end
87
8865defines {
8966   "OSD_SDL",
9067   "SYNC_IMPLEMENTATION=" .. SYNC_IMPLEMENTATION,
r245364r245365
124101   defines {
125102      "UNICODE",
126103      "_UNICODE",
127      "USE_QTDEBUG=" .. USE_QT,
128104      "main=utf8_main",
129105   }
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     
106
137107   configuration { "vs*" }
138108      includedirs {
139109         path.join(_OPTIONS["SDL_INSTALL_ROOT"],"include")
r245364r245365
141111   configuration { }
142112
143113elseif _OPTIONS["targetos"]=="linux" then
144   defines {
145      "USE_QTDEBUG=" .. USE_QT,
146   }
147114   buildoptions {
148115      '$(shell pkg-config --cflags QtGui)',
149116   }
r245364r245365
151118   defines {
152119      "SDLMAME_MACOSX",
153120      "SDLMAME_DARWIN",
154      "USE_QTDEBUG=0",
155121   }
156122elseif _OPTIONS["targetos"]=="freebsd" then
157123   buildoptions {
trunk/scripts/src/osd/windows.lua
r245364r245365
1dofile("modules.lua")
2
3
14function maintargetosdoptions(_target)
5   osdmodulestargetconf()
6
27   linkoptions {
38      "-municode",
49   }
r245364r245365
2126   uuid (os.uuid("osd_" .. _OPTIONS["osd"]))
2227   kind "StaticLib"
2328
24   removeflags {
25      "SingleOutputDir",
26   }
27
28   options {
29      "ForceCPP",
30   }
31
3229   dofile("windows_cfg.lua")
30   osdmodulesbuild()
3331
3432   defines {
3533      "DIRECTINPUT_VERSION=0x0800",
r245364r245365
4341      MAME_DIR .. "src/lib/util",
4442      MAME_DIR .. "src/osd/modules/render",
4543      MAME_DIR .. "3rdparty",
46      MAME_DIR .. "3rdparty/winpcap/Include",
47      MAME_DIR .. "3rdparty/bgfx/include",
48      MAME_DIR .. "3rdparty/bx/include",
4944   }
5045
5146   includedirs {
r245364r245365
6560      MAME_DIR .. "src/osd/windows/window.c",
6661      MAME_DIR .. "src/osd/windows/winmenu.c",
6762      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",
7263      MAME_DIR .. "src/osd/modules/debugger/win/consolewininfo.c",
7364      MAME_DIR .. "src/osd/modules/debugger/win/debugbaseinfo.c",
7465      MAME_DIR .. "src/osd/modules/debugger/win/debugviewinfo.c",
r245364r245365
8273      MAME_DIR .. "src/osd/modules/debugger/win/memorywininfo.c",
8374      MAME_DIR .. "src/osd/modules/debugger/win/pointswininfo.c",
8475      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",
10276   }
10377
104   if USE_BGFX == 1 then
105      files {
106         MAME_DIR .. "src/osd/modules/render/drawbgfx.c",
107      }
108   end
10978
110
11179project ("ocore_" .. _OPTIONS["osd"])
11280   uuid (os.uuid("ocore_" .. _OPTIONS["osd"]))
11381   kind "StaticLib"
trunk/scripts/src/osd/windows_cfg.lua
r245364r245365
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",
106   "main=utf8_main",
117   "_WIN32_WINNT=0x0501",
128}
trunk/src/mame/audio/hng64.c
r245364r245365
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   printf("transfer\n");
197
198198   m_audiocpu->dreq3_w(data&1);
199199//  m_audiocpu->hack_w(1);
200200
r245364r245365
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
345342}
346343
347344WRITE_LINE_MEMBER(hng64_state::tcu_tm2_cb)
r245364r245365
350347//  logerror("tcu_tm2_cb %02x\n", state);
351348
352349   // NOT ACCURATE, just so that all the interrupts get triggered for now.
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   }
350   //static int i = 0;
351   //m_audiocpu->set_input_line(i, state? ASSERT_LINE:CLEAR_LINE);
372352   //i++;
373353   //if (i == 3) i = 0;
374   #endif
375354}
376355
377356
trunk/src/mame/drivers/hexion.c
r245364r245365
115115   AM_RANGE(0xa000, 0xbfff) AM_RAM
116116   AM_RANGE(0xc000, 0xdffe) AM_READWRITE(hexion_bankedram_r, hexion_bankedram_w)
117117   AM_RANGE(0xdfff, 0xdfff) AM_WRITE(hexion_bankctrl_w)
118   AM_RANGE(0xe000, 0xe000) AM_NOP
118119   AM_RANGE(0xe800, 0xe87f) AM_DEVREADWRITE("k051649", k051649_device, k051649_waveform_r, k051649_waveform_w)
119120   AM_RANGE(0xe880, 0xe889) AM_DEVWRITE("k051649", k051649_device, k051649_frequency_w)
120121   AM_RANGE(0xe88a, 0xe88e) AM_DEVWRITE("k051649", k051649_device, k051649_volume_w)
r245364r245365
134135   AM_RANGE(0xf540, 0xf540) AM_READ(watchdog_reset_r)
135136ADDRESS_MAP_END
136137
138static ADDRESS_MAP_START( hexionb_map, AS_PROGRAM, 8, hexion_state )
139   AM_RANGE(0x0000, 0x7fff) AM_ROM
140   AM_RANGE(0x8000, 0x9fff) AM_ROMBANK("bank1")
141   AM_RANGE(0xa000, 0xbfff) AM_RAM
142   AM_RANGE(0xc000, 0xdffe) AM_READWRITE(hexion_bankedram_r, hexion_bankedram_w)
143   AM_RANGE(0xdfff, 0xdfff) AM_WRITE(hexion_bankctrl_w)
144   AM_RANGE(0xe000, 0xe000) AM_NOP
145   AM_RANGE(0xe800, 0xe87f) AM_NOP // all the code to use the k051649 is still present
146   AM_RANGE(0xe880, 0xe889) AM_NOP // but the bootleg has an additional M6295 @ 0xf5c0 instead
147   AM_RANGE(0xe88a, 0xe88e) AM_NOP
148   AM_RANGE(0xe88f, 0xe88f) AM_NOP
149   AM_RANGE(0xe8e0, 0xe8ff) AM_NOP
150   AM_RANGE(0xf000, 0xf00f) AM_DEVREADWRITE("k053252", k053252_device, read, write)
151   AM_RANGE(0xf200, 0xf200) AM_DEVWRITE("oki", okim6295_device, write)
152   AM_RANGE(0xf400, 0xf400) AM_READ_PORT("DSW1")
153   AM_RANGE(0xf401, 0xf401) AM_READ_PORT("DSW2")
154   AM_RANGE(0xf402, 0xf402) AM_READ_PORT("P1")
155   AM_RANGE(0xf403, 0xf403) AM_READ_PORT("P2")
156   AM_RANGE(0xf440, 0xf440) AM_READ_PORT("DSW3")
157   AM_RANGE(0xf441, 0xf441) AM_READ_PORT("SYSTEM")
158   AM_RANGE(0xf480, 0xf480) AM_WRITE(hexion_bankswitch_w)
159   AM_RANGE(0xf4c0, 0xf4c0) AM_WRITE(coincntr_w)
160   AM_RANGE(0xf500, 0xf500) AM_WRITE(hexion_gfxrom_select_w)
161   AM_RANGE(0xf540, 0xf540) AM_READ(watchdog_reset_r)
162   AM_RANGE(0xf5c0, 0xf5c0) AM_DEVWRITE("oki2", okim6295_device, write)
163ADDRESS_MAP_END
137164
138
139165static INPUT_PORTS_START( hexion )
140166   PORT_START("DSW1")
141167   KONAMI_COINAGE_LOC(DEF_STR( Free_Play ), DEF_STR( Free_Play ), SW1)
r245364r245365
240266   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.5)
241267MACHINE_CONFIG_END
242268
269static MACHINE_CONFIG_DERIVED( hexionb, hexion )
270   MCFG_CPU_MODIFY("maincpu")
271   MCFG_CPU_PROGRAM_MAP(hexionb_map)
243272
273   MCFG_DEVICE_REMOVE("k051649")
244274
275   MCFG_OKIM6295_ADD("oki2", 1056000, OKIM6295_PIN7_HIGH) // clock frequency & pin 7 not verified
276   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.5)
277MACHINE_CONFIG_END
278
279
245280/***************************************************************************
246281
247282  Game driver(s)
r245364r245365
266301   ROM_LOAD( "122a02.13b",   0x0200, 0x0100, CRC(5734305c) SHA1(c72e59acf79a4db1a5a9d827eef899c0675336f2) )
267302ROM_END
268303
304ROM_START( hexionb )
305   ROM_REGION( 0x34800, "maincpu", 0 ) /* ROMs + space for additional RAM */
306   ROM_LOAD( "hexionb.u2", 0x00000, 0x20000, CRC(93edc5d4) SHA1(d14c5be85a67eebddda9103bdf19de8c3c05d3af) )
307   ROM_RELOAD(               0x10000, 0x20000 )    /* banked at 8000-9fff */
269308
270GAME( 1992, hexion, 0, hexion, hexion, driver_device, 0, ROT0, "Konami", "Hexion (Japan ver JAB)", 0 )
309   ROM_REGION( 0x80000, "gfx1", 0 )    /* addressable by the main CPU */
310   ROM_LOAD( "hexionb.u30",   0x00000, 0x40000, CRC(22ae55e3) SHA1(41bdc990f69416b639542e2186a3610c16389063) )
311   ROM_LOAD( "hexionb.u29",   0x40000, 0x40000, CRC(438f4388) SHA1(9e23805c9642a237daeaf106187d1e1e0692434d) )
312
313   ROM_REGION( 0x40000, "oki", 0 ) /* OKIM6295 samples */
314   ROM_LOAD( "hexionb.u16",   0x0000, 0x40000, CRC(bcc831bf) SHA1(c3382065dd0069a4dc0bde2d9931ec85b0bffc73) )
315
316   ROM_REGION( 0x40000, "oki2", 0 ) /* OKIM6295 samples */
317   ROM_LOAD( "hexionb.u18",   0x0000, 0x40000, CRC(c179d315) SHA1(b39d5ec8a90b7ae06763191b8324f32fe1d0ca9b) )
318
319   ROM_REGION( 0x0300, "proms", 0 )
320   ROM_LOAD( "122a04.10b",   0x0000, 0x0100, CRC(506eb8c6) SHA1(3bff7cf286942d8bdbc3998245c3de20981fbecb) )
321   ROM_LOAD( "122a03.11b",   0x0100, 0x0100, CRC(590c4f64) SHA1(db4b34f8c5fdfea034a94d65873f6fb842f123e9) )
322   ROM_LOAD( "122a02.13b",   0x0200, 0x0100, CRC(5734305c) SHA1(c72e59acf79a4db1a5a9d827eef899c0675336f2) )
323ROM_END
324
325GAME( 1992, hexion, 0,      hexion, hexion, driver_device, 0, ROT0, "Konami",                     "Hexion (Japan ver JAB)", 0 )
326GAME( 1992, hexionb,hexion, hexionb,hexion, driver_device, 0, ROT0, "bootleg (Impeuropex Corp.)", "Hexion (Asia ver AAA, bootleg)", 0 ) // we're missing an original Asia AAA
327
trunk/src/mame/mame.lst
r245364r245365
64566456chqflagj        // GX717 (c) 1988 (Japan)
64576457ultraman        // GX910 (c) 1991 Banpresto/Bandai
64586458hexion          // GX122 (c) 1992
6459hexionb         // bootleg
64596460lethalen        // GX191 (c) 1992
64606461lethalenub      // GX191 (c) 1992
64616462lethalenua      // GX191 (c) 1992
trunk/src/mess/drivers/hh_tms1k.c
r245364r245365
13441344  * TMS1470NLHL MP1133 (die labeled TMS1400 MP1133)
13451345  * 9digit 7seg VFD display + 8 LEDs(4 green, 4 yellow), no sound
13461346
1347  x
1347  This is an astrological calculator, and also supports 4-function
1348  calculations. Refer to the official manual on how to use this device.
13481349
13491350***************************************************************************/
13501351
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
13511361WRITE16_MEMBER(hh_tms1k_state::astro_write_r)
13521362{
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();
13531369}
13541370
13551371WRITE16_MEMBER(hh_tms1k_state::astro_write_o)
13561372{
1373   // O0-O7: digit segments/leds
1374   m_o = data;
1375   astro_display();
13571376}
13581377
13591378READ8_MEMBER(hh_tms1k_state::astro_read_k)
13601379{
1361   return 0;
1380   return read_inputs(8);
13621381}
13631382
13641383
13651384static 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" )
13661430INPUT_PORTS_END
13671431
13681432
13691433static MACHINE_CONFIG_START( astro, hh_tms1k_state )
13701434
13711435   /* basic machine hardware */
1372   MCFG_CPU_ADD("maincpu", TMS1470, 400000) // approximation - RC osc. R=4.7K, C=33pf, but unknown RC curve
1436   MCFG_CPU_ADD("maincpu", TMS1470, 450000) // approximation - RC osc. R=4.7K, C=33pf, but unknown RC curve
13731437   MCFG_TMS1XXX_READ_K_CB(READ8(hh_tms1k_state, astro_read_k))
13741438   MCFG_TMS1XXX_WRITE_R_CB(WRITE16(hh_tms1k_state, astro_write_r))
13751439   MCFG_TMS1XXX_WRITE_O_CB(WRITE16(hh_tms1k_state, astro_write_o))
r245364r245365
13991463  Press the R key to start, followed by a set of unique numbers and E.
14001464  Refer to the official manual for more information.
14011465
1402
14031466***************************************************************************/
14041467
14051468WRITE16_MEMBER(hh_tms1k_state::comp4_write_r)
r245364r245365
25932656CONS( 1979, starwbc,   0,        0, starwbc,   starwbc,   driver_device, 0, "Kenner", "Star Wars - Electronic Battle Command", GAME_SUPPORTS_SAVE )
25942657CONS( 1979, starwbcp,  starwbc,  0, starwbc,   starwbc,   driver_device, 0, "Kenner", "Star Wars - Electronic Battle Command (prototype)", GAME_SUPPORTS_SAVE )
25952658
2596COMP( 1979, astro,     0,        0, astro,     astro,     driver_device, 0, "Kosmos", "Astro", GAME_SUPPORTS_SAVE | GAME_NO_SOUND_HW | GAME_NOT_WORKING )
2659COMP( 1979, astro,     0,        0, astro,     astro,     driver_device, 0, "Kosmos", "Astro", GAME_SUPPORTS_SAVE | GAME_NO_SOUND_HW )
25972660
25982661CONS( 1977, comp4,     0,        0, comp4,     comp4,     driver_device, 0, "Milton Bradley", "Comp IV", GAME_SUPPORTS_SAVE | GAME_NO_SOUND_HW )
25992662CONS( 1978, simon,     0,        0, simon,     simon,     driver_device, 0, "Milton Bradley", "Simon (Rev. A)", GAME_SUPPORTS_SAVE )
trunk/src/mess/drivers/ticalc1x.c
r245364r245365
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
4650   DECLARE_WRITE16_MEMBER(wizatron_write_o);
4751   DECLARE_WRITE16_MEMBER(wizatron_write_r);
4852   DECLARE_READ8_MEMBER(wizatron_read_k);
r245364r245365
397401
398402/***************************************************************************
399403
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
400487  TI WIZ-A-TRON
401488  * TMS0970 MCU labeled TMC0907NL ZA0379, DP0907BS. die labeled 0970F-07B
402489  * 9-digit 7seg LED display(one custom digit)
r245364r245365
573660
574661WRITE16_MEMBER(ticalc1x_state::lilprof78_write_o)
575662{
576   // O0-O3,O5: input mux
663   // O0-O3,O5(?): input mux
577664   // O0-O6: digit segments A-G
578665   // O7: 6th digit
579666   m_inp_mux = (data & 0xf) | (data >> 1 & 0x10);
r245364r245365
656743   m_display_segmask[0] = 0xe2;
657744
658745   // R0-R8: select digit
659   display_matrix_seg(8, 9, BITSWAP8(m_o,7,5,2,1,4,0,6,3), data, 0xff);
746   UINT8 o = BITSWAP8(m_o,7,5,2,1,4,0,6,3);
747   display_matrix_seg(8, 9, o, data, 0xff);
660748}
661749
662750WRITE16_MEMBER(ticalc1x_state::ti30_write_o)
r245364r245365
9191007ROM_END
9201008
9211009
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
9221025ROM_START( wizatron )
9231026   ROM_REGION( 0x0400, "maincpu", 0 )
9241027   ROM_LOAD( "za0379", 0x0000, 0x0400, CRC(5a6af094) SHA1(b1f27e1f13f4db3b052dd50fb08dbf9c4d8db26e) )
r245364r245365
10141117COMP( 1975, tisr16ii,  0,        0, tisr16ii,  tisr16ii,  driver_device, 0, "Texas Instruments", "SR-16 II", GAME_SUPPORTS_SAVE | GAME_NO_SOUND_HW )
10151118
10161119COMP( 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 )
10171121COMP( 1977, wizatron,  0,        0, wizatron,  wizatron,  driver_device, 0, "Texas Instruments", "Wiz-A-Tron", GAME_SUPPORTS_SAVE | GAME_NO_SOUND_HW )
10181122COMP( 1976, lilprof,   0,        0, lilprof,   lilprof,   driver_device, 0, "Texas Instruments", "Little Professor (1976 version)", GAME_SUPPORTS_SAVE | GAME_NO_SOUND_HW )
10191123COMP( 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
r245364r245365
101101   DECLARE_WRITE16_MEMBER(starwbc_write_o);
102102   DECLARE_READ8_MEMBER(starwbc_read_k);
103103
104   void astro_display();
104105   DECLARE_WRITE16_MEMBER(astro_write_r);
105106   DECLARE_WRITE16_MEMBER(astro_write_o);
106107   DECLARE_READ8_MEMBER(astro_read_k);
trunk/src/mess/layout/astro.lay
r245364r245365
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>
812
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
927<!-- build screen -->
1028
1129   <view name="Internal Layout">
12      <bounds left="0" right="47" top="0" bottom="53" />
30      <bounds left="0" right="90" top="0" bottom="32" />
1331      <bezel element="static_black">
14         <bounds left="0" right="47" top="0" bottom="53" />
32         <bounds left="0" right="90" top="0" bottom="32" />
1533      </bezel>
1634
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>
1744
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
1863   </view>
1964</mamelayout>
trunk/src/mess/mess.lst
r245364r245365
10841084tisr16    // 1974 SR-16
10851085tisr16ii
10861086ti1270
1087ti1000
10871088ti30      // 1976 TI-30
10881089tiprog
10891090tibusan1
trunk/src/osd/sdl/osdsdl.h
r245364r245365
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
3933//============================================================
4034//  Defines
4135//============================================================
trunk/src/osd/sdl/sdlmain.c
r245364r245365
397397   MACRO_VERBOSE(LSB_FIRST);
398398   MACRO_VERBOSE(PTR64);
399399   MACRO_VERBOSE(MAME_DEBUG);
400   MACRO_VERBOSE(NO_DEBUGBER);
401400   MACRO_VERBOSE(BIGENDIAN);
402401   MACRO_VERBOSE(CPP_COMPILE);
403402   MACRO_VERBOSE(SYNC_IMPLEMENTATION);
r245364r245365
599598
600599   defines_verbose();
601600
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
610601   osd_common_t::init_subsystems();
611602
612603   if (options().oslog())


Previous 199869 Revisions Next


© 1997-2024 The MAME Team