Previous 199869 Revisions Next

r37085 Friday 10th April, 2015 at 10:37:34 UTC by Miodrag Milanović
Some changes for FreeBSD and Solaris, will be sent upstream as well (nw)
[/trunk]makefile
[3rdparty/bgfx/src]bgfx.cpp bgfx_p.h renderer_gl.h
[3rdparty/genie]makefile
[3rdparty/genie/build/gmake.bsd]Makefile* genie.make*
[3rdparty/genie/build/gmake.solaris]Makefile* genie.make*
[3rdparty/genie/scripts]genie.lua
[3rdparty/genie/src/base]cmdline.lua
[3rdparty/genie/src/host]premake.h scripts.c
[docs]SDL.txt config.txt floppy.txt hlsl.txt imgtool.txt m6502.txt windows.txt
[nl_examples]breakout.c
[scripts]genie.lua toolchain.lua
[scripts/src]3rdparty.lua main.lua
[src/emu/bus/amiga/zorro]a590.c
[src/emu/cpu/i86]i86.txt
[src/emu/imagedev]floppy.c
[src/emu/machine]vrc4373.c vrc4373.h
[src/emu/sound]es1373.c es1373.h pokey.txt tms36xx.c tms5220.c
[src/mame/drivers]alpha68k.c gambl186.c goldnpkr.c m72.c mirax.c niyanpai.c ppmast93.c rmhaihai.c seicross.c seta.c spool99.c stactics.c supdrapo.c thepit.c ttchamp.c unkhorse.c warpsped.c
[src/mame/etc]template_readme.txt
[src/mame/includes]bigstrkb.h m107.h m72.h mainsnk.h n64.h niyanpai.h powerins.h stactics.h thepit.h tunhunt.h
[src/mame/machine]cps2crpt.c
[src/mame/video]m107.c m72.c mainsnk.c niyanpai.c portrait.c powerins.c stactics.c thepit.c tunhunt.c
[src/mess/drivers]c65_old.c elecbowl.c fidelz80.c hh_hmcs40.c hh_pic16.c hh_tms1k.c hh_ucom4.c msx.c pc88va.c ti85.c ticalc1x.c tispeak.c vt100.c
[src/mess/includes]ti85.h
[src/mess/machine]megacdcd.c ti85.c
[src/mess/video]911_chr.h 911_vdt.c
[src/osd/sdl]README_SDL20.txt
[src/osd/sdl/keymaps]km-ch.txt km-fr.txt

trunk/3rdparty/bgfx/src/bgfx.cpp
r245596r245597
3333   {
3434      g_bgfxEaglLayer = _layer;
3535   }
36#elif BX_PLATFORM_LINUX
36#elif BX_PLATFORM_LINUX || BX_PLATFORM_FREEBSD
3737   void*    g_bgfxX11Display;
3838   uint32_t g_bgfxX11Window;
3939   void*    g_bgfxGLX;
trunk/3rdparty/bgfx/src/bgfx_p.h
r245596r245597
221221   extern ::ANativeWindow* g_bgfxAndroidWindow;
222222#elif BX_PLATFORM_IOS
223223   extern void* g_bgfxEaglLayer;
224#elif BX_PLATFORM_LINUX
224#elif BX_PLATFORM_LINUX || BX_PLATFORM_FREEBSD
225225   extern void*    g_bgfxX11Display;
226226   extern uint32_t g_bgfxX11Window;
227227   extern void*    g_bgfxGLX;
trunk/3rdparty/bgfx/src/renderer_gl.h
r245596r245597
1010         || BX_PLATFORM_ANDROID \
1111         || BX_PLATFORM_EMSCRIPTEN \
1212         || BX_PLATFORM_LINUX \
13         || BX_PLATFORM_FREEBSD \
1314         || BX_PLATFORM_QNX \
1415         || BX_PLATFORM_RPI \
1516         || BX_PLATFORM_WINDOWS \
r245596r245597
2324
2425#define BGFX_USE_GL_DYNAMIC_LIB (0 \
2526         || BX_PLATFORM_LINUX \
27         || BX_PLATFORM_FREEBSD \
2628         || BX_PLATFORM_OSX \
2729         || BX_PLATFORM_WINDOWS \
2830         )
r245596r245597
3436#         define GL_ARB_shader_objects // OSX collsion with GLhandleARB in gltypes.h
3537#      endif // BX_PLATFORM_OSX
3638#   else
37#      if BX_PLATFORM_LINUX
39#      if BX_PLATFORM_LINUX || BX_PLATFORM_FREEBSD
3840#         define GL_PROTOTYPES
3941#         define GL_GLEXT_LEGACY
4042#         include <GL/gl.h>
r245596r245597
584586#   include "glcontext_ppapi.h"
585587#elif BX_PLATFORM_WINDOWS
586588#   include <windows.h>
587#elif BX_PLATFORM_LINUX
589#elif BX_PLATFORM_LINUX || BX_PLATFORM_FREEBSD
588590#   include "glcontext_glx.h"
589591#elif BX_PLATFORM_OSX
590592#   include "glcontext_nsgl.h"
trunk/3rdparty/genie/build/gmake.bsd/Makefile
r0r245597
1# GNU Make solution makefile autogenerated by GENie
2# Type "make help" for usage help
3
4ifndef config
5  config=release
6endif
7export config
8
9PROJECTS := genie
10
11.PHONY: all clean help $(PROJECTS)
12
13all: $(PROJECTS)
14
15genie:
16   @echo "==== Building genie ($(config)) ===="
17   @${MAKE} --no-print-directory -C . -f genie.make
18
19clean:
20   @${MAKE} --no-print-directory -C . -f genie.make clean
21
22help:
23   @echo "Usage: make [config=name] [target]"
24   @echo ""
25   @echo "CONFIGURATIONS:"
26   @echo "   release"
27   @echo "   debug"
28   @echo ""
29   @echo "TARGETS:"
30   @echo "   all (default)"
31   @echo "   clean"
32   @echo "   genie"
33   @echo ""
34   @echo "For more information, see http://industriousone.com/premake/quick-start"
trunk/3rdparty/genie/build/gmake.bsd/genie.make
r0r245597
1# GNU Make project makefile autogenerated by GENie
2ifndef config
3  config=release
4endif
5
6ifndef verbose
7  SILENT = @
8endif
9
10SHELLTYPE := msdos
11ifeq (,$(ComSpec)$(COMSPEC))
12  SHELLTYPE := posix
13endif
14ifeq (/bin,$(findstring /bin,$(SHELL)))
15  SHELLTYPE := posix
16endif
17
18ifeq (posix,$(SHELLTYPE))
19  MKDIR = $(SILENT) mkdir -p "$(1)"
20  COPY  = $(SILENT) cp -fR "$(1)" "$(2)"
21  RM= $(SILENT) rm -f "$(1)"
22else
23  MKDIR = $(SILENT) mkdir "$(subst /,\\,$(1))" 2> nul || exit 0
24  COPY  = $(SILENT) copy /Y "$(subst /,\\,$(1))" "$(subst /,\\,$(2))"
25  RM    = $(SILENT) del /F "$(subst /,\\,$(1))" 2> nul || exit 0
26endif
27
28CC  = gcc
29CXX = g++
30AR  = ar
31
32ifndef RESCOMP
33  ifdef WINDRES
34    RESCOMP = $(WINDRES)
35  else
36    RESCOMP = windres
37  endif
38endif
39
40ifeq ($(config),release)
41  OBJDIR     = obj/Release
42  TARGETDIR  = ../../bin/bsd
43  override TARGET     = $(TARGETDIR)/genie
44  DEFINES   += -DNDEBUG -DLUA_COMPAT_MODULE -DLUA_USE_POSIX -DLUA_USE_DLOPEN
45  INCLUDES  += -I../../src/host/lua-5.3.0/src
46  ALL_CPPFLAGS  += $(CPPFLAGS) -MMD -MP $(DEFINES) $(INCLUDES)
47  ALL_CFLAGS    += $(CFLAGS) $(ALL_CPPFLAGS) $(ARCH) -Wall -Wextra -Os
48  ALL_CXXFLAGS  += $(CXXFLAGS) $(CFLAGS) $(ALL_CPPFLAGS) $(ARCH) -Wall -Wextra -Os
49  ALL_OBJCFLAGS += $(CXXFLAGS) $(CFLAGS) $(ALL_CPPFLAGS) $(ARCH) -Wall -Wextra -Os
50  ALL_RESFLAGS  += $(RESFLAGS) $(DEFINES) $(INCLUDES)
51  ALL_LDFLAGS   += $(LDFLAGS) -L. -s -rdynamic
52  LDDEPS    +=
53  LIBS      += $(LDDEPS) -lm
54  LINKCMD    = $(CC) -o $(TARGET) $(OBJECTS) $(RESOURCES) $(ARCH) $(ALL_LDFLAGS) $(LIBS)
55  OBJECTS := \
56   $(OBJDIR)/src/host/os_chdir.o \
57   $(OBJDIR)/src/host/os_copyfile.o \
58   $(OBJDIR)/src/host/os_getcwd.o \
59   $(OBJDIR)/src/host/os_getversion.o \
60   $(OBJDIR)/src/host/os_is64bit.o \
61   $(OBJDIR)/src/host/os_isdir.o \
62   $(OBJDIR)/src/host/os_isfile.o \
63   $(OBJDIR)/src/host/os_match.o \
64   $(OBJDIR)/src/host/os_mkdir.o \
65   $(OBJDIR)/src/host/os_pathsearch.o \
66   $(OBJDIR)/src/host/os_rmdir.o \
67   $(OBJDIR)/src/host/os_stat.o \
68   $(OBJDIR)/src/host/os_ticks.o \
69   $(OBJDIR)/src/host/os_uuid.o \
70   $(OBJDIR)/src/host/path_isabsolute.o \
71   $(OBJDIR)/src/host/premake.o \
72   $(OBJDIR)/src/host/premake_main.o \
73   $(OBJDIR)/src/host/scripts.o \
74   $(OBJDIR)/src/host/string_endswith.o \
75   $(OBJDIR)/src/host/string_hash.o \
76   $(OBJDIR)/src/host/lua-5.3.0/src/lapi.o \
77   $(OBJDIR)/src/host/lua-5.3.0/src/lauxlib.o \
78   $(OBJDIR)/src/host/lua-5.3.0/src/lbaselib.o \
79   $(OBJDIR)/src/host/lua-5.3.0/src/lbitlib.o \
80   $(OBJDIR)/src/host/lua-5.3.0/src/lcode.o \
81   $(OBJDIR)/src/host/lua-5.3.0/src/lcorolib.o \
82   $(OBJDIR)/src/host/lua-5.3.0/src/lctype.o \
83   $(OBJDIR)/src/host/lua-5.3.0/src/ldblib.o \
84   $(OBJDIR)/src/host/lua-5.3.0/src/ldebug.o \
85   $(OBJDIR)/src/host/lua-5.3.0/src/ldo.o \
86   $(OBJDIR)/src/host/lua-5.3.0/src/ldump.o \
87   $(OBJDIR)/src/host/lua-5.3.0/src/lfunc.o \
88   $(OBJDIR)/src/host/lua-5.3.0/src/lgc.o \
89   $(OBJDIR)/src/host/lua-5.3.0/src/linit.o \
90   $(OBJDIR)/src/host/lua-5.3.0/src/liolib.o \
91   $(OBJDIR)/src/host/lua-5.3.0/src/llex.o \
92   $(OBJDIR)/src/host/lua-5.3.0/src/lmathlib.o \
93   $(OBJDIR)/src/host/lua-5.3.0/src/lmem.o \
94   $(OBJDIR)/src/host/lua-5.3.0/src/loadlib.o \
95   $(OBJDIR)/src/host/lua-5.3.0/src/lobject.o \
96   $(OBJDIR)/src/host/lua-5.3.0/src/lopcodes.o \
97   $(OBJDIR)/src/host/lua-5.3.0/src/loslib.o \
98   $(OBJDIR)/src/host/lua-5.3.0/src/lparser.o \
99   $(OBJDIR)/src/host/lua-5.3.0/src/lstate.o \
100   $(OBJDIR)/src/host/lua-5.3.0/src/lstring.o \
101   $(OBJDIR)/src/host/lua-5.3.0/src/lstrlib.o \
102   $(OBJDIR)/src/host/lua-5.3.0/src/ltable.o \
103   $(OBJDIR)/src/host/lua-5.3.0/src/ltablib.o \
104   $(OBJDIR)/src/host/lua-5.3.0/src/ltm.o \
105   $(OBJDIR)/src/host/lua-5.3.0/src/lundump.o \
106   $(OBJDIR)/src/host/lua-5.3.0/src/lutf8lib.o \
107   $(OBJDIR)/src/host/lua-5.3.0/src/lvm.o \
108   $(OBJDIR)/src/host/lua-5.3.0/src/lzio.o \
109
110  define PREBUILDCMDS
111  endef
112  define PRELINKCMDS
113  endef
114  define POSTBUILDCMDS
115  endef
116endif
117
118ifeq ($(config),debug)
119  OBJDIR     = obj/Debug
120  TARGETDIR  = ../../bin/bsd
121  override TARGET     = $(TARGETDIR)/genie
122  DEFINES   += -D_DEBUG -DLUA_COMPAT_MODULE -DLUA_USE_POSIX -DLUA_USE_DLOPEN
123  INCLUDES  += -I../../src/host/lua-5.3.0/src
124  ALL_CPPFLAGS  += $(CPPFLAGS) -MMD -MP $(DEFINES) $(INCLUDES)
125  ALL_CFLAGS    += $(CFLAGS) $(ALL_CPPFLAGS) $(ARCH) -Wall -Wextra -g
126  ALL_CXXFLAGS  += $(CXXFLAGS) $(CFLAGS) $(ALL_CPPFLAGS) $(ARCH) -Wall -Wextra -g
127  ALL_OBJCFLAGS += $(CXXFLAGS) $(CFLAGS) $(ALL_CPPFLAGS) $(ARCH) -Wall -Wextra -g
128  ALL_RESFLAGS  += $(RESFLAGS) $(DEFINES) $(INCLUDES)
129  ALL_LDFLAGS   += $(LDFLAGS) -L. -rdynamic
130  LDDEPS    +=
131  LIBS      += $(LDDEPS) -lm
132  LINKCMD    = $(CC) -o $(TARGET) $(OBJECTS) $(RESOURCES) $(ARCH) $(ALL_LDFLAGS) $(LIBS)
133  OBJECTS := \
134   $(OBJDIR)/src/host/os_chdir.o \
135   $(OBJDIR)/src/host/os_copyfile.o \
136   $(OBJDIR)/src/host/os_getcwd.o \
137   $(OBJDIR)/src/host/os_getversion.o \
138   $(OBJDIR)/src/host/os_is64bit.o \
139   $(OBJDIR)/src/host/os_isdir.o \
140   $(OBJDIR)/src/host/os_isfile.o \
141   $(OBJDIR)/src/host/os_match.o \
142   $(OBJDIR)/src/host/os_mkdir.o \
143   $(OBJDIR)/src/host/os_pathsearch.o \
144   $(OBJDIR)/src/host/os_rmdir.o \
145   $(OBJDIR)/src/host/os_stat.o \
146   $(OBJDIR)/src/host/os_ticks.o \
147   $(OBJDIR)/src/host/os_uuid.o \
148   $(OBJDIR)/src/host/path_isabsolute.o \
149   $(OBJDIR)/src/host/premake.o \
150   $(OBJDIR)/src/host/premake_main.o \
151   $(OBJDIR)/src/host/scripts.o \
152   $(OBJDIR)/src/host/string_endswith.o \
153   $(OBJDIR)/src/host/string_hash.o \
154   $(OBJDIR)/src/host/lua-5.3.0/src/lapi.o \
155   $(OBJDIR)/src/host/lua-5.3.0/src/lauxlib.o \
156   $(OBJDIR)/src/host/lua-5.3.0/src/lbaselib.o \
157   $(OBJDIR)/src/host/lua-5.3.0/src/lbitlib.o \
158   $(OBJDIR)/src/host/lua-5.3.0/src/lcode.o \
159   $(OBJDIR)/src/host/lua-5.3.0/src/lcorolib.o \
160   $(OBJDIR)/src/host/lua-5.3.0/src/lctype.o \
161   $(OBJDIR)/src/host/lua-5.3.0/src/ldblib.o \
162   $(OBJDIR)/src/host/lua-5.3.0/src/ldebug.o \
163   $(OBJDIR)/src/host/lua-5.3.0/src/ldo.o \
164   $(OBJDIR)/src/host/lua-5.3.0/src/ldump.o \
165   $(OBJDIR)/src/host/lua-5.3.0/src/lfunc.o \
166   $(OBJDIR)/src/host/lua-5.3.0/src/lgc.o \
167   $(OBJDIR)/src/host/lua-5.3.0/src/linit.o \
168   $(OBJDIR)/src/host/lua-5.3.0/src/liolib.o \
169   $(OBJDIR)/src/host/lua-5.3.0/src/llex.o \
170   $(OBJDIR)/src/host/lua-5.3.0/src/lmathlib.o \
171   $(OBJDIR)/src/host/lua-5.3.0/src/lmem.o \
172   $(OBJDIR)/src/host/lua-5.3.0/src/loadlib.o \
173   $(OBJDIR)/src/host/lua-5.3.0/src/lobject.o \
174   $(OBJDIR)/src/host/lua-5.3.0/src/lopcodes.o \
175   $(OBJDIR)/src/host/lua-5.3.0/src/loslib.o \
176   $(OBJDIR)/src/host/lua-5.3.0/src/lparser.o \
177   $(OBJDIR)/src/host/lua-5.3.0/src/lstate.o \
178   $(OBJDIR)/src/host/lua-5.3.0/src/lstring.o \
179   $(OBJDIR)/src/host/lua-5.3.0/src/lstrlib.o \
180   $(OBJDIR)/src/host/lua-5.3.0/src/ltable.o \
181   $(OBJDIR)/src/host/lua-5.3.0/src/ltablib.o \
182   $(OBJDIR)/src/host/lua-5.3.0/src/ltm.o \
183   $(OBJDIR)/src/host/lua-5.3.0/src/lundump.o \
184   $(OBJDIR)/src/host/lua-5.3.0/src/lutf8lib.o \
185   $(OBJDIR)/src/host/lua-5.3.0/src/lvm.o \
186   $(OBJDIR)/src/host/lua-5.3.0/src/lzio.o \
187
188  define PREBUILDCMDS
189  endef
190  define PRELINKCMDS
191  endef
192  define POSTBUILDCMDS
193  endef
194endif
195
196OBJDIRS := \
197   $(OBJDIR) \
198   $(OBJDIR)/src/host/lua-5.3.0/src \
199   $(OBJDIR)/src/host \
200
201RESOURCES := \
202
203.PHONY: clean prebuild prelink
204
205all: $(TARGETDIR) $(OBJDIRS) prebuild prelink $(TARGET)
206   @:
207
208$(TARGET): $(GCH) $(OBJECTS) $(LDDEPS) $(RESOURCES)
209   @echo Linking genie
210   $(SILENT) $(LINKCMD)
211   $(POSTBUILDCMDS)
212
213$(TARGETDIR):
214   @echo Creating $(TARGETDIR)
215   -$(call MKDIR,$(TARGETDIR))
216
217$(OBJDIRS):
218   @echo Creating $(@)
219   -$(call MKDIR,$@)
220
221clean:
222   @echo Cleaning genie
223ifeq (posix,$(SHELLTYPE))
224   $(SILENT) rm -f  $(TARGET)
225   $(SILENT) rm -rf $(OBJDIR)
226else
227   $(SILENT) if exist $(subst /,\\,$(TARGET)) del $(subst /,\\,$(TARGET))
228   $(SILENT) if exist $(subst /,\\,$(OBJDIR)) rmdir /s /q $(subst /,\\,$(OBJDIR))
229endif
230
231prebuild:
232   $(PREBUILDCMDS)
233
234prelink:
235   $(PRELINKCMDS)
236
237ifneq (,$(PCH))
238$(GCH): $(PCH)
239   @echo $(notdir $<)
240   $(SILENT) $(CC) -x c-header $(ALL_CFLAGS) -MMD -MP $(DEFINES) $(INCLUDES) -o "$@" -MF "$(@:%.gch=%.d)" -c "$<"
241endif
242
243$(OBJDIR)/src/host/os_chdir.o: ../../src/host/os_chdir.c
244   @echo $(notdir $<)
245   $(SILENT) $(CC) $(ALL_CFLAGS) $(FORCE_INCLUDE) -o "$@" -MF $(@:%.o=%.d) -c "$<"
246
247$(OBJDIR)/src/host/os_copyfile.o: ../../src/host/os_copyfile.c
248   @echo $(notdir $<)
249   $(SILENT) $(CC) $(ALL_CFLAGS) $(FORCE_INCLUDE) -o "$@" -MF $(@:%.o=%.d) -c "$<"
250
251$(OBJDIR)/src/host/os_getcwd.o: ../../src/host/os_getcwd.c
252   @echo $(notdir $<)
253   $(SILENT) $(CC) $(ALL_CFLAGS) $(FORCE_INCLUDE) -o "$@" -MF $(@:%.o=%.d) -c "$<"
254
255$(OBJDIR)/src/host/os_getversion.o: ../../src/host/os_getversion.c
256   @echo $(notdir $<)
257   $(SILENT) $(CC) $(ALL_CFLAGS) $(FORCE_INCLUDE) -o "$@" -MF $(@:%.o=%.d) -c "$<"
258
259$(OBJDIR)/src/host/os_is64bit.o: ../../src/host/os_is64bit.c
260   @echo $(notdir $<)
261   $(SILENT) $(CC) $(ALL_CFLAGS) $(FORCE_INCLUDE) -o "$@" -MF $(@:%.o=%.d) -c "$<"
262
263$(OBJDIR)/src/host/os_isdir.o: ../../src/host/os_isdir.c
264   @echo $(notdir $<)
265   $(SILENT) $(CC) $(ALL_CFLAGS) $(FORCE_INCLUDE) -o "$@" -MF $(@:%.o=%.d) -c "$<"
266
267$(OBJDIR)/src/host/os_isfile.o: ../../src/host/os_isfile.c
268   @echo $(notdir $<)
269   $(SILENT) $(CC) $(ALL_CFLAGS) $(FORCE_INCLUDE) -o "$@" -MF $(@:%.o=%.d) -c "$<"
270
271$(OBJDIR)/src/host/os_match.o: ../../src/host/os_match.c
272   @echo $(notdir $<)
273   $(SILENT) $(CC) $(ALL_CFLAGS) $(FORCE_INCLUDE) -o "$@" -MF $(@:%.o=%.d) -c "$<"
274
275$(OBJDIR)/src/host/os_mkdir.o: ../../src/host/os_mkdir.c
276   @echo $(notdir $<)
277   $(SILENT) $(CC) $(ALL_CFLAGS) $(FORCE_INCLUDE) -o "$@" -MF $(@:%.o=%.d) -c "$<"
278
279$(OBJDIR)/src/host/os_pathsearch.o: ../../src/host/os_pathsearch.c
280   @echo $(notdir $<)
281   $(SILENT) $(CC) $(ALL_CFLAGS) $(FORCE_INCLUDE) -o "$@" -MF $(@:%.o=%.d) -c "$<"
282
283$(OBJDIR)/src/host/os_rmdir.o: ../../src/host/os_rmdir.c
284   @echo $(notdir $<)
285   $(SILENT) $(CC) $(ALL_CFLAGS) $(FORCE_INCLUDE) -o "$@" -MF $(@:%.o=%.d) -c "$<"
286
287$(OBJDIR)/src/host/os_stat.o: ../../src/host/os_stat.c
288   @echo $(notdir $<)
289   $(SILENT) $(CC) $(ALL_CFLAGS) $(FORCE_INCLUDE) -o "$@" -MF $(@:%.o=%.d) -c "$<"
290
291$(OBJDIR)/src/host/os_ticks.o: ../../src/host/os_ticks.c
292   @echo $(notdir $<)
293   $(SILENT) $(CC) $(ALL_CFLAGS) $(FORCE_INCLUDE) -o "$@" -MF $(@:%.o=%.d) -c "$<"
294
295$(OBJDIR)/src/host/os_uuid.o: ../../src/host/os_uuid.c
296   @echo $(notdir $<)
297   $(SILENT) $(CC) $(ALL_CFLAGS) $(FORCE_INCLUDE) -o "$@" -MF $(@:%.o=%.d) -c "$<"
298
299$(OBJDIR)/src/host/path_isabsolute.o: ../../src/host/path_isabsolute.c
300   @echo $(notdir $<)
301   $(SILENT) $(CC) $(ALL_CFLAGS) $(FORCE_INCLUDE) -o "$@" -MF $(@:%.o=%.d) -c "$<"
302
303$(OBJDIR)/src/host/premake.o: ../../src/host/premake.c
304   @echo $(notdir $<)
305   $(SILENT) $(CC) $(ALL_CFLAGS) $(FORCE_INCLUDE) -o "$@" -MF $(@:%.o=%.d) -c "$<"
306
307$(OBJDIR)/src/host/premake_main.o: ../../src/host/premake_main.c
308   @echo $(notdir $<)
309   $(SILENT) $(CC) $(ALL_CFLAGS) $(FORCE_INCLUDE) -o "$@" -MF $(@:%.o=%.d) -c "$<"
310
311$(OBJDIR)/src/host/scripts.o: ../../src/host/scripts.c
312   @echo $(notdir $<)
313   $(SILENT) $(CC) $(ALL_CFLAGS) $(FORCE_INCLUDE) -o "$@" -MF $(@:%.o=%.d) -c "$<"
314
315$(OBJDIR)/src/host/string_endswith.o: ../../src/host/string_endswith.c
316   @echo $(notdir $<)
317   $(SILENT) $(CC) $(ALL_CFLAGS) $(FORCE_INCLUDE) -o "$@" -MF $(@:%.o=%.d) -c "$<"
318
319$(OBJDIR)/src/host/string_hash.o: ../../src/host/string_hash.c
320   @echo $(notdir $<)
321   $(SILENT) $(CC) $(ALL_CFLAGS) $(FORCE_INCLUDE) -o "$@" -MF $(@:%.o=%.d) -c "$<"
322
323$(OBJDIR)/src/host/lua-5.3.0/src/lapi.o: ../../src/host/lua-5.3.0/src/lapi.c
324   @echo $(notdir $<)
325   $(SILENT) $(CC) $(ALL_CFLAGS) $(FORCE_INCLUDE) -o "$@" -MF $(@:%.o=%.d) -c "$<"
326
327$(OBJDIR)/src/host/lua-5.3.0/src/lauxlib.o: ../../src/host/lua-5.3.0/src/lauxlib.c
328   @echo $(notdir $<)
329   $(SILENT) $(CC) $(ALL_CFLAGS) $(FORCE_INCLUDE) -o "$@" -MF $(@:%.o=%.d) -c "$<"
330
331$(OBJDIR)/src/host/lua-5.3.0/src/lbaselib.o: ../../src/host/lua-5.3.0/src/lbaselib.c
332   @echo $(notdir $<)
333   $(SILENT) $(CC) $(ALL_CFLAGS) $(FORCE_INCLUDE) -o "$@" -MF $(@:%.o=%.d) -c "$<"
334
335$(OBJDIR)/src/host/lua-5.3.0/src/lbitlib.o: ../../src/host/lua-5.3.0/src/lbitlib.c
336   @echo $(notdir $<)
337   $(SILENT) $(CC) $(ALL_CFLAGS) $(FORCE_INCLUDE) -o "$@" -MF $(@:%.o=%.d) -c "$<"
338
339$(OBJDIR)/src/host/lua-5.3.0/src/lcode.o: ../../src/host/lua-5.3.0/src/lcode.c
340   @echo $(notdir $<)
341   $(SILENT) $(CC) $(ALL_CFLAGS) $(FORCE_INCLUDE) -o "$@" -MF $(@:%.o=%.d) -c "$<"
342
343$(OBJDIR)/src/host/lua-5.3.0/src/lcorolib.o: ../../src/host/lua-5.3.0/src/lcorolib.c
344   @echo $(notdir $<)
345   $(SILENT) $(CC) $(ALL_CFLAGS) $(FORCE_INCLUDE) -o "$@" -MF $(@:%.o=%.d) -c "$<"
346
347$(OBJDIR)/src/host/lua-5.3.0/src/lctype.o: ../../src/host/lua-5.3.0/src/lctype.c
348   @echo $(notdir $<)
349   $(SILENT) $(CC) $(ALL_CFLAGS) $(FORCE_INCLUDE) -o "$@" -MF $(@:%.o=%.d) -c "$<"
350
351$(OBJDIR)/src/host/lua-5.3.0/src/ldblib.o: ../../src/host/lua-5.3.0/src/ldblib.c
352   @echo $(notdir $<)
353   $(SILENT) $(CC) $(ALL_CFLAGS) $(FORCE_INCLUDE) -o "$@" -MF $(@:%.o=%.d) -c "$<"
354
355$(OBJDIR)/src/host/lua-5.3.0/src/ldebug.o: ../../src/host/lua-5.3.0/src/ldebug.c
356   @echo $(notdir $<)
357   $(SILENT) $(CC) $(ALL_CFLAGS) $(FORCE_INCLUDE) -o "$@" -MF $(@:%.o=%.d) -c "$<"
358
359$(OBJDIR)/src/host/lua-5.3.0/src/ldo.o: ../../src/host/lua-5.3.0/src/ldo.c
360   @echo $(notdir $<)
361   $(SILENT) $(CC) $(ALL_CFLAGS) $(FORCE_INCLUDE) -o "$@" -MF $(@:%.o=%.d) -c "$<"
362
363$(OBJDIR)/src/host/lua-5.3.0/src/ldump.o: ../../src/host/lua-5.3.0/src/ldump.c
364   @echo $(notdir $<)
365   $(SILENT) $(CC) $(ALL_CFLAGS) $(FORCE_INCLUDE) -o "$@" -MF $(@:%.o=%.d) -c "$<"
366
367$(OBJDIR)/src/host/lua-5.3.0/src/lfunc.o: ../../src/host/lua-5.3.0/src/lfunc.c
368   @echo $(notdir $<)
369   $(SILENT) $(CC) $(ALL_CFLAGS) $(FORCE_INCLUDE) -o "$@" -MF $(@:%.o=%.d) -c "$<"
370
371$(OBJDIR)/src/host/lua-5.3.0/src/lgc.o: ../../src/host/lua-5.3.0/src/lgc.c
372   @echo $(notdir $<)
373   $(SILENT) $(CC) $(ALL_CFLAGS) $(FORCE_INCLUDE) -o "$@" -MF $(@:%.o=%.d) -c "$<"
374
375$(OBJDIR)/src/host/lua-5.3.0/src/linit.o: ../../src/host/lua-5.3.0/src/linit.c
376   @echo $(notdir $<)
377   $(SILENT) $(CC) $(ALL_CFLAGS) $(FORCE_INCLUDE) -o "$@" -MF $(@:%.o=%.d) -c "$<"
378
379$(OBJDIR)/src/host/lua-5.3.0/src/liolib.o: ../../src/host/lua-5.3.0/src/liolib.c
380   @echo $(notdir $<)
381   $(SILENT) $(CC) $(ALL_CFLAGS) $(FORCE_INCLUDE) -o "$@" -MF $(@:%.o=%.d) -c "$<"
382
383$(OBJDIR)/src/host/lua-5.3.0/src/llex.o: ../../src/host/lua-5.3.0/src/llex.c
384   @echo $(notdir $<)
385   $(SILENT) $(CC) $(ALL_CFLAGS) $(FORCE_INCLUDE) -o "$@" -MF $(@:%.o=%.d) -c "$<"
386
387$(OBJDIR)/src/host/lua-5.3.0/src/lmathlib.o: ../../src/host/lua-5.3.0/src/lmathlib.c
388   @echo $(notdir $<)
389   $(SILENT) $(CC) $(ALL_CFLAGS) $(FORCE_INCLUDE) -o "$@" -MF $(@:%.o=%.d) -c "$<"
390
391$(OBJDIR)/src/host/lua-5.3.0/src/lmem.o: ../../src/host/lua-5.3.0/src/lmem.c
392   @echo $(notdir $<)
393   $(SILENT) $(CC) $(ALL_CFLAGS) $(FORCE_INCLUDE) -o "$@" -MF $(@:%.o=%.d) -c "$<"
394
395$(OBJDIR)/src/host/lua-5.3.0/src/loadlib.o: ../../src/host/lua-5.3.0/src/loadlib.c
396   @echo $(notdir $<)
397   $(SILENT) $(CC) $(ALL_CFLAGS) $(FORCE_INCLUDE) -o "$@" -MF $(@:%.o=%.d) -c "$<"
398
399$(OBJDIR)/src/host/lua-5.3.0/src/lobject.o: ../../src/host/lua-5.3.0/src/lobject.c
400   @echo $(notdir $<)
401   $(SILENT) $(CC) $(ALL_CFLAGS) $(FORCE_INCLUDE) -o "$@" -MF $(@:%.o=%.d) -c "$<"
402
403$(OBJDIR)/src/host/lua-5.3.0/src/lopcodes.o: ../../src/host/lua-5.3.0/src/lopcodes.c
404   @echo $(notdir $<)
405   $(SILENT) $(CC) $(ALL_CFLAGS) $(FORCE_INCLUDE) -o "$@" -MF $(@:%.o=%.d) -c "$<"
406
407$(OBJDIR)/src/host/lua-5.3.0/src/loslib.o: ../../src/host/lua-5.3.0/src/loslib.c
408   @echo $(notdir $<)
409   $(SILENT) $(CC) $(ALL_CFLAGS) $(FORCE_INCLUDE) -o "$@" -MF $(@:%.o=%.d) -c "$<"
410
411$(OBJDIR)/src/host/lua-5.3.0/src/lparser.o: ../../src/host/lua-5.3.0/src/lparser.c
412   @echo $(notdir $<)
413   $(SILENT) $(CC) $(ALL_CFLAGS) $(FORCE_INCLUDE) -o "$@" -MF $(@:%.o=%.d) -c "$<"
414
415$(OBJDIR)/src/host/lua-5.3.0/src/lstate.o: ../../src/host/lua-5.3.0/src/lstate.c
416   @echo $(notdir $<)
417   $(SILENT) $(CC) $(ALL_CFLAGS) $(FORCE_INCLUDE) -o "$@" -MF $(@:%.o=%.d) -c "$<"
418
419$(OBJDIR)/src/host/lua-5.3.0/src/lstring.o: ../../src/host/lua-5.3.0/src/lstring.c
420   @echo $(notdir $<)
421   $(SILENT) $(CC) $(ALL_CFLAGS) $(FORCE_INCLUDE) -o "$@" -MF $(@:%.o=%.d) -c "$<"
422
423$(OBJDIR)/src/host/lua-5.3.0/src/lstrlib.o: ../../src/host/lua-5.3.0/src/lstrlib.c
424   @echo $(notdir $<)
425   $(SILENT) $(CC) $(ALL_CFLAGS) $(FORCE_INCLUDE) -o "$@" -MF $(@:%.o=%.d) -c "$<"
426
427$(OBJDIR)/src/host/lua-5.3.0/src/ltable.o: ../../src/host/lua-5.3.0/src/ltable.c
428   @echo $(notdir $<)
429   $(SILENT) $(CC) $(ALL_CFLAGS) $(FORCE_INCLUDE) -o "$@" -MF $(@:%.o=%.d) -c "$<"
430
431$(OBJDIR)/src/host/lua-5.3.0/src/ltablib.o: ../../src/host/lua-5.3.0/src/ltablib.c
432   @echo $(notdir $<)
433   $(SILENT) $(CC) $(ALL_CFLAGS) $(FORCE_INCLUDE) -o "$@" -MF $(@:%.o=%.d) -c "$<"
434
435$(OBJDIR)/src/host/lua-5.3.0/src/ltm.o: ../../src/host/lua-5.3.0/src/ltm.c
436   @echo $(notdir $<)
437   $(SILENT) $(CC) $(ALL_CFLAGS) $(FORCE_INCLUDE) -o "$@" -MF $(@:%.o=%.d) -c "$<"
438
439$(OBJDIR)/src/host/lua-5.3.0/src/lundump.o: ../../src/host/lua-5.3.0/src/lundump.c
440   @echo $(notdir $<)
441   $(SILENT) $(CC) $(ALL_CFLAGS) $(FORCE_INCLUDE) -o "$@" -MF $(@:%.o=%.d) -c "$<"
442
443$(OBJDIR)/src/host/lua-5.3.0/src/lutf8lib.o: ../../src/host/lua-5.3.0/src/lutf8lib.c
444   @echo $(notdir $<)
445   $(SILENT) $(CC) $(ALL_CFLAGS) $(FORCE_INCLUDE) -o "$@" -MF $(@:%.o=%.d) -c "$<"
446
447$(OBJDIR)/src/host/lua-5.3.0/src/lvm.o: ../../src/host/lua-5.3.0/src/lvm.c
448   @echo $(notdir $<)
449   $(SILENT) $(CC) $(ALL_CFLAGS) $(FORCE_INCLUDE) -o "$@" -MF $(@:%.o=%.d) -c "$<"
450
451$(OBJDIR)/src/host/lua-5.3.0/src/lzio.o: ../../src/host/lua-5.3.0/src/lzio.c
452   @echo $(notdir $<)
453   $(SILENT) $(CC) $(ALL_CFLAGS) $(FORCE_INCLUDE) -o "$@" -MF $(@:%.o=%.d) -c "$<"
454
455-include $(OBJECTS:%.o=%.d)
456ifneq (,$(PCH))
457  -include $(OBJDIR)/$(notdir $(PCH)).d
458endif
trunk/3rdparty/genie/build/gmake.solaris/Makefile
r0r245597
1# GNU Make solution makefile autogenerated by GENie
2# Type "make help" for usage help
3
4ifndef config
5  config=release
6endif
7export config
8
9PROJECTS := genie
10
11.PHONY: all clean help $(PROJECTS)
12
13all: $(PROJECTS)
14
15genie:
16   @echo "==== Building genie ($(config)) ===="
17   @${MAKE} --no-print-directory -C . -f genie.make
18
19clean:
20   @${MAKE} --no-print-directory -C . -f genie.make clean
21
22help:
23   @echo "Usage: make [config=name] [target]"
24   @echo ""
25   @echo "CONFIGURATIONS:"
26   @echo "   release"
27   @echo "   debug"
28   @echo ""
29   @echo "TARGETS:"
30   @echo "   all (default)"
31   @echo "   clean"
32   @echo "   genie"
33   @echo ""
34   @echo "For more information, see http://industriousone.com/premake/quick-start"
trunk/3rdparty/genie/build/gmake.solaris/genie.make
r0r245597
1# GNU Make project makefile autogenerated by GENie
2ifndef config
3  config=release
4endif
5
6ifndef verbose
7  SILENT = @
8endif
9
10SHELLTYPE := msdos
11ifeq (,$(ComSpec)$(COMSPEC))
12  SHELLTYPE := posix
13endif
14ifeq (/bin,$(findstring /bin,$(SHELL)))
15  SHELLTYPE := posix
16endif
17
18ifeq (posix,$(SHELLTYPE))
19  MKDIR = $(SILENT) mkdir -p "$(1)"
20  COPY  = $(SILENT) cp -fR "$(1)" "$(2)"
21  RM= $(SILENT) rm -f "$(1)"
22else
23  MKDIR = $(SILENT) mkdir "$(subst /,\\,$(1))" 2> nul || exit 0
24  COPY  = $(SILENT) copy /Y "$(subst /,\\,$(1))" "$(subst /,\\,$(2))"
25  RM    = $(SILENT) del /F "$(subst /,\\,$(1))" 2> nul || exit 0
26endif
27
28CC  = gcc
29CXX = g++
30AR  = ar
31
32ifndef RESCOMP
33  ifdef WINDRES
34    RESCOMP = $(WINDRES)
35  else
36    RESCOMP = windres
37  endif
38endif
39
40ifeq ($(config),release)
41  OBJDIR     = obj/Release
42  TARGETDIR  = ../../bin/solaris
43  override TARGET     = $(TARGETDIR)/genie
44  DEFINES   += -DNDEBUG -DLUA_COMPAT_MODULE -D_REENTRANT -DLUA_USE_POSIX -DLUA_USE_DLOPEN
45  INCLUDES  += -I../../src/host/lua-5.3.0/src
46  ALL_CPPFLAGS  += $(CPPFLAGS) -MMD -MP $(DEFINES) $(INCLUDES)
47  ALL_CFLAGS    += $(CFLAGS) $(ALL_CPPFLAGS) $(ARCH) -Wall -Wextra -Os -std=gnu99
48  ALL_CXXFLAGS  += $(CXXFLAGS) $(CFLAGS) $(ALL_CPPFLAGS) $(ARCH) -Wall -Wextra -Os -std=gnu99
49  ALL_OBJCFLAGS += $(CXXFLAGS) $(CFLAGS) $(ALL_CPPFLAGS) $(ARCH) -Wall -Wextra -Os -std=gnu99
50  ALL_RESFLAGS  += $(RESFLAGS) $(DEFINES) $(INCLUDES)
51  ALL_LDFLAGS   += $(LDFLAGS) -L. -s -rdynamic
52  LDDEPS    +=
53  LIBS      += $(LDDEPS) -ldl -lm
54  LINKCMD    = $(CC) -o $(TARGET) $(OBJECTS) $(RESOURCES) $(ARCH) $(ALL_LDFLAGS) $(LIBS)
55  OBJECTS := \
56   $(OBJDIR)/src/host/os_chdir.o \
57   $(OBJDIR)/src/host/os_copyfile.o \
58   $(OBJDIR)/src/host/os_getcwd.o \
59   $(OBJDIR)/src/host/os_getversion.o \
60   $(OBJDIR)/src/host/os_is64bit.o \
61   $(OBJDIR)/src/host/os_isdir.o \
62   $(OBJDIR)/src/host/os_isfile.o \
63   $(OBJDIR)/src/host/os_match.o \
64   $(OBJDIR)/src/host/os_mkdir.o \
65   $(OBJDIR)/src/host/os_pathsearch.o \
66   $(OBJDIR)/src/host/os_rmdir.o \
67   $(OBJDIR)/src/host/os_stat.o \
68   $(OBJDIR)/src/host/os_ticks.o \
69   $(OBJDIR)/src/host/os_uuid.o \
70   $(OBJDIR)/src/host/path_isabsolute.o \
71   $(OBJDIR)/src/host/premake.o \
72   $(OBJDIR)/src/host/premake_main.o \
73   $(OBJDIR)/src/host/scripts.o \
74   $(OBJDIR)/src/host/string_endswith.o \
75   $(OBJDIR)/src/host/string_hash.o \
76   $(OBJDIR)/src/host/lua-5.3.0/src/lapi.o \
77   $(OBJDIR)/src/host/lua-5.3.0/src/lauxlib.o \
78   $(OBJDIR)/src/host/lua-5.3.0/src/lbaselib.o \
79   $(OBJDIR)/src/host/lua-5.3.0/src/lbitlib.o \
80   $(OBJDIR)/src/host/lua-5.3.0/src/lcode.o \
81   $(OBJDIR)/src/host/lua-5.3.0/src/lcorolib.o \
82   $(OBJDIR)/src/host/lua-5.3.0/src/lctype.o \
83   $(OBJDIR)/src/host/lua-5.3.0/src/ldblib.o \
84   $(OBJDIR)/src/host/lua-5.3.0/src/ldebug.o \
85   $(OBJDIR)/src/host/lua-5.3.0/src/ldo.o \
86   $(OBJDIR)/src/host/lua-5.3.0/src/ldump.o \
87   $(OBJDIR)/src/host/lua-5.3.0/src/lfunc.o \
88   $(OBJDIR)/src/host/lua-5.3.0/src/lgc.o \
89   $(OBJDIR)/src/host/lua-5.3.0/src/linit.o \
90   $(OBJDIR)/src/host/lua-5.3.0/src/liolib.o \
91   $(OBJDIR)/src/host/lua-5.3.0/src/llex.o \
92   $(OBJDIR)/src/host/lua-5.3.0/src/lmathlib.o \
93   $(OBJDIR)/src/host/lua-5.3.0/src/lmem.o \
94   $(OBJDIR)/src/host/lua-5.3.0/src/loadlib.o \
95   $(OBJDIR)/src/host/lua-5.3.0/src/lobject.o \
96   $(OBJDIR)/src/host/lua-5.3.0/src/lopcodes.o \
97   $(OBJDIR)/src/host/lua-5.3.0/src/loslib.o \
98   $(OBJDIR)/src/host/lua-5.3.0/src/lparser.o \
99   $(OBJDIR)/src/host/lua-5.3.0/src/lstate.o \
100   $(OBJDIR)/src/host/lua-5.3.0/src/lstring.o \
101   $(OBJDIR)/src/host/lua-5.3.0/src/lstrlib.o \
102   $(OBJDIR)/src/host/lua-5.3.0/src/ltable.o \
103   $(OBJDIR)/src/host/lua-5.3.0/src/ltablib.o \
104   $(OBJDIR)/src/host/lua-5.3.0/src/ltm.o \
105   $(OBJDIR)/src/host/lua-5.3.0/src/lundump.o \
106   $(OBJDIR)/src/host/lua-5.3.0/src/lutf8lib.o \
107   $(OBJDIR)/src/host/lua-5.3.0/src/lvm.o \
108   $(OBJDIR)/src/host/lua-5.3.0/src/lzio.o \
109
110  define PREBUILDCMDS
111  endef
112  define PRELINKCMDS
113  endef
114  define POSTBUILDCMDS
115  endef
116endif
117
118ifeq ($(config),debug)
119  OBJDIR     = obj/Debug
120  TARGETDIR  = ../../bin/solaris
121  override TARGET     = $(TARGETDIR)/genie
122  DEFINES   += -D_DEBUG -DLUA_COMPAT_MODULE -D_REENTRANT -DLUA_USE_POSIX -DLUA_USE_DLOPEN
123  INCLUDES  += -I../../src/host/lua-5.3.0/src
124  ALL_CPPFLAGS  += $(CPPFLAGS) -MMD -MP $(DEFINES) $(INCLUDES)
125  ALL_CFLAGS    += $(CFLAGS) $(ALL_CPPFLAGS) $(ARCH) -Wall -Wextra -g -std=gnu99
126  ALL_CXXFLAGS  += $(CXXFLAGS) $(CFLAGS) $(ALL_CPPFLAGS) $(ARCH) -Wall -Wextra -g -std=gnu99
127  ALL_OBJCFLAGS += $(CXXFLAGS) $(CFLAGS) $(ALL_CPPFLAGS) $(ARCH) -Wall -Wextra -g -std=gnu99
128  ALL_RESFLAGS  += $(RESFLAGS) $(DEFINES) $(INCLUDES)
129  ALL_LDFLAGS   += $(LDFLAGS) -L. -rdynamic
130  LDDEPS    +=
131  LIBS      += $(LDDEPS) -ldl -lm
132  LINKCMD    = $(CC) -o $(TARGET) $(OBJECTS) $(RESOURCES) $(ARCH) $(ALL_LDFLAGS) $(LIBS)
133  OBJECTS := \
134   $(OBJDIR)/src/host/os_chdir.o \
135   $(OBJDIR)/src/host/os_copyfile.o \
136   $(OBJDIR)/src/host/os_getcwd.o \
137   $(OBJDIR)/src/host/os_getversion.o \
138   $(OBJDIR)/src/host/os_is64bit.o \
139   $(OBJDIR)/src/host/os_isdir.o \
140   $(OBJDIR)/src/host/os_isfile.o \
141   $(OBJDIR)/src/host/os_match.o \
142   $(OBJDIR)/src/host/os_mkdir.o \
143   $(OBJDIR)/src/host/os_pathsearch.o \
144   $(OBJDIR)/src/host/os_rmdir.o \
145   $(OBJDIR)/src/host/os_stat.o \
146   $(OBJDIR)/src/host/os_ticks.o \
147   $(OBJDIR)/src/host/os_uuid.o \
148   $(OBJDIR)/src/host/path_isabsolute.o \
149   $(OBJDIR)/src/host/premake.o \
150   $(OBJDIR)/src/host/premake_main.o \
151   $(OBJDIR)/src/host/scripts.o \
152   $(OBJDIR)/src/host/string_endswith.o \
153   $(OBJDIR)/src/host/string_hash.o \
154   $(OBJDIR)/src/host/lua-5.3.0/src/lapi.o \
155   $(OBJDIR)/src/host/lua-5.3.0/src/lauxlib.o \
156   $(OBJDIR)/src/host/lua-5.3.0/src/lbaselib.o \
157   $(OBJDIR)/src/host/lua-5.3.0/src/lbitlib.o \
158   $(OBJDIR)/src/host/lua-5.3.0/src/lcode.o \
159   $(OBJDIR)/src/host/lua-5.3.0/src/lcorolib.o \
160   $(OBJDIR)/src/host/lua-5.3.0/src/lctype.o \
161   $(OBJDIR)/src/host/lua-5.3.0/src/ldblib.o \
162   $(OBJDIR)/src/host/lua-5.3.0/src/ldebug.o \
163   $(OBJDIR)/src/host/lua-5.3.0/src/ldo.o \
164   $(OBJDIR)/src/host/lua-5.3.0/src/ldump.o \
165   $(OBJDIR)/src/host/lua-5.3.0/src/lfunc.o \
166   $(OBJDIR)/src/host/lua-5.3.0/src/lgc.o \
167   $(OBJDIR)/src/host/lua-5.3.0/src/linit.o \
168   $(OBJDIR)/src/host/lua-5.3.0/src/liolib.o \
169   $(OBJDIR)/src/host/lua-5.3.0/src/llex.o \
170   $(OBJDIR)/src/host/lua-5.3.0/src/lmathlib.o \
171   $(OBJDIR)/src/host/lua-5.3.0/src/lmem.o \
172   $(OBJDIR)/src/host/lua-5.3.0/src/loadlib.o \
173   $(OBJDIR)/src/host/lua-5.3.0/src/lobject.o \
174   $(OBJDIR)/src/host/lua-5.3.0/src/lopcodes.o \
175   $(OBJDIR)/src/host/lua-5.3.0/src/loslib.o \
176   $(OBJDIR)/src/host/lua-5.3.0/src/lparser.o \
177   $(OBJDIR)/src/host/lua-5.3.0/src/lstate.o \
178   $(OBJDIR)/src/host/lua-5.3.0/src/lstring.o \
179   $(OBJDIR)/src/host/lua-5.3.0/src/lstrlib.o \
180   $(OBJDIR)/src/host/lua-5.3.0/src/ltable.o \
181   $(OBJDIR)/src/host/lua-5.3.0/src/ltablib.o \
182   $(OBJDIR)/src/host/lua-5.3.0/src/ltm.o \
183   $(OBJDIR)/src/host/lua-5.3.0/src/lundump.o \
184   $(OBJDIR)/src/host/lua-5.3.0/src/lutf8lib.o \
185   $(OBJDIR)/src/host/lua-5.3.0/src/lvm.o \
186   $(OBJDIR)/src/host/lua-5.3.0/src/lzio.o \
187
188  define PREBUILDCMDS
189  endef
190  define PRELINKCMDS
191  endef
192  define POSTBUILDCMDS
193  endef
194endif
195
196OBJDIRS := \
197   $(OBJDIR) \
198   $(OBJDIR)/src/host \
199   $(OBJDIR)/src/host/lua-5.3.0/src \
200
201RESOURCES := \
202
203.PHONY: clean prebuild prelink
204
205all: $(TARGETDIR) $(OBJDIRS) prebuild prelink $(TARGET)
206   @:
207
208$(TARGET): $(GCH) $(OBJECTS) $(LDDEPS) $(RESOURCES)
209   @echo Linking genie
210   $(SILENT) $(LINKCMD)
211   $(POSTBUILDCMDS)
212
213$(TARGETDIR):
214   @echo Creating $(TARGETDIR)
215   -$(call MKDIR,$(TARGETDIR))
216
217$(OBJDIRS):
218   @echo Creating $(@)
219   -$(call MKDIR,$@)
220
221clean:
222   @echo Cleaning genie
223ifeq (posix,$(SHELLTYPE))
224   $(SILENT) rm -f  $(TARGET)
225   $(SILENT) rm -rf $(OBJDIR)
226else
227   $(SILENT) if exist $(subst /,\\,$(TARGET)) del $(subst /,\\,$(TARGET))
228   $(SILENT) if exist $(subst /,\\,$(OBJDIR)) rmdir /s /q $(subst /,\\,$(OBJDIR))
229endif
230
231prebuild:
232   $(PREBUILDCMDS)
233
234prelink:
235   $(PRELINKCMDS)
236
237ifneq (,$(PCH))
238$(GCH): $(PCH)
239   @echo $(notdir $<)
240   $(SILENT) $(CC) -x c-header $(ALL_CFLAGS) -MMD -MP $(DEFINES) $(INCLUDES) -o "$@" -MF "$(@:%.gch=%.d)" -c "$<"
241endif
242
243$(OBJDIR)/src/host/os_chdir.o: ../../src/host/os_chdir.c
244   @echo $(notdir $<)
245   $(SILENT) $(CC) $(ALL_CFLAGS) $(FORCE_INCLUDE) -o "$@" -MF $(@:%.o=%.d) -c "$<"
246
247$(OBJDIR)/src/host/os_copyfile.o: ../../src/host/os_copyfile.c
248   @echo $(notdir $<)
249   $(SILENT) $(CC) $(ALL_CFLAGS) $(FORCE_INCLUDE) -o "$@" -MF $(@:%.o=%.d) -c "$<"
250
251$(OBJDIR)/src/host/os_getcwd.o: ../../src/host/os_getcwd.c
252   @echo $(notdir $<)
253   $(SILENT) $(CC) $(ALL_CFLAGS) $(FORCE_INCLUDE) -o "$@" -MF $(@:%.o=%.d) -c "$<"
254
255$(OBJDIR)/src/host/os_getversion.o: ../../src/host/os_getversion.c
256   @echo $(notdir $<)
257   $(SILENT) $(CC) $(ALL_CFLAGS) $(FORCE_INCLUDE) -o "$@" -MF $(@:%.o=%.d) -c "$<"
258
259$(OBJDIR)/src/host/os_is64bit.o: ../../src/host/os_is64bit.c
260   @echo $(notdir $<)
261   $(SILENT) $(CC) $(ALL_CFLAGS) $(FORCE_INCLUDE) -o "$@" -MF $(@:%.o=%.d) -c "$<"
262
263$(OBJDIR)/src/host/os_isdir.o: ../../src/host/os_isdir.c
264   @echo $(notdir $<)
265   $(SILENT) $(CC) $(ALL_CFLAGS) $(FORCE_INCLUDE) -o "$@" -MF $(@:%.o=%.d) -c "$<"
266
267$(OBJDIR)/src/host/os_isfile.o: ../../src/host/os_isfile.c
268   @echo $(notdir $<)
269   $(SILENT) $(CC) $(ALL_CFLAGS) $(FORCE_INCLUDE) -o "$@" -MF $(@:%.o=%.d) -c "$<"
270
271$(OBJDIR)/src/host/os_match.o: ../../src/host/os_match.c
272   @echo $(notdir $<)
273   $(SILENT) $(CC) $(ALL_CFLAGS) $(FORCE_INCLUDE) -o "$@" -MF $(@:%.o=%.d) -c "$<"
274
275$(OBJDIR)/src/host/os_mkdir.o: ../../src/host/os_mkdir.c
276   @echo $(notdir $<)
277   $(SILENT) $(CC) $(ALL_CFLAGS) $(FORCE_INCLUDE) -o "$@" -MF $(@:%.o=%.d) -c "$<"
278
279$(OBJDIR)/src/host/os_pathsearch.o: ../../src/host/os_pathsearch.c
280   @echo $(notdir $<)
281   $(SILENT) $(CC) $(ALL_CFLAGS) $(FORCE_INCLUDE) -o "$@" -MF $(@:%.o=%.d) -c "$<"
282
283$(OBJDIR)/src/host/os_rmdir.o: ../../src/host/os_rmdir.c
284   @echo $(notdir $<)
285   $(SILENT) $(CC) $(ALL_CFLAGS) $(FORCE_INCLUDE) -o "$@" -MF $(@:%.o=%.d) -c "$<"
286
287$(OBJDIR)/src/host/os_stat.o: ../../src/host/os_stat.c
288   @echo $(notdir $<)
289   $(SILENT) $(CC) $(ALL_CFLAGS) $(FORCE_INCLUDE) -o "$@" -MF $(@:%.o=%.d) -c "$<"
290
291$(OBJDIR)/src/host/os_ticks.o: ../../src/host/os_ticks.c
292   @echo $(notdir $<)
293   $(SILENT) $(CC) $(ALL_CFLAGS) $(FORCE_INCLUDE) -o "$@" -MF $(@:%.o=%.d) -c "$<"
294
295$(OBJDIR)/src/host/os_uuid.o: ../../src/host/os_uuid.c
296   @echo $(notdir $<)
297   $(SILENT) $(CC) $(ALL_CFLAGS) $(FORCE_INCLUDE) -o "$@" -MF $(@:%.o=%.d) -c "$<"
298
299$(OBJDIR)/src/host/path_isabsolute.o: ../../src/host/path_isabsolute.c
300   @echo $(notdir $<)
301   $(SILENT) $(CC) $(ALL_CFLAGS) $(FORCE_INCLUDE) -o "$@" -MF $(@:%.o=%.d) -c "$<"
302
303$(OBJDIR)/src/host/premake.o: ../../src/host/premake.c
304   @echo $(notdir $<)
305   $(SILENT) $(CC) $(ALL_CFLAGS) $(FORCE_INCLUDE) -o "$@" -MF $(@:%.o=%.d) -c "$<"
306
307$(OBJDIR)/src/host/premake_main.o: ../../src/host/premake_main.c
308   @echo $(notdir $<)
309   $(SILENT) $(CC) $(ALL_CFLAGS) $(FORCE_INCLUDE) -o "$@" -MF $(@:%.o=%.d) -c "$<"
310
311$(OBJDIR)/src/host/scripts.o: ../../src/host/scripts.c
312   @echo $(notdir $<)
313   $(SILENT) $(CC) $(ALL_CFLAGS) $(FORCE_INCLUDE) -o "$@" -MF $(@:%.o=%.d) -c "$<"
314
315$(OBJDIR)/src/host/string_endswith.o: ../../src/host/string_endswith.c
316   @echo $(notdir $<)
317   $(SILENT) $(CC) $(ALL_CFLAGS) $(FORCE_INCLUDE) -o "$@" -MF $(@:%.o=%.d) -c "$<"
318
319$(OBJDIR)/src/host/string_hash.o: ../../src/host/string_hash.c
320   @echo $(notdir $<)
321   $(SILENT) $(CC) $(ALL_CFLAGS) $(FORCE_INCLUDE) -o "$@" -MF $(@:%.o=%.d) -c "$<"
322
323$(OBJDIR)/src/host/lua-5.3.0/src/lapi.o: ../../src/host/lua-5.3.0/src/lapi.c
324   @echo $(notdir $<)
325   $(SILENT) $(CC) $(ALL_CFLAGS) $(FORCE_INCLUDE) -o "$@" -MF $(@:%.o=%.d) -c "$<"
326
327$(OBJDIR)/src/host/lua-5.3.0/src/lauxlib.o: ../../src/host/lua-5.3.0/src/lauxlib.c
328   @echo $(notdir $<)
329   $(SILENT) $(CC) $(ALL_CFLAGS) $(FORCE_INCLUDE) -o "$@" -MF $(@:%.o=%.d) -c "$<"
330
331$(OBJDIR)/src/host/lua-5.3.0/src/lbaselib.o: ../../src/host/lua-5.3.0/src/lbaselib.c
332   @echo $(notdir $<)
333   $(SILENT) $(CC) $(ALL_CFLAGS) $(FORCE_INCLUDE) -o "$@" -MF $(@:%.o=%.d) -c "$<"
334
335$(OBJDIR)/src/host/lua-5.3.0/src/lbitlib.o: ../../src/host/lua-5.3.0/src/lbitlib.c
336   @echo $(notdir $<)
337   $(SILENT) $(CC) $(ALL_CFLAGS) $(FORCE_INCLUDE) -o "$@" -MF $(@:%.o=%.d) -c "$<"
338
339$(OBJDIR)/src/host/lua-5.3.0/src/lcode.o: ../../src/host/lua-5.3.0/src/lcode.c
340   @echo $(notdir $<)
341   $(SILENT) $(CC) $(ALL_CFLAGS) $(FORCE_INCLUDE) -o "$@" -MF $(@:%.o=%.d) -c "$<"
342
343$(OBJDIR)/src/host/lua-5.3.0/src/lcorolib.o: ../../src/host/lua-5.3.0/src/lcorolib.c
344   @echo $(notdir $<)
345   $(SILENT) $(CC) $(ALL_CFLAGS) $(FORCE_INCLUDE) -o "$@" -MF $(@:%.o=%.d) -c "$<"
346
347$(OBJDIR)/src/host/lua-5.3.0/src/lctype.o: ../../src/host/lua-5.3.0/src/lctype.c
348   @echo $(notdir $<)
349   $(SILENT) $(CC) $(ALL_CFLAGS) $(FORCE_INCLUDE) -o "$@" -MF $(@:%.o=%.d) -c "$<"
350
351$(OBJDIR)/src/host/lua-5.3.0/src/ldblib.o: ../../src/host/lua-5.3.0/src/ldblib.c
352   @echo $(notdir $<)
353   $(SILENT) $(CC) $(ALL_CFLAGS) $(FORCE_INCLUDE) -o "$@" -MF $(@:%.o=%.d) -c "$<"
354
355$(OBJDIR)/src/host/lua-5.3.0/src/ldebug.o: ../../src/host/lua-5.3.0/src/ldebug.c
356   @echo $(notdir $<)
357   $(SILENT) $(CC) $(ALL_CFLAGS) $(FORCE_INCLUDE) -o "$@" -MF $(@:%.o=%.d) -c "$<"
358
359$(OBJDIR)/src/host/lua-5.3.0/src/ldo.o: ../../src/host/lua-5.3.0/src/ldo.c
360   @echo $(notdir $<)
361   $(SILENT) $(CC) $(ALL_CFLAGS) $(FORCE_INCLUDE) -o "$@" -MF $(@:%.o=%.d) -c "$<"
362
363$(OBJDIR)/src/host/lua-5.3.0/src/ldump.o: ../../src/host/lua-5.3.0/src/ldump.c
364   @echo $(notdir $<)
365   $(SILENT) $(CC) $(ALL_CFLAGS) $(FORCE_INCLUDE) -o "$@" -MF $(@:%.o=%.d) -c "$<"
366
367$(OBJDIR)/src/host/lua-5.3.0/src/lfunc.o: ../../src/host/lua-5.3.0/src/lfunc.c
368   @echo $(notdir $<)
369   $(SILENT) $(CC) $(ALL_CFLAGS) $(FORCE_INCLUDE) -o "$@" -MF $(@:%.o=%.d) -c "$<"
370
371$(OBJDIR)/src/host/lua-5.3.0/src/lgc.o: ../../src/host/lua-5.3.0/src/lgc.c
372   @echo $(notdir $<)
373   $(SILENT) $(CC) $(ALL_CFLAGS) $(FORCE_INCLUDE) -o "$@" -MF $(@:%.o=%.d) -c "$<"
374
375$(OBJDIR)/src/host/lua-5.3.0/src/linit.o: ../../src/host/lua-5.3.0/src/linit.c
376   @echo $(notdir $<)
377   $(SILENT) $(CC) $(ALL_CFLAGS) $(FORCE_INCLUDE) -o "$@" -MF $(@:%.o=%.d) -c "$<"
378
379$(OBJDIR)/src/host/lua-5.3.0/src/liolib.o: ../../src/host/lua-5.3.0/src/liolib.c
380   @echo $(notdir $<)
381   $(SILENT) $(CC) $(ALL_CFLAGS) $(FORCE_INCLUDE) -o "$@" -MF $(@:%.o=%.d) -c "$<"
382
383$(OBJDIR)/src/host/lua-5.3.0/src/llex.o: ../../src/host/lua-5.3.0/src/llex.c
384   @echo $(notdir $<)
385   $(SILENT) $(CC) $(ALL_CFLAGS) $(FORCE_INCLUDE) -o "$@" -MF $(@:%.o=%.d) -c "$<"
386
387$(OBJDIR)/src/host/lua-5.3.0/src/lmathlib.o: ../../src/host/lua-5.3.0/src/lmathlib.c
388   @echo $(notdir $<)
389   $(SILENT) $(CC) $(ALL_CFLAGS) $(FORCE_INCLUDE) -o "$@" -MF $(@:%.o=%.d) -c "$<"
390
391$(OBJDIR)/src/host/lua-5.3.0/src/lmem.o: ../../src/host/lua-5.3.0/src/lmem.c
392   @echo $(notdir $<)
393   $(SILENT) $(CC) $(ALL_CFLAGS) $(FORCE_INCLUDE) -o "$@" -MF $(@:%.o=%.d) -c "$<"
394
395$(OBJDIR)/src/host/lua-5.3.0/src/loadlib.o: ../../src/host/lua-5.3.0/src/loadlib.c
396   @echo $(notdir $<)
397   $(SILENT) $(CC) $(ALL_CFLAGS) $(FORCE_INCLUDE) -o "$@" -MF $(@:%.o=%.d) -c "$<"
398
399$(OBJDIR)/src/host/lua-5.3.0/src/lobject.o: ../../src/host/lua-5.3.0/src/lobject.c
400   @echo $(notdir $<)
401   $(SILENT) $(CC) $(ALL_CFLAGS) $(FORCE_INCLUDE) -o "$@" -MF $(@:%.o=%.d) -c "$<"
402
403$(OBJDIR)/src/host/lua-5.3.0/src/lopcodes.o: ../../src/host/lua-5.3.0/src/lopcodes.c
404   @echo $(notdir $<)
405   $(SILENT) $(CC) $(ALL_CFLAGS) $(FORCE_INCLUDE) -o "$@" -MF $(@:%.o=%.d) -c "$<"
406
407$(OBJDIR)/src/host/lua-5.3.0/src/loslib.o: ../../src/host/lua-5.3.0/src/loslib.c
408   @echo $(notdir $<)
409   $(SILENT) $(CC) $(ALL_CFLAGS) $(FORCE_INCLUDE) -o "$@" -MF $(@:%.o=%.d) -c "$<"
410
411$(OBJDIR)/src/host/lua-5.3.0/src/lparser.o: ../../src/host/lua-5.3.0/src/lparser.c
412   @echo $(notdir $<)
413   $(SILENT) $(CC) $(ALL_CFLAGS) $(FORCE_INCLUDE) -o "$@" -MF $(@:%.o=%.d) -c "$<"
414
415$(OBJDIR)/src/host/lua-5.3.0/src/lstate.o: ../../src/host/lua-5.3.0/src/lstate.c
416   @echo $(notdir $<)
417   $(SILENT) $(CC) $(ALL_CFLAGS) $(FORCE_INCLUDE) -o "$@" -MF $(@:%.o=%.d) -c "$<"
418
419$(OBJDIR)/src/host/lua-5.3.0/src/lstring.o: ../../src/host/lua-5.3.0/src/lstring.c
420   @echo $(notdir $<)
421   $(SILENT) $(CC) $(ALL_CFLAGS) $(FORCE_INCLUDE) -o "$@" -MF $(@:%.o=%.d) -c "$<"
422
423$(OBJDIR)/src/host/lua-5.3.0/src/lstrlib.o: ../../src/host/lua-5.3.0/src/lstrlib.c
424   @echo $(notdir $<)
425   $(SILENT) $(CC) $(ALL_CFLAGS) $(FORCE_INCLUDE) -o "$@" -MF $(@:%.o=%.d) -c "$<"
426
427$(OBJDIR)/src/host/lua-5.3.0/src/ltable.o: ../../src/host/lua-5.3.0/src/ltable.c
428   @echo $(notdir $<)
429   $(SILENT) $(CC) $(ALL_CFLAGS) $(FORCE_INCLUDE) -o "$@" -MF $(@:%.o=%.d) -c "$<"
430
431$(OBJDIR)/src/host/lua-5.3.0/src/ltablib.o: ../../src/host/lua-5.3.0/src/ltablib.c
432   @echo $(notdir $<)
433   $(SILENT) $(CC) $(ALL_CFLAGS) $(FORCE_INCLUDE) -o "$@" -MF $(@:%.o=%.d) -c "$<"
434
435$(OBJDIR)/src/host/lua-5.3.0/src/ltm.o: ../../src/host/lua-5.3.0/src/ltm.c
436   @echo $(notdir $<)
437   $(SILENT) $(CC) $(ALL_CFLAGS) $(FORCE_INCLUDE) -o "$@" -MF $(@:%.o=%.d) -c "$<"
438
439$(OBJDIR)/src/host/lua-5.3.0/src/lundump.o: ../../src/host/lua-5.3.0/src/lundump.c
440   @echo $(notdir $<)
441   $(SILENT) $(CC) $(ALL_CFLAGS) $(FORCE_INCLUDE) -o "$@" -MF $(@:%.o=%.d) -c "$<"
442
443$(OBJDIR)/src/host/lua-5.3.0/src/lutf8lib.o: ../../src/host/lua-5.3.0/src/lutf8lib.c
444   @echo $(notdir $<)
445   $(SILENT) $(CC) $(ALL_CFLAGS) $(FORCE_INCLUDE) -o "$@" -MF $(@:%.o=%.d) -c "$<"
446
447$(OBJDIR)/src/host/lua-5.3.0/src/lvm.o: ../../src/host/lua-5.3.0/src/lvm.c
448   @echo $(notdir $<)
449   $(SILENT) $(CC) $(ALL_CFLAGS) $(FORCE_INCLUDE) -o "$@" -MF $(@:%.o=%.d) -c "$<"
450
451$(OBJDIR)/src/host/lua-5.3.0/src/lzio.o: ../../src/host/lua-5.3.0/src/lzio.c
452   @echo $(notdir $<)
453   $(SILENT) $(CC) $(ALL_CFLAGS) $(FORCE_INCLUDE) -o "$@" -MF $(@:%.o=%.d) -c "$<"
454
455-include $(OBJECTS:%.o=%.d)
456ifneq (,$(PCH))
457  -include $(OBJDIR)/$(notdir $(PCH)).d
458endif
trunk/3rdparty/genie/makefile
r245596r245597
44#
55
66UNAME := $(shell uname)
7ifeq ($(UNAME),$(filter $(UNAME),Linux Darwin))
7ifeq ($(UNAME),$(filter $(UNAME),Linux Darwin SunOS FreeBSD GNU/kFreeBSD NetBSD OpenBSD))
88ifeq ($(UNAME),$(filter $(UNAME),Darwin))
99OS=darwin
1010else
11ifeq ($(UNAME),$(filter $(UNAME),SunOS))
12OS=solaris
13else
14ifeq ($(UNAME),$(filter $(UNAME),FreeBSD GNU/kFreeBSD NetBSD OpenBSD))
15OS=bsd
16else
1117OS=linux
1218endif
19endif
20endif
1321else
1422OS=windows
1523endif
r245596r245597
2129SILENT?=@
2230
2331$(GENIE):
24   $(SILENT) make -C build/gmake.$(OS)
32   $(SILENT) $(MAKE) -C build/gmake.$(OS)
2533
2634all: $(GENIE)
2735
2836clean:
29   $(SILENT) make -C build/gmake.$(OS) clean
37   $(SILENT) $(MAKE) -C build/gmake.$(OS) clean
3038   $(SILENT) -rm -rf bin
3139
3240rebuild:
33   $(SILENT) make -C build/gmake.$(OS) clean all
41   $(SILENT) $(MAKE) -C build/gmake.$(OS) clean all
3442
3543release-windows release-darwin: $(GENIE)
3644   $(GENIE) release
37   $(SILENT) make -C build/gmake.$(OS) clean all
45   $(SILENT) $(MAKE) -C build/gmake.$(OS) clean all
3846   $(SILENT) git checkout src/host/version.h
3947
4048release-linux: $(GENIE)
4149   $(SILENT) $(GENIE) release
42   $(SILENT) make -C build/gmake.darwin  clean all CC=x86_64-apple-darwin13-clang++
43   $(SILENT) make -C build/gmake.linux   clean all
44   $(SILENT) make -C build/gmake.windows clean all CC=i686-w64-mingw32-gcc
50   $(SILENT) $(MAKE) -C build/gmake.darwin  clean all CC=x86_64-apple-darwin13-clang++
51   $(SILENT) $(MAKE) -C build/gmake.linux   clean all
52   $(SILENT) $(MAKE) -C build/gmake.windows clean all CC=i686-w64-mingw32-gcc
4553   $(SILENT) git checkout src/host/version.h
4654
4755release: release-$(OS)
trunk/3rdparty/genie/scripts/genie.lua
r245596r245597
6666      configuration "bsd"
6767         targetdir   "../bin/bsd"
6868
69      configuration "linux or bsd"
69      configuration "solaris"
70         targetdir   "../bin/solaris"
71         defines     { "_REENTRANT" }
72         buildoptions { "-std=gnu99" }
73         links       { "dl" }
74
75      configuration "linux or bsd or solaris"
7076         defines     { "LUA_USE_POSIX", "LUA_USE_DLOPEN" }
7177         links       { "m" }
7278         linkoptions { "-rdynamic" }
trunk/3rdparty/genie/src/base/cmdline.lua
r245596r245597
5454         { "bsd",      "OpenBSD, NetBSD, or FreeBSD" },
5555         { "linux",    "Linux" },
5656         { "macosx",   "Apple Mac OS X" },
57         { "solaris",  "Solaris" },
5758         { "windows",  "Microsoft Windows" },
5859      }
5960   }
trunk/3rdparty/genie/src/host/premake.h
r245596r245597
1818#elif defined(__FreeBSD__) || defined(__FreeBSD_kernel__) || defined(__NetBSD__) || defined(__OpenBSD__) || defined(__DragonFly__)
1919#define PLATFORM_BSD      (1)
2020#define PLATFORM_STRING   "bsd"
21#elif defined(__sun__) || defined(__svr4__)
22#define PLATFORM_SOLARIS  (1)
23#define PLATFORM_STRING   "solaris"
2124#elif defined(__APPLE__) && defined(__MACH__)
2225#define PLATFORM_MACOSX   (1)
2326#define PLATFORM_STRING   "macosx"
trunk/3rdparty/genie/src/host/scripts.c
r245596r245597
9898   "\nif not name then\nif type(premake.CurrentContainer) == \"project\" then\nreturn premake.CurrentContainer.solution\nelse\nreturn premake.CurrentContainer\nend\nend\npremake.CurrentContainer = premake.solution.get(name)\nif (not premake.CurrentContainer) then\npremake.CurrentContainer = premake.solution.new(name)\nend\nconfiguration { }\nreturn premake.CurrentContainer\nend\nfunction group(name)\nif not name then\nreturn premake.CurrentGroup\nend\npremake.CurrentGroup = name\nreturn premake.CurrentGroup\nend\nfunction newaction(a)\npremake.action.add(a)\nend\nfunction newoption(opt)\npremake.option.add(opt)\nend\n",
9999
100100   /* base/cmdline.lua */
101   "newoption \n{\ntrigger     = \"cc\",\nvalue       = \"VALUE\",\ndescription = \"Choose a C/C++ compiler set\",\nallowed = {\n{ \"gcc\", \"GNU GCC (gcc/g++)\" },\n{ \"ow\",  \"OpenWatcom\"        },\n}\n}\nnewoption\n{\ntrigger     = \"dotnet\",\nvalue       = \"VALUE\",\ndescription = \"Choose a .NET compiler set\",\nallowed = {\n{ \"msnet\",   \"Microsoft .NET (csc)\" },\n{ \"mono\",    \"Novell Mono (mcs)\"    },\n{ \"pnet\",    \"Portable.NET (cscc)\"  },\n}\n}\nnewoption\n{\ntrigger     = \"file\",\nvalue       = \"FILE\",\ndescription = \"Read FILE as a Premake script; default is 'premake4.lua'\"\n}\nnewoption\n{\ntrigger     = \"help\",\ndescription = \"Display this information\"\n}\nnewoption\n{\ntrigger     = \"os\",\nvalue       = \"VALUE\",\ndescription = \"Generate files for a different operating system\",\nallowed = {\n{ \"bsd\",      \"OpenBSD, NetBSD, or FreeBSD\" },\n{ \"linux\",    \"Linux\" },\n{ \"macosx\",   \"Apple Mac OS X\" },\n{ \"windows\",  \"Microsoft Windows\" },\n}\n}\nnewoption\n{"
102   "\ntrigger     = \"platform\",\nvalue       = \"VALUE\",\ndescription = \"Add target architecture (if supported by action)\",\nallowed = {\n{ \"x32\",         \"32-bit\" },\n{ \"x64\",         \"64-bit\" },\n{ \"universal\",   \"Mac OS X Universal, 32- and 64-bit\" },\n{ \"universal32\", \"Mac OS X Universal, 32-bit only\" },\n{ \"universal64\", \"Mac OS X Universal, 64-bit only\" },\n{ \"ps3\",         \"Playstation 3 (experimental)\" },\n{ \"xbox360\",     \"Xbox 360 (experimental)\" },\n{ \"ARM\",         \"ARM (Microsoft)\" },\n}\n}\nnewoption\n{\ntrigger     = \"scripts\",\nvalue       = \"path\",\ndescription = \"Search for additional scripts on the given path\"\n}\nnewoption\n{\ntrigger     = \"version\",\ndescription = \"Display version information\"\n}\n",
101   "newoption \n{\ntrigger     = \"cc\",\nvalue       = \"VALUE\",\ndescription = \"Choose a C/C++ compiler set\",\nallowed = {\n{ \"gcc\", \"GNU GCC (gcc/g++)\" },\n{ \"ow\",  \"OpenWatcom\"        },\n}\n}\nnewoption\n{\ntrigger     = \"dotnet\",\nvalue       = \"VALUE\",\ndescription = \"Choose a .NET compiler set\",\nallowed = {\n{ \"msnet\",   \"Microsoft .NET (csc)\" },\n{ \"mono\",    \"Novell Mono (mcs)\"    },\n{ \"pnet\",    \"Portable.NET (cscc)\"  },\n}\n}\nnewoption\n{\ntrigger     = \"file\",\nvalue       = \"FILE\",\ndescription = \"Read FILE as a Premake script; default is 'premake4.lua'\"\n}\nnewoption\n{\ntrigger     = \"help\",\ndescription = \"Display this information\"\n}\nnewoption\n{\ntrigger     = \"os\",\nvalue       = \"VALUE\",\ndescription = \"Generate files for a different operating system\",\nallowed = {\n{ \"bsd\",      \"OpenBSD, NetBSD, or FreeBSD\" },\n{ \"linux\",    \"Linux\" },\n{ \"macosx\",   \"Apple Mac OS X\" },\n{ \"solaris\",  \"Solaris\" },\n{ \"windows\",  \"Microsoft W"
102   "indows\" },\n}\n}\nnewoption\n{\ntrigger     = \"platform\",\nvalue       = \"VALUE\",\ndescription = \"Add target architecture (if supported by action)\",\nallowed = {\n{ \"x32\",         \"32-bit\" },\n{ \"x64\",         \"64-bit\" },\n{ \"universal\",   \"Mac OS X Universal, 32- and 64-bit\" },\n{ \"universal32\", \"Mac OS X Universal, 32-bit only\" },\n{ \"universal64\", \"Mac OS X Universal, 64-bit only\" },\n{ \"ps3\",         \"Playstation 3 (experimental)\" },\n{ \"xbox360\",     \"Xbox 360 (experimental)\" },\n{ \"ARM\",         \"ARM (Microsoft)\" },\n}\n}\nnewoption\n{\ntrigger     = \"scripts\",\nvalue       = \"path\",\ndescription = \"Search for additional scripts on the given path\"\n}\nnewoption\n{\ntrigger     = \"version\",\ndescription = \"Display version information\"\n}\n",
103103
104104   /* base/inspect.lua */
105105   "-- Copyright (c) 2013 Enrique García Cota\nlocal function smartQuote(str)\n  if str:match('\"') and not str:match(\"'\") then\n    return \"'\" .. str .. \"'\"\n  end\n  return '\"' .. str:gsub('\"', '\\\\\"') .. '\"'\nend\nlocal controlCharsTranslation = {\n  [\"\\a\"] = \"\\\\a\",  [\"\\b\"] = \"\\\\b\", [\"\\f\"] = \"\\\\f\",  [\"\\n\"] = \"\\\\n\",\n  [\"\\r\"] = \"\\\\r\",  [\"\\t\"] = \"\\\\t\", [\"\\v\"] = \"\\\\v\"\n}\nlocal function escapeChar(c) return controlCharsTranslation[c] end\nlocal function escape(str)\n  local result = str:gsub(\"\\\\\", \"\\\\\\\\\"):gsub(\"(%c)\", escapeChar)\n  return result\nend\nlocal function isIdentifier(str)\n  return type(str) == 'string' and str:match( \"^[_%a][_%a%d]*$\" )\nend\nlocal function isArrayKey(k, length)\n  return type(k) == 'number' and 1 <= k and k <= length\nend\nlocal function isDictionaryKey(k, length)\n  return not isArrayKey(k, length)\nend\nlocal defaultTypeOrders = {\n  ['number']   = 1, ['boolean']  = 2, ['string'] = 3, ['table'] = 4,\n  ['fu"
trunk/docs/SDL.txt
r245596r245597
1313
1414-[no]oslog
1515
16   Outputs the error.log data to the stderr TTY channel (usually the
16   Outputs the error.log data to the stderr TTY channel (usually the
1717   command line window MAME was started in). This can be used at
1818   the same time as -log to output the log data to both targets as well.
1919   Default is OFF (-nooslog).
r245596r245597
3434
3535-[no]multithreading / -[no]mt
3636
37   Enables multithreading for the final drawing operation.  This can help
37   Enables multithreading for the final drawing operation.  This can help
3838   performance on multicore/hyperthreaded systems with slow video cards,
3939   but may cause undesired behavior in some games.
4040   Note that some drivers in MAME and MESS will use multiple threads even
4141   when this is set to OFF, assuming -numprocessors allows it.
4242   The default is OFF (-nomultithreading).
43   
4344
4445-numprocessors <auto|value> / -np <auto|value>
4546
4647   Specify the number of processors to use for work queues. Specifying
47   "auto" will use the value reported by the system or environment
48   "auto" will use the value reported by the system or environment
4849   variable OSDPROCESSORS. To avoid abuse, this value is internally limited
49   to 4 times the number of processors reported by the system.
50   to 4 times the number of processors reported by the system.
5051   The default is "auto".
5152
5253-sdlvideofps
r245596r245597
6768
6869-video <soft|opengl|none>
6970
70   Specifies which video subsystem to use for drawing.  The default for
71   Mac OS X is 'opengl' because OS X is guaranteed to have a compliant
71   Specifies which video subsystem to use for drawing.  The default for
72   Mac OS X is 'opengl' because OS X is guaranteed to have a compliant
7273   OpenGL stack.  The default on all other systems is 'soft'.
7374
7475-numscreens <count>
r245596r245597
187188-[no]gl_pbo              Enable OpenGL PBO,  if available (default on)
188189
189190   These 4 options are for compatibility in -video opengl.  If you report
190   rendering artifacts you may be asked to try messing with them by the
191   rendering artifacts you may be asked to try messing with them by the
191192   devs, but normally they should be left at their defaults which results
192193   in the best possible video performance.
193194
r245596r245597
362363-joy_idx6            Name of joystick mapped to joystick #6, default is auto.
363364-joy_idx7            Name of joystick mapped to joystick #7, default is auto.
364365-joy_idx8            Name of joystick mapped to joystick #8, default is auto.
365-sixaxis             Use special handling for PS3 Sixaxis controllers.
366-sixaxis             Use special handling for PS3 Sixaxis controllers.
366367                     Default is OFF (-nosixaxis)
367368
368369
trunk/docs/config.txt
r245596r245597
294294        Displays a list of all devices known to be hooked up to a game.  The ":"
295295        is considered the game itself with the devices list being attached to give
296296        the user a better understanding of what the emulation is using.
297
297
298298-listslots [<gamename|wildcard>]
299299
300300        Show available slots and options for each slot (if available).  Primarily
301301        used for MESS to allow control over internal plug-in cards, much like PC's
302302        needing video, sound and other cards.
303
303         
304304-listmedia / -lm [<gamename|wildcard>]
305
305   
306306        List available media that the chosen game or system allows to be used.  This
307307        includes media types (cartridge, cassette, diskette and more) as well as
308308        common file extentions which are supported.
309309
310310-listsoftware [<gamename|wildcard>]
311
311 
312312        Posts to screen all software lists which can be used by the entered gamename
313313        or system.  Notice, this is simply a copy/paste of the .XML file which reside
314314        in the HASH folder which are allowed to be used.
r245596r245597
331331        softwarelistname.  By default, all drivers that have valid ZIP files or directories
332332        in the rompath are verified;  however, you can limit this list by specifying a
333333        specific softwarelistname (without .XML) after the -verifysoftlist command.
334
334
335335-listmidi
336336
337337        Create a list of list available MIDI I/O devices for use with emulation.
338338
339       
339340
340
341341Configuration options
342342---------------------
343343
r245596r245597
570570   find the next empty value for %i and use that for a filename. The
571571   default is %g/%i, which creates a separate folder for each game,
572572   and names the snapshots under it starting with 0000 and increasing
573   from there.  In addition to the above, for drivers using different
574   media, like carts or floppy disks, you can also use the %d_[media]
573   from there.  In addition to the above, for drivers using different
574   media, like carts or floppy disks, you can also use the %d_[media]
575575   indicator.  Replace [media] with the media switch you want to use.
576   A few examples: if you use 'mame robby -snapname foo/%g%i' snapshots
576   A few examples: if you use 'mame robby -snapname foo/%g%i' snapshots
577577   will be saved as 'snaps\foo\robby0000.png' , 'snaps\foo\robby0001.png'
578   and so on ; if you use 'mess nes -cart robby -snapname %g/%d_cart'
579   snapshots will be saved as 'snaps\nes\robby.png' ; if you use
580   'mess c64 -flop1 robby -snapname %g/%d_flop1/%i' snapshots will be
578   and so on ; if you use 'mess nes -cart robby -snapname %g/%d_cart'
579   snapshots will be saved as 'snaps\nes\robby.png' ; if you use
580   'mess c64 -flop1 robby -snapname %g/%d_flop1/%i' snapshots will be
581581   saved as 'snaps\c64\robby\0000.png'.
582582
583583-snapsize <width>x<height>
r245596r245597
607607-statename <name>
608608
609609   Describes how MAME should store save state files, relative to the
610   state_directory path. <name> is a string that provides a template that
611   is used to generate a relative path. Two simple substitutions are
612   provided: the / character represents the path separator on any target
613   platform (even Windows); the string %g represents the driver name of
614   the current game. The default is %g, which creates a separate folder for
615   each game.  In addition to the above, for drivers using different
616   media, like carts or floppy disks, you can also use the %d_[media]
610   state_directory path. <name> is a string that provides a template that
611   is used to generate a relative path. Two simple substitutions are
612   provided: the / character represents the path separator on any target
613   platform (even Windows); the string %g represents the driver name of
614   the current game. The default is %g, which creates a separate folder for
615   each game.  In addition to the above, for drivers using different
616   media, like carts or floppy disks, you can also use the %d_[media]
617617   indicator.  Replace [media] with the media switch you want to use.
618   A few examples: if you use 'mame robby -statename foo/%g' save states
619   will be stored inside 'sta\foo\robby\' ; if you use 'mess nes -cart
620   robby -statename %g/%d_cart' save states will be stored inside
621   'sta\nes\robby\' ; if you use 'mess c64 -flop1 robby -statename
618   A few examples: if you use 'mame robby -statename foo/%g' save states
619   will be stored inside 'sta\foo\robby\' ; if you use 'mess nes -cart
620   robby -statename %g/%d_cart' save states will be stored inside
621   'sta\nes\robby\' ; if you use 'mess c64 -flop1 robby -statename
622622   %g/%d_flop1' save states will be stored inside 'sta\c64\robby\'.
623623
624624-[no]burnin
625625
626   Tracks brightness of the screen during play and at the end of
626   Tracks brightness of the screen during play and at the end of
627627   emulation generates a PNG that can be used to simulate burn-in
628628   effects on other games. The resulting PNG is created such that the
629   least used-areas of the screen are fully white (since burned-in areas
629   least used-areas of the screen are fully white (since burned-in areas
630630   are darker, all other areas of the screen must be lightened a touch).
631631   The intention is that this PNG can be loaded via an artwork file with
632632   a low alpha (e.g, 0.1-0.2 seems to work well) and blended over the
633   entire screen. The PNG files are saved in the snap directory under
633   entire screen. The PNG files are saved in the snap directory under
634634   the gamename/burnin-<screen.name>.png. The default is OFF (-noburnin).
635635
636636
r245596r245597
11221122
11231123        A special 'internal' debugger for debugging.  Activated when used along
11241124        with -debug.  The default if OFF (-nodebug_internal).
1125       
11251126
11261127
1127
11281128Core misc options
11291129-----------------
11301130
r245596r245597
11491149   Specifies the name of a font file to use for the UI font.  If this font
11501150        cannot be found or cannot be loaded, the system will fall back to its
11511151        built-in UI font.  On some platforms 'fontname' can be a system font
1152        name (TTF) instead of a (BDF) font file. The default is 'default' (use
1152        name (TTF) instead of a (BDF) font file. The default is 'default' (use
11531153   the OSD-determined default font).
11541154
11551155-ramsize [n]
trunk/docs/floppy.txt
r245596r245597
8383A sensor detects when the head is on track 0 and the controller is not
8484supposed to try to go past it.  In addition physical blocks prevent
8585the head from going out of the correct track range.  Some systems
86(Apple II, some C64) do not take the track 0 sensor into account and
86(apple 2, some c64) do not take the track 0 sensor into account and
8787just wham the head against the track 0 physical block, giving a
8888well-known crash noise and eventually damaging the head alignment.
8989
90Also, some systems (Apple II and C64 again) have direct access to the
90Also, some systems (apple 2 and c64 again) have direct access to the
9191phases of the head positioning motor, allowing to trick the head into
9292going between tracks, in middle or even quarter positions.  That was
9393not usable to write more tracks, since the head width did not change,
r245596r245597
9595it was used for some copy protection systems.
9696
9797The disk rotates at a fixed speed for a given track.  The most usual
98speed is 300 rpm for every track, with 360 rpm found for HD 5.25"
99floppies and most 8" ones, and a number of different values like 90 rpm
100for the earlier floppies or 150 rpm for an HD floppy in an Amiga.
98speed is 300rpm for every track, with 360rpm found for HD 5.25"
99floppies and most 8" ones, and a number of different values like 90rpm
100for the earlier floppies or 150rpm for an HD floppy in an amiga.
101101Having a fixed rotational speed for the whole disk is called Constant
102102Angular Velocity (CAV, almost everybody) or Zoned Constant Angular
103103Velocity (ZCAV, C64) depending on whether the read/write bitrate is
104constant or track-dependant.  Some systems (Apple II, Mac) vary the
105rotational speed depending on the track (something like 394 rpm up to
106590 rpm) to end up with a Constant Linear Velocity (CLV).  The idea
104constant or track-dependant.  Some systems (apple 2, mac) varies the
105rotational speed depending on the track (something like 394rpm up to
106590rpm) to end up with a Constant Linear Velocity (CLV).  The idea
107107behind ZCAV/CLV is to get more bits out of the media by keeping the
108108minimal spacing between magnetic orientation transitions close to the
109109best the support can do.  It seems that the complexity was not deemed
r245596r245597
158158  2.3 Floppy controller
159159
160160The task of the floppy controller is to turn the signals to/from the
161floppy drive into something the main CPU can digest.  The level of
161floppy drive into something the main cpu can digest.  The level of
162162support actually done by the controller is extremely variable from one
163device to the other, from pretty much nothing (Apple II, C64) through
164minimal (Amiga) to complete (Western Digital chips, uPD765 family).
163device to the other, from pretty much nothing (apple2, c64) through
164minimal (amiga) to complete (western digital chips, upd765 family).
165165Usual functions include drive selection, motor control, track seeking
166166and of course reading and writing data.  Of these only the last two
167167need to be described, the rest is obvious.
r245596r245597
170170or bytes) are encoded on the surface, and how these are grouped in
171171individually-addressable sectors.  Two standards exist for these,
172172called FM and MFM, and in addition a number of systems use their
173home-grown variants.  Moreover, some systems such as the Amiga use a
174standard bit-level encoding (MFM) but a homegrown sector-level
173home-grown variants.  Moreover, some systems such as the amiga use a
174standard bit-level encoding (MFM) but an homegrown sector-level
175175organisation.
176176
177177
178178  2.3.1 Bit-level encodings
179179  2.3.1.1 Cell organization
180180
181All floppy controllers, even the wonkiest like the Apple II one, start
181All floppy controllers, even the wonkiest like the apple 2 one, start
182182by dividing the track in equally-sized cells.  They're angular
183183sections in the middle of which a magnetic orientation inversion may
184be present.  From a hardware point of view the cells are seen as
184be present.  From an hardware point of view the cells are seen as
185185durations, which combined with the floppy rotation give the section.
186186For instance the standard MFM cell size for a 3" double-density floppy
187is 2us, which combined with the also standard 300 rpm rotational speed
187is 2us, which combined with the also standard 300rpm rotational speed
188188gives an angular size of 1/100000th of a turn.  Another way of saying
189189it is that there are 100K cells in a 3" DD track.
190190
r245596r245597
234234same surface, hence its other name of "double density".  The cell size
235235is set at slightly over half the physical limit, e.g. 2us usually.
236236The constraint means that two '1' cells must be separated by at least
237one '0' cell. Each bit is once again encoded on two cells:
237one '0' cell. Each bit is once again encoded on two cells:
238238
239239- the first cell, called the clock bit, is '1' if both the previous
240240  and current data bits are 0, '0' otherwise
r245596r245597
252252Group Coded Recording, or GCR, encodings are a class of encodings
253253where strings of bits at least nibble-size are encoded into a given
254254cell stream given by a table.  It has been used in particular by the
255Apple II, the Mac and the C64, and each system has its own table, or
255apple 2, the mac and the c64, and each system has its own table, or
256256tables.
257257
258258  2.3.1.5 Other encodings
r245596r245597
342342The crc is a cyclic redundancy check of the data bits starting with
343343the mark just after the pulse train using polynom 0x11021.
344344
345The Western Digital-based controllers usually get rid of everything
345The western digital-based controllers usually get rid of everything
346346but some 0xff before the first sector and allow a better use of space
347347as a result.
348348
r245596r245597
365365- MFM-encoded 0xfb, sector data followed by two bytes of crc
366366- A number of MFM-encoded 0x4e (usually 84, very variable)
367367
368The track is finished with a stream of MFM-encoded 0x4e.
368The the track is finished with a stream of MFM-encoded 0x4e.
369369
370370The 250KHz pulse trains are used to lock the PLL to the signal
371371correctly.  The cell pattern 4489 does not appear in normal
372MFM-encoded data and is used for clock/data separation.
372MFM-encoded data and is used for clock/data separation. 
373373
374As for FM, the Western Digital-based controllers usually get rid of
374As for FM, the western digital-based controllers usually get rid of
375375everything but some 0x4e before the first sector and allow a better
376376use of space as a result.
377377
378378  2.3.2.3 Formatting and write splices
379379
380To be usable, a floppy must have the sector headers and default sector
380To be usable a floppy must have the sector headers and default sector
381381data written on every track before using it.  The controller starts
382382writing at a given place, often the index pulse but on some systems
383383whenever the command is sent, and writes until a complete turn is
r245596r245597
392392the start and end of the data block part.  They're not supposed to
393393happen on a mastered disk though, even if there are some rare
394394exceptions.
395 
395396
396
397397  3 The new implementation
398398  3.1 Floppy disk representation
399399
r245596r245597
417417- 3, MG_D -> Damaged zone, reads as neutral but cannot be changed by writing
418418
419419The position is in angular units of 1/200,000,000th of a turn.  It
420corresponds to one nanosecond when the drive rotates at 300 rpm.
420corresponds to one nanosecond when the drive rotates at 300rpm.
421421
422422The last cell implicit end position is of course 200,000,000.
423423
r245596r245597
523523                                     int sectdata_size)
524524
525525  Extract standard mfm or fm sectors from a regenerated
526  cell stream. Sectors must point to an array of 256 desc_xs.
526  cell stream. Sectors must point to an array of 256 desc_xs.
527527
528528  An existing sector is recognizable by having ->data non-null.
529529  Sector data is written in sectdata up to sectdata_size bytes.
r245596r245597
563563
564564  3.3.1 Control signals
565565
566Due to the way they're usually connected to CPUs (e.g. directly on an
567I/O port), the control signals work with physical instead of logical
566Due to the way they're usually connected to cpus (e.g. directly on an
567i/o port) the controls signals work with physical instead of logical
568568values.  Which means than in general 0 means active, 1 means inactive.
569569Some signals also have a callback associated called when they change.
570570
trunk/docs/hlsl.txt
r245596r245597
4242radial_converge_x      [r,g,b]         Radial convergence in screen-relative X direction.
4343radial_converge_y      [r,g,b]         Radial convergence in screen-relative Y direction.
4444                                        Allowed values for convergence: -150 to 150 for each color.
45red_ratio               [r,g,b]         These parameters define a 3x3 matrix which is multiplied
45red_ratio               [r,g,b]         These parameters define a 3x3 matrix which is multiplied
4646grn_ratio               [r,g,b]         by the incoming RGB signal. This can be used for any
4747blu_ratio               [r,g,b]         standard matrix convolution, including H/S/V or simply
4848                                        affecting the TV-style tint.
r245596r245597
109109bloom_lvl7_weight       0.12            Bloom level 7  (.) weight.  (0.00-1.00)
110110bloom_lvl8_weight       0.11            Bloom level 8  (.) weight.  (0.00-1.00)
111111bloom_lvl9_weight       0.10            Bloom level 9  (.) weight.  (0.00-1.00)
112bloom_lvl10_weight      0.09            Bloom level 10 (1x1 target) weight.  (0.00-1.00)
112bloom_lvl10_weight      0.09            Bloom level 10 (1x1 target) weight.  (0.00-1.00)
No newline at end of file
trunk/docs/imgtool.txt
r245596r245597
8181only extraction supported
8282not heavily tested
8383
84Lynx archivs could and should be handled in a c64 emulation
84Lynx archivs could and should be handled in a c64 emulation
8585with the native lynx tool
8686
8787
r245596r245597
128128type 7: 3 1/2 inch, enhanced density, DS, 2.88mb: sectors 36, heads 2, tracks 80
129129
130130unix with bash: use
131dd if=/dev/zero of=<name.dsk> bs=512 count=$((9*2*40))
131dd if=/dev/zero of=<name.dsk> bs=512 count=$((9*2*40))
132132to generate standard blank 360kb image
133133
134134
r245596r245597
145145type 0: 20mb standard pc/xt harddisk: 17 sectors, 4 heads, 615 cylinders
146146
147147unix with bash: use
148dd if=/dev/zero of=<name.dsk> bs=512 count=$((17*4*615))
148dd if=/dev/zero of=<name.dsk> bs=512 count=$((17*4*615))
149149to generate standard blank 20mb pc xt harddisk image
150150
151151
152152Virtual MSX tape archive
153153------------------------
154154Converts .tap files from Virtual MSX 1.x to .cas files. It is not
155fault-tolerant.
155fault-tolerant.
156156
157157
158158Virtual MSX Game Master 2 SRAM file
r245596r245597
161161SRAM of Konami's Game Master 2 in "gmaster2.ram". To convert this to something
162162useful with MESS and other MSX emulators, go:
163163
164imgtool getall vmsx_gm2 gmaster2.ram
164imgtool getall vmsx_gm2 gmaster2.ram
165165
166166You'll get a file called gmaster2.mem, which must place in the correct directory
167167of mess to use  (MESS\MEMCARD\GameMaster2 if your Game Master 2 .rom file is
r245596r245597
174174so you don't have to convert them. You can use it to export files to a real
175175MSX. Connect the MSX to the line out of your computer. Give the apropriate
176176command on the MSX (BLOAD "CAS:",R for example) and then play the .wav file
177on your computer.
177on your computer.
178178
179179imgtool dir fmsx_cas file.cas
180180imgtool getall fmsx_cas file.cas
r245596r245597
185185-----------------------
186186
187187The XelaSoft Archive is a compressed file. It can only contain one
188file. Although it can contain any file, it's always used for MSX disk
188file. Although it can contain any file, it's always used for MSX disk
189189images. The were programs written by XelaSoft which made a dump
190190of a disk, and compressing them at the same time. Very useful to store
191191a disk dump on another disk. zip/gzip offer much better compression and
r245596r245597
205205filetype converts them all to .dsk format.
206206
207207msx_img are disk images with an extra byte at the beginning. It' 1 (0x01)
208for single-sided images and 2 (0x02) for double-side images. These
208for single-sided images and 2 (0x02) for double-side images. These
209209files are at: ftp://ftp.funet.fi/pub/msx/. The extension is .img
210210
211211msx_ddi are DiskDupe 5.12 disk images. There is a 0x1800 bytes header
r245596r245597
215215msx_msx are disk images with a weird sector order. You can find them
216216at: ftp://jazz.snu.ac.kr/pub/msx/. The extension is .msx
217217
218msx_mul are "multi disk" images, used by fmsx-dos 1.6. It is simply
218msx_mul are "multi disk" images, used by fmsx-dos 1.6. It is simply
219219more than one .dsk image appended to one another. The extension is
220still .dsk, but the file is larger than 720kB (actually always a
220still .dsk, but the file is larger than 720kB (actually always a
221221multiple of 720kB.
222222
223223
r245596r245597
235235The maximum card size is 1mb, and maximum file size is 64k.
236236(Files will be cut at 64k if they are larger - e.g. when putting a large file)
237237
238As far as I know there is no directory system, however there is always a
238As far as I know there is no directory system, however there is always a
239239system "NC100" directory which points to the root directory. (Like the DOS "."
240240directory).
241241
trunk/docs/m6502.txt
r245596r245597
3434                           |
3535        +------+--------+--+--+-------+-------+
3636        |      |        |     |       |       |
37      6510   deco16   6504   6509   n2a03   65c02
37      6510   deco16   6504   6509   n2a03   65c02
3838        |                                     |
3939  +-----+-----+                            r65c02
4040  |     |     |                               |
416510t  7501  8502                         +---+---+
416510t  7501  8502                         +---+---+     
4242                                          |       |
4343                                       65ce02   65sc02
4444                                          |
trunk/docs/windows.txt
r245596r245597
3030
3131   Specifies the name of the font to use for debugger windows. By default,
3232   the font is Lucida Console.
33
33   
3434-debugger_font_size <points> / -dfontsize <points>
3535
3636   Specifies the size of the font to use for debugger windows, in points.
3737   By default, this is set to 9pt.
38   
3839
3940
40
4141Windows performance options
4242---------------------------
4343
r245596r245597
5454   window and all DirectDraw/Direct3D code to execute on a second thread,
5555   which can improve performance on hyperthreaded and multicore systems.
5656   The default is OFF (-nomultithreading).
57
57   
5858-numprocessors <auto|value> / -np <auto|value>
5959
6060   Specify the number of processors to use for work queues. Specifying
61   "auto" will use the value reported by the system or environment
61   "auto" will use the value reported by the system or environment
6262   variable OSDPROCESSORS. To avoid abuse, this value is internally limited
63   to 4 times the number of processors reported by the system.
63   to 4 times the number of processors reported by the system.
6464   The default is "auto".
6565
6666-profile [n]
trunk/makefile
r245596r245597
100100endif
101101ifeq ($(firstword $(filter Solaris,$(UNAME))),Solaris)
102102OS := solaris
103GENIEOS := solaris
103104endif
105ifeq ($(firstword $(filter SunOS,$(UNAME))),SunOS)
106OS := solaris
107GENIEOS := solaris
108endif
104109ifeq ($(firstword $(filter FreeBSD,$(UNAME))),FreeBSD)
105110OS := freebsd
111GENIEOS := bsd
106112endif
107113ifeq ($(firstword $(filter GNU/kFreeBSD,$(UNAME))),GNU/kFreeBSD)
108114OS := freebsd
115GENIEOS := bsd
109116endif
110117ifeq ($(firstword $(filter NetBSD,$(UNAME))),NetBSD)
111118OS := netbsd
119GENIEOS := bsd
112120endif
113121ifeq ($(firstword $(filter OpenBSD,$(UNAME))),OpenBSD)
114122OS := openbsd
123GENIEOS := bsd
115124endif
116125ifeq ($(firstword $(filter Darwin,$(UNAME))),Darwin)
117126OS := macosx
r245596r245597
248257OSD := sdl
249258endif
250259
260ifeq ($(TARGETOS),freebsd)
261OSD := sdl
262endif
263
264ifeq ($(TARGETOS),solaris)
265OSD := sdl
266endif
267
251268ifeq ($(TARGETOS),macosx)
252269OSD := sdl
253270endif
r245596r245597
576593CHECK_CLANG      :=
577594else
578595GCC_VERSION      := $(shell $(subst @,,$(CC)) -dumpversion 2> /dev/null)
596ifneq ($(OS),solaris)
579597CLANG_VERSION    := $(shell clang --version  2> /dev/null | grep 'LLVM [0-9]\.[0-9]' -o | grep '[0-9]\.[0-9]' -o | head -n 1)
598endif
580599PYTHON_AVAILABLE := $(shell $(PYTHON) --version > /dev/null 2>&1 && echo python)
581600CHECK_CLANG      := $(shell gcc --version  2> /dev/null | grep 'clang' | head -n 1)
582601endif
r245596r245597
840859xcode4-ios: generate
841860   $(SILENT) $(GENIE) $(PARAMS) --targetos=macosx --xcode=ios xcode4
842861
862#-------------------------------------------------
863# gmake-solaris
864#-------------------------------------------------
843865
866
867$(PROJECTDIR)/gmake-solaris/Makefile: makefile $(SCRIPTS) $(GENIE)
868   $(SILENT) $(GENIE) $(PARAMS) --gcc=solaris --gcc_version=$(GCC_VERSION) gmake
869
870.PHONY: solaris_x64
871solaris_x64: generate $(PROJECTDIR)/gmake-solaris/Makefile
872   $(SILENT) $(MAKE) -C $(PROJECTDIR)/gmake-solaris config=$(CONFIG)64
873
874.PHONY: solaris
875solaris: solaris_x86
876
877.PHONY: solaris_x86
878solaris_x86: generate $(PROJECTDIR)/gmake-solaris/Makefile
879   $(SILENT) $(MAKE) -C $(PROJECTDIR)/gmake-solaris config=$(CONFIG)32
880
881
844882#-------------------------------------------------
883# gmake-freebsd
884#-------------------------------------------------
885
886
887$(PROJECTDIR)/gmake-freebsd/Makefile: makefile $(SCRIPTS) $(GENIE)
888   $(SILENT) $(GENIE) $(PARAMS) --gcc=freebsd --gcc_version=$(GCC_VERSION) gmake
889
890.PHONY: freebsd_x64
891freebsd_x64: generate $(PROJECTDIR)/gmake-freebsd/Makefile
892   $(SILENT) $(MAKE) -C $(PROJECTDIR)/gmake-freebsd config=$(CONFIG)64
893
894.PHONY: freebsd
895freebsd: freebsd_x86
896
897.PHONY: freebsd_x86
898freebsd_x86: generate $(PROJECTDIR)/gmake-freebsd/Makefile
899   $(SILENT) $(MAKE) -C $(PROJECTDIR)/gmake-freebsd config=$(CONFIG)32
900
901
902#-------------------------------------------------
845903# Clean/bootstrap
846904#-------------------------------------------------
847905
trunk/nl_examples/breakout.c
r245596r245597
6464   CHIP("S2", DIPSWITCH, &dipswitch2_desc)
6565   CHIP("S3", DIPSWITCH, &dipswitch3_desc)
6666   CHIP("S4", DIPSWITCH, &dipswitch4_desc)
67
67       
6868    SOLVER(Solver, 48000)
6969    PARAM(Solver.ACCURACY, 1e-7) // works and is sufficient
7070    //CHIP("CLOCK", CLOCK_14_318_MHZ)
r245596r245597
8080   CHIP("C36", CAPACITOR, &c36_desc)
8181    CHIP("C37", CAPACITOR, &c37_desc)
8282    CHIP("PAD_EN_BUF", BUFFER, &pad_en_buf_desc)
83
83
8484   CHIP("A3", 7474)
8585   CHIP("A4", 7408)
8686   CHIP("A5", 7400)
r245596r245597
105105   CHIP("C7", 9316)
106106   CHIP("C8", 9316)
107107    CHIP("C9", 555_Mono, &c9_555_desc)
108
108   
109109   CHIP("D2", 7432)
110110   CHIP("D3", 7474)
111111   CHIP("D4", 9316)
r245596r245597
208208    CHIP("COIN1", COIN_INPUT)
209209
210210    //CHIP("COIN2", COIN_INPUT)
211
211   
212212    CHIP("START", START_INPUT)
213213
214214    CHIP("SERVE", BUTTONS1_INPUT)
215
215   
216216    //TODO: coin2 and start 2
217217
218218    VIDEO(breakout)
r245596r245597
256256   #define H64      "K2", 3
257257   #define H128      "K2", 6
258258
259   //#define V1
259   //#define V1     
260260   #define V2      "M3", 3
261261   #define V4      "M3", 6
262262   #define V8      "M3", 11
r245596r245597
274274   #define BSYNC     "J1", 15
275275   #define BSYNC_n     "J1", 14
276276
277   #define BALL    "D7", 6
277   #define BALL    "D7", 6
278278   #define BALL_DISPLAY "A4", 6
279   #define PLAYFIELD    "H4", 3
280   #define SCORE    "D3", 5
279   #define PLAYFIELD    "H4", 3
280   #define SCORE    "D3", 5 
281281   #define VERT_TRIG_n    "H1", 8
282282
283283   #define CLOCK    "H1", 11
r245596r245597
292292
293293   #define COIN       "L9", 6
294294   #define COIN1_n       "F8", 5
295   #define COIN2_n       "H9", 5
295   #define COIN2_n       "H9", 5   
296296   #define CREDIT_1_OR_2    "L9", 3
297297   #define CREDIT_1_OR_2_n    "F9", 8
298298   #define CREDIT2       "F9", 6
r245596r245597
306306
307307   #define P2_CONDITIONAL   "H1", 3
308308   #define P2_CONDITIONAL_dash    "H7", 8
309   #define PLAYER_2       "B4", 14
309   #define PLAYER_2       "B4", 14
310310   #define PLAYER_2_n       "M9", 8
311311
312312   #define START_GAME       "D8", 6
r245596r245597
317317   #define BG1       "K8", 8
318318   #define BG2_n   "K8", 5
319319   #define BG2      "K8", 6
320
320
321321   #define FREE_GAME_TONE   "N7", 3
322322   #define BONUS_COIN      "L9", 11
323
323
324324   //#define Q        "E9", 6
325325   #define LAT_Q   "E9", 6
326326   #define Q_n       "LATCH", 3
327327   #define SBD_n    "D2", 11
328328
329329   #define PLAY_CP    "D2", 8
330   #define PLGM2_n    "F7", 7
330   #define PLGM2_n    "F7", 7   
331331   #define VB_HIT_n    "A5", 6
332332
333333   #define SERVE_n    "SERVE", 1
334334   #define SERVE_WAIT    "A3", 9
335   #define SERVE_WAIT_n "A3", 8
335   #define SERVE_WAIT_n "A3", 8   
336336
337   #define BRICK_DISPLAY    "E3", 1
337   #define BRICK_DISPLAY    "E3", 1   
338338   #define BRICK_HIT       "E6", 5
339339   #define BRICK_HIT_n       "E6", 6
340340
r245596r245597
401401   #define FPD1_n    "F3", 9
402402   #define FPD2    "F3", 6
403403   #define FPD2_n    "F3", 7
404
404
405405   #define COUNT    "N7", 11
406406   #define COUNT_1    "N7", 8
407407   #define COUNT_2    "N7", 6
408408
409409   #define ATTRACT    "E6", 8
410410   #define ATTRACT_n    "E6", 9
411
411   
412412   #define BRICK_SOUND    "B8", 14
413413   #define P_HIT_SOUND    "B7", 12
414414   #define VB_HIT_SOUND "B7", 11
r245596r245597
416416   #define LH_SIDE    "J3", 13
417417   #define RH_SIDE    "H2", 3
418418   #define TOP_BOUND    "K4", 6
419
419   
420420//   CONNECTION(CREDIT_1_OR_2, "CREDIT_LIGHT1", 1)
421421//   CONNECTION(CREDIT2, "CREDIT_LIGHT2", 1)
422422//   CONNECTION(SERVE_WAIT_n, "SERVE_LIGHT", 1)
r245596r245597
540540   CONNECTION(P2_CONDITIONAL, "M2", 7)
541541   CONNECTION(GND, "M2", 4)
542542   CONNECTION(GND, "M2", 16)
543
543   
544544   CONNECTION("M2", 14, "N2", 13)
545545   CONNECTION(V16_d, "N2", 10)
546546   CONNECTION(V32_d, "N2", 8)
r245596r245597
608608   CONNECTION(P, "K1", 10)
609609   CONNECTION(CLOCK, "K1", 2)
610610   CONNECTION("L1", 15, "K1", 7)
611
611
612612   CONNECTION(P, "L1", 1)
613613   CONNECTION(P, "L1", 3)
614614   CONNECTION(GND, "L1", 4)
r245596r245597
631631
632632   CONNECTION("M1", 15, "H2", 5)
633633   CONNECTION("L1", 15, "H2", 4)
634
634   
635635   CONNECTION(V128_d, "N4", 5)
636636   CONNECTION(V64_d, "N4", 3)
637637   CONNECTION(V32_d, "N4", 4)
r245596r245597
648648   CONNECTION("L1", 15, "M1", 7)
649649   CONNECTION("K1", 15, "M1", 10)
650650
651
651
652652   //9312 circuit
653653   CONNECTION(PLAYER_2, "M9", 9)
654654   CONNECTION(BALL_A, "C5", 5)
r245596r245597
758758
759759   //PADDLES
760760   CONNECTION(ATTRACT_n, "B2", 4)
761
761   
762762   CONNECTION("B2", 3, "E9", 13)
763763   CONNECTION(PLAYER_2_n, "M3", 9)
764764   CONNECTION(V128, "M3", 10)
r245596r245597
810810   CONNECTION(P, "D4", 10)
811811   CONNECTION("C3", 11, "D4", 7)
812812   CONNECTION(VSYNC_n, "D4", 1)
813
813   
814814   CONNECTION("D4", 15, "E4", 10)
815815   CONNECTION("H7", 6, "E4", 9)
816816   CONNECTION("C9", 3, "H7", 5)
r245596r245597
839839   CONNECTION(V32_d, "J2", 9)
840840   CONNECTION("J2", 8, "C2", 10)
841841   CONNECTION("C2", 6, "C2", 9)
842   
842843
843
844844   //SCORE
845845   CONNECTION(SCI_n, "D3", 4)
846846   CONNECTION(GND, "D3", 2)
847847   CONNECTION(GND, "D3", 3)
848848   CONNECTION(GND, "D3", 1)
849
849
850850   //PLAYER2_CONDITIONAL
851851   CONNECTION(PLAYER_2, "H7", 10)
852852   CONNECTION(GND, "S2", 1)
r245596r245597
874874   CONNECTION(PLAYER_2, "M6", 7)
875875   CONNECTION(COUNT_2, "M6", 2)
876876   CONNECTION(START_GAME_n, "M6", 1)
877
877   
878878   CONNECTION("M6", 15, "L6", 10)
879879   CONNECTION(PLAYER_2, "L6", 7)
880880   CONNECTION(COUNT_2, "L6", 2)
r245596r245597
884884   CONNECTION(RAM_PLAYER1, "H6", 7)
885885   CONNECTION(COUNT_1, "H6", 2)
886886   CONNECTION(START_GAME_n, "H6", 1)
887
887   
888888   CONNECTION("H6", 15, "J6", 10)
889889   CONNECTION(RAM_PLAYER1, "J6", 7)
890890   CONNECTION(COUNT_1, "J6", 2)
r245596r245597
917917   CONNECTION("N8", 9, "N9", 11)
918918   CONNECTION(P, "N9", 15)
919919   CONNECTION(P, "N9", 5)
920
920   
921921   CONNECTION(COUNT, "N9", 4)
922922   CONNECTION(START_GAME, "N9", 14)
923923   CONNECTION(H8_n, "N9", 1)
r245596r245597
991991   CONNECTION(CKBH, "H1", 12)
992992   CONNECTION("F1", 14, "H1", 13)
993993   CONNECTION("F1", 15, "E1", 5)
994
994   
995995   CONNECTION(P, "F1", 1)
996996   CONNECTION(P, "F1", 7)
997997   CONNECTION(P, "F1", 10)
r245596r245597
10291029
10301030   // Coin Circuit
10311031   CONNECTION("COIN1", 1, "F9", 13)
1032
1032   
10331033   CONNECTION(CSW1, "F9", 11)
10341034   //CONNECTION("F9", 10, "F9", 13) //TODO: causes lots of bouncing, commented out since this trace is not implemented in gotcha
10351035
r245596r245597
10441044   CONNECTION(V64I, "F8", 3)
10451045   CONNECTION("F8", 9, "F8", 2)
10461046   CONNECTION(CSW1, "F8", 4)
1047
1047 
10481048   CONNECTION("F8", 6, "H8", 12)
10491049   CONNECTION(P, "H8", 10)
10501050   CONNECTION(V16_d, "H8", 11)
r245596r245597
10631063   //COIN2 circuit
10641064   //CONNECTION("COIN2", 1, "F9", 1)
10651065   CONNECTION(GND, "F9", 1)      //TODO: coin2 not implemented
1066
1066
10671067   CONNECTION(CSW2, "F9", 3)
10681068   CONNECTION(CSW2, "H9", 10)
10691069   CONNECTION("F9", 4, "H9", 12)
r245596r245597
10731073   CONNECTION("H9", 9, "H9", 2)
10741074   CONNECTION(CSW2, "H9", 4)
10751075   CONNECTION(P, "H9", 1)
1076
1076   
10771077   CONNECTION(P, "H8", 4)
10781078   CONNECTION("H9", 6, "H8", 2)
10791079   CONNECTION(V16_d, "H8", 3)
r245596r245597
11791179   CONNECTION(P, "D3", 12)
11801180   CONNECTION(START_GAME, "D3", 11)
11811181   CONNECTION(SERVE_n, "D3", 13)
1182
1182     
11831183   //Playfield
11841184   CONNECTION(LH_SIDE, "H3", 1)
11851185   CONNECTION(TOP_BOUND, "H3", 13)
r245596r245597
11871187   CONNECTION("H3", 12, "H4", 2)
11881188   CONNECTION("E1", 2, "C36", 1)
11891189   CONNECTION("C36", 2, "H4", 1)
1190
1190   
11911191   CONNECTION(BALL_DISPLAY, "A5", 10)
11921192   CONNECTION(PSYNC, "A5", 9)
11931193   CONNECTION(BSYNC, "C3", 2)
r245596r245597
12001200   CONNECTION("C5", 12, "A5", 2)
12011201   CONNECTION(BSYNC, "A5", 5)
12021202   CONNECTION(VSYNC, "A5", 4)
1203
1203 
12041204   CONNECTION("C5", 12, "A5", 13)
12051205   CONNECTION("A5", 3, "A5", 12)
12061206
r245596r245597
12131213   CONNECTION("C4", 6, "A6", 12)
12141214   CONNECTION(BP_HIT_n, "A6", 11)
12151215   CONNECTION(P, "A6", 13)
1216
1216   
12171217   CONNECTION("A5", 3, "A6", 4)
12181218   CONNECTION(V16_d, "A6", 2)
12191219   CONNECTION(VB_HIT_n, "A6", 3)
r245596r245597
12411241
12421242   CONNECTION("B5", 6, "C5", 11)
12431243   CONNECTION("B5", 7, "C5", 9)
1244
1244
12451245   CONNECTION(SU_n, "B5", 11)
12461246   CONNECTION(P, "B5", 15)
12471247   CONNECTION(P, "B5", 1)
r245596r245597
13261326   CONNECTION(P, "F4", 2)
13271327   CONNECTION("E4", 3, "F4", 3)
13281328   CONNECTION(START_GAME1_n, "F4", 1)
1329
1329
13301330   CONNECTION(P, "F4", 10)
13311331   CONNECTION(P, "F4", 12)
13321332   CONNECTION("E4", 6, "F4", 11)
r245596r245597
13391339
13401340   CONNECTION(P, "F3", 3)
13411341   CONNECTION(P, "F3", 13)
1342
1343
1342 
1343 
13441344   //CREDIT_COUNTER
13451345   CONNECTION(BONUS_COIN, "E7", 8)
13461346   CONNECTION(COIN, "E7", 9)
r245596r245597
13641364   CONNECTION("L8", 6, "M8", 10)
13651365   CONNECTION("L8", 2, "M8", 11)
13661366   CONNECTION("L8", 3, "M9", 13)
1367
1367 
13681368   CONNECTION(CREDIT2_n, "F9", 5)
13691369   CONNECTION(CREDIT2_n, "L9", 2)
13701370   CONNECTION("M9", 12, "L9", 1)
r245596r245597
14021402   CONNECTION(BALL_C, "S4", 2)
14031403   CONNECTION("S4", 3, "A4", 1)
14041404   CONNECTION("A4", 3, "C37", 1)
1405
1405   
14061406   CONNECTION(SERVE_WAIT_n, "A4", 5)
14071407   CONNECTION(BALL, "A4", 4)
14081408
1409   // Ball Circuit
1409   // Ball Circuit   
14101410
14111411
14121412   // Video Summing
r245596r245597
14281428
14291429   CONNECTION("VIDEO", Video::HBLANK_PIN, HSYNC)
14301430   CONNECTION("VIDEO", Video::VBLANK_PIN, "E3", 10)
1431   
14311432
1432
14331433   // Audio Summing
14341434   CONNECTION("AUDIO", 1, "B9", 11)
14351435   CONNECTION("AUDIO", 2, "B9", 8)
trunk/scripts/genie.lua
r245596r245597
8080      { "windows",       "Windows"                },
8181      { "os2",           "OS/2 eComStation"       },
8282      { "haiku",         "Haiku"                  },
83      { "solaris",       "Solaris SunOS"          },
8384   },
8485}
8586
r245596r245597
767768-- warnings only applicable to C compiles
768769   buildoptions_c {
769770      "-Wpointer-arith",
770      "-Wbad-function-cast",
771771      "-Wstrict-prototypes",
772772   }
773   
774if _OPTIONS["targetos"]~="freebsd" then
775   buildoptions_c {
776      "-Wbad-function-cast",
777   }
778end
773779
774780-- warnings only applicable to OBJ-C compiles
775781   buildoptions_objc {
trunk/scripts/src/3rdparty.lua
r245596r245597
383383--------------------------------------------------
384384-- portmidi library objects
385385--------------------------------------------------
386
386if _OPTIONS["NO_USE_MIDI"]=="0" then
387387project "portmidi"
388388   uuid "587f2da6-3274-4a65-86a2-f13ea315bb98"
389389   kind "StaticLib"
r245596r245597
433433         MAME_DIR .. "3rdparty/portmidi/porttime/ptmacosx_mach.c",
434434      }
435435   end
436   
436end   
437437--------------------------------------------------
438438-- BGFX library objects
439439--------------------------------------------------
r245596r245597
464464      includedirs {
465465         MAME_DIR .. "3rdparty/bx/include/compat/osx",
466466      }
467   
467     
468   configuration { "freebsd" }
469      includedirs {
470         MAME_DIR .. "3rdparty/bx/include/compat/freebsd",
471      }
472
468473   configuration { "gmake" }
469474      buildoptions {     
470475         "-Wno-uninitialized",
trunk/scripts/src/main.lua
r245596r245597
5959      "zlib",
6060      "jsoncpp",
6161      "mongoose",
62      "portmidi",
6362   }
63   if _OPTIONS["NO_USE_MIDI"]=="0" then
64      links {
65         "portmidi",
66      }
67   end
6468   if (USE_BGFX == 1) then
6569      links {
6670         "bgfx"
trunk/scripts/toolchain.lua
r245596r245597
2929      { "pnacl",         "Native Client - PNaCl"  },
3030      { "qnx-arm",       "QNX/Blackberry - ARM"   },
3131      { "rpi",           "RaspberryPi"            },
32      { "solaris",       "Solaris"                },
3233   },
3334}
3435
r245596r245597
168169         location (_buildDir .. "projects/" .. _subDir .. "/".. _ACTION .. "-linux")
169170      end
170171
172      if "solaris" == _OPTIONS["gcc"] then
173         location (_buildDir .. "projects/" .. _subDir .. "/".. _ACTION .. "-solaris")
174      end
175
176
171177      if "linux-clang" == _OPTIONS["gcc"] then
172178         premake.gcc.cc  = "clang"
173179         premake.gcc.cxx = "clang++"
r245596r245597
449455         "-m64",
450456      }
451457     
458   configuration { "solaris", "x32" }
459      targetdir (_buildDir .. "solaris" .. "/bin/x32")
460      objdir (_buildDir .. "solaris" .. "/obj")
461      buildoptions {
462         "-m32",
463      }
464
465   configuration { "solaris", "x64" }
466      targetdir (_buildDir .. "solaris" .. "/bin/x64")
467      objdir (_buildDir .. "solaris" .. "/obj")
468      buildoptions {
469         "-m64",
470      }
471
472   configuration { "freebsd", "x32" }
473      targetdir (_buildDir .. "freebsd" .. "/bin/x32")
474      objdir (_buildDir .. "freebsd" .. "/obj")
475      buildoptions {
476         "-m32",
477      }
478
479   configuration { "freebsd", "x64" }
480      targetdir (_buildDir .. "freebsd" .. "/bin/x64")
481      objdir (_buildDir .. "freebsd" .. "/obj")
482      buildoptions {
483         "-m64",
484      }
485     
452486   configuration { "android-*" }
453487      includedirs {
454488         "$(ANDROID_NDK_ROOT)/sources/cxx-stl/gnu-libstdc++/4.8/include",
r245596r245597
580614         "-Wno-extern-c-compat",
581615      }
582616
583   configuration { "freebsd" }
584      targetdir (_buildDir .. "freebsd" .. "/bin")
585      objdir (_buildDir .. "freebsd" .. "/obj")
586
587617   configuration { "nacl or nacl-arm or pnacl" }
588618      buildoptions {
589619         "-U__STRICT_ANSI__", -- strcasecmp, setenv, unsetenv,...
trunk/src/emu/bus/amiga/zorro/a590.c
r245596r245597
155155   ROMX_LOAD("390721-01.u13", 0x4000, 0x2000, CRC(00dbf615) SHA1(503940d04fb3b49eaa61100fd3a487018b35e25a), ROM_SKIP(1) | ROM_BIOS(2))
156156   ROMX_LOAD("390722-01.u12", 0x4001, 0x2000, CRC(c460cfdb) SHA1(0de457daec3b84f75e8fb344defe24ce56cda3e0), ROM_SKIP(1) | ROM_BIOS(2))
157157
158   // changelog v6.6: fixes dual SCSI problems with the wd33c93a controller
158   // changelog v6.6: fixes dual scsi problems with the wd33c93a controller
159159   ROM_SYSTEM_BIOS(2, "v66", "Version 6.6")
160160   ROMX_LOAD("390721-02.u13", 0x0000, 0x2000, CRC(c0871d25) SHA1(e155f18abb90cf820589c15e70559d3b6b391af8), ROM_SKIP(1) | ROM_BIOS(3))
161161   ROMX_LOAD("390722-02.u12", 0x0001, 0x2000, CRC(e536bbb2) SHA1(fd7f8a6da18c1b02d07eb990c2467a24183ede12), ROM_SKIP(1) | ROM_BIOS(3))
162162   ROMX_LOAD("390721-02.u13", 0x4000, 0x2000, CRC(c0871d25) SHA1(e155f18abb90cf820589c15e70559d3b6b391af8), ROM_SKIP(1) | ROM_BIOS(3))
163163   ROMX_LOAD("390722-02.u12", 0x4001, 0x2000, CRC(e536bbb2) SHA1(fd7f8a6da18c1b02d07eb990c2467a24183ede12), ROM_SKIP(1) | ROM_BIOS(3))
164164
165   // final Commodore released version
165   // final commodore released version
166166   ROM_SYSTEM_BIOS(3, "v70", "Version 7.0")
167167   ROMX_LOAD("390721-03.u13", 0x0000, 0x2000, CRC(2942747a) SHA1(dbd7648e79c753337ff3e4f491de224bf05e6bb6), ROM_SKIP(1) | ROM_BIOS(4))
168168   ROMX_LOAD("390722-03.u12", 0x0001, 0x2000, CRC(a9ccffed) SHA1(149f5bd52e2d29904e3de483b9ad772448e9278e), ROM_SKIP(1) | ROM_BIOS(4))
169169   ROMX_LOAD("390721-03.u13", 0x4000, 0x2000, CRC(2942747a) SHA1(dbd7648e79c753337ff3e4f491de224bf05e6bb6), ROM_SKIP(1) | ROM_BIOS(4))
170170   ROMX_LOAD("390722-03.u12", 0x4001, 0x2000, CRC(a9ccffed) SHA1(149f5bd52e2d29904e3de483b9ad772448e9278e), ROM_SKIP(1) | ROM_BIOS(4))
171171
172   // third-party upgrade ROM, requires a small ROM adapter pcb
172   // third-party upgrade rom, requires a small rom adapter pcb
173173   ROM_SYSTEM_BIOS(4, "g614", "Guru-ROM 6.14")
174174   ROMX_LOAD("gururom_v614.bin", 0x0000, 0x8000, CRC(04e52f93) SHA1(6da21b6f5e8f8837d64507cd8a4d5cdcac4f426b), ROM_GROUPWORD | ROM_BIOS(5))
175175
r245596r245597
234234{
235235   set_zorro_device();
236236
237   // setup DMAC
237   // setup dmac
238238   m_dmac->set_address_space(m_slot->m_space);
239239   m_dmac->set_rom(memregion("bootrom")->base());
240240}
r245596r245597
243243{
244244   set_zorro_device();
245245
246   // setup DMAC
246   // setup dmac
247247   m_dmac->set_address_space(m_slot->m_space);
248248   m_dmac->set_rom(memregion("bootrom")->base());
249249}
r245596r245597
258258
259259void dmac_hdc_device::resize_ram(int config)
260260{
261   // allocate space for RAM
261   // allocate space for ram
262262   switch (config & 0x0f)
263263   {
264264   case 0x01:
r245596r245597
301301   m_int6 = m_jp4->read() & 0x01;
302302   resize_ram(m_dips->read() & 0x0f);
303303
304   // then tell the DMAC to start configuring
304   // then tell the dmac to start configuring
305305   m_dmac->configin_w(state);
306306}
307307
r245596r245597
311311   m_int6 = m_jp3->read() & 0x01;
312312   resize_ram(m_jp1->read() & 0x0f);
313313
314   // then tell the DMAC to start configuring
314   // then tell the dmac to start configuring
315315   m_dmac->configin_w(state);
316316}
317317
r245596r245597
345345
346346WRITE_LINE_MEMBER( dmac_hdc_device::scsi_irq_w )
347347{
348   // should be or'ed with xt-ide IRQ
348   // should be or'ed with xt-ide irq
349349   m_dmac->intx_w(state);
350350}
trunk/src/emu/cpu/i86/i86.txt
r245596r245597
11intel 8086 and compatibles
22--------------------------
33
4this info is here,
4this info is here,
55to list and give some remarks on all 8086 compatible processors
66
77excellent info in Hamarsoft's 86BUGS list
r245596r245597
121220 bit address bus, 16 bit data bus and registers
1313many 8080 assembler sources should be compilable/reusable
1414
158086
158086
1616----
17176 bytes prefetch queue
1818
19198088
2020----
218086 with 8 bit data bus,
218086 with 8 bit data bus,
2222prefetch queue only 4 byte, and refilled when 1 byte empty
2323
2424early 8086/8088 revisions bug
r245596r245597
939380286
9494-----
959580186 with additional instructions
9624 bit address bus,
9624 bit address bus,
9797protected mode
9898
999980386 and later
r245596r245597
106106
107107weitek, iit variants
108108
109in 80486 coprocessor integrated
109in 80486 coprocessor integrated
110110(except 80486sx and several clones)
11111180487: 80486 with other pinout
trunk/src/emu/imagedev/floppy.c
r245596r245597
4848const device_type FLOPPY_8_SSDD = &device_creator<floppy_8_ssdd>;
4949const device_type FLOPPY_8_DSDD = &device_creator<floppy_8_dsdd>;
5050
51// Epson 3.5" drives
51// epson 3.5" drives
5252#if 0
5353const device_type EPSON_SMD_110 = &device_creator<epson_smd_110>;
5454const device_type EPSON_SMD_120 = &device_creator<epson_smd_120>;
r245596r245597
7070const device_type EPSON_SMD_489M = &device_creator<epson_smd_489m>;
7171#endif
7272
73// Epson 5.25" drives
73// epson 5.25" drives
7474#if 0
7575const device_type EPSON_SD_311 = &device_creator<epson_sd_311>;
7676#endif
r245596r245597
8888const device_type EPSON_SD_680L = &device_creator<epson_sd_680l>;
8989#endif
9090
91// Sony 3.5" drives
91// sony 3.5" drives
9292const device_type SONY_OA_D31V = &device_creator<sony_oa_d31v>;
9393const device_type SONY_OA_D32W = &device_creator<sony_oa_d32w>;
9494const device_type SONY_OA_D32V = &device_creator<sony_oa_d32v>;
9595
96// TEAC 5.25" drives
96// teac 5.25" drives
9797#if 0
9898const device_type TEAC_FD_55A = &device_creator<teac_fd_55a>;
9999const device_type TEAC_FD_55B = &device_creator<teac_fd_55b>;
r245596r245597
16721672}
16731673
16741674//-------------------------------------------------
1675//  Sony OA-D31V
1675//  sony oa-d31v
16761676//
16771677//  track to track: 15 ms
16781678//  average: 365 ms
r245596r245597
17061706}
17071707
17081708//-------------------------------------------------
1709//  Sony OA-D32W
1709//  sony oa-d32w
17101710//
17111711//  track to track: 12 ms
17121712//  average: 350 ms
r245596r245597
17421742}
17431743
17441744//-------------------------------------------------
1745//  Sony OA-D32V
1745//  sony oa-d32v
17461746//
17471747//  track to track: 12 ms
17481748//  average: 350 ms
r245596r245597
17771777}
17781778
17791779//-------------------------------------------------
1780//  TEAC FD-55F
1780//  teac fd-55f
17811781//
17821782//  track to track: 3 ms
17831783//  average: 94 ms
r245596r245597
18151815}
18161816
18171817//-------------------------------------------------
1818//  TEAC FD-55G
1818//  teac fd-55g
18191819//
18201820//  track to track: 3 ms
18211821//  average: 91 ms
trunk/src/emu/machine/vrc4373.c
r245596r245597
263263      m_cpu_regs[NREG_DMA_CPAR] += 0x4;
264264      m_cpu_regs[NREG_DMA_REM]--;
265265   }
266}
266}   
267267// CPU I/F
268268READ32_MEMBER (vrc4373_device::cpu_if_r)
269269{
r245596r245597
347347      case NREG_DMACR1:
348348      case NREG_DMACR2:
349349         // Start when DMA_GO bit is set
350         if (!(oldData & DMA_GO) && (data & DMA_GO)) {
350         if (!(oldData & DMA_GO) && (data & DMA_GO)) {           
351351            int which = (offset-NREG_DMACR1)>>3;
352352            // Check to see DMA is not already started
353353            if (!(data&DMA_BUSY)) {
354354               // Set counts and address
355355               m_cpu_regs[NREG_DMA_CPAR] = m_cpu_regs[NREG_DMAPCI1+which*0xC];
356               m_cpu_regs[NREG_DMA_CMAR] = m_cpu_regs[NREG_DMAMAR1+which*0xC];
356               m_cpu_regs[NREG_DMA_CMAR] = m_cpu_regs[NREG_DMAMAR1+which*0xC];               
357357               m_cpu_regs[NREG_DMA_REM] = (data & DMA_BLK_SIZE)>>2;
358358               m_cpu_regs[NREG_DMACR1+which*0xc] |= DMA_BUSY;
359359               // Start the transfer
trunk/src/emu/machine/vrc4373.h
r245596r245597
120120
121121   UINT32 m_pci1_laddr, m_pci2_laddr, m_pci_io_laddr;
122122   UINT32 m_target1_laddr, m_target2_laddr;
123   
123124};
124125
125126
trunk/src/emu/sound/es1373.c
r245596r245597
9494      // The initalized is to signal that inital buffer has been written
9595      if (m_dac2.buf_count<=m_dac2.buf_size && m_dac2.initialized) {
9696         // Send data to sound???
97         // sound = m_sound_cache[chan.buf_rptr]
98         if (0 && LOG_ES)
99            logerror("%X: DAC2 buf_count: %i buf_size: %X buf_rptr: %X buf_wptr: %X\n", machine().device("maincpu")->safe_pc(),
97         // sound = m_sound_cache[chan.buf_rptr]
98         if (0 && LOG_ES)
99            logerror("%X: DAC2 buf_count: %i buf_size: %X buf_rptr: %X buf_wptr: %X\n", machine().device("maincpu")->safe_pc(),
100100               m_dac2.buf_count, m_dac2.buf_size, m_dac2.buf_rptr, m_dac2.buf_wptr);
101101         if (m_dac2.buf_count==m_dac2.buf_size) {
102102            if (m_dac2.int_en) {
r245596r245597
122122   }
123123   if (m_adc.enable) {
124124      if (m_adc.buf_count<=m_adc.buf_size) {
125         if (LOG_ES)
126            logerror("%s: ADC buf_count: %i buf_size: %i buf_rptr: %i buf_wptr: %i\n", machine().describe_context(),
125         if (LOG_ES)
126            logerror("%s: ADC buf_count: %i buf_size: %i buf_rptr: %i buf_wptr: %i\n", machine().describe_context(),
127127               m_adc.buf_count, m_adc.buf_size, m_adc.buf_rptr, m_adc.buf_wptr);
128128         if (m_adc.int_en && m_adc.buf_count==m_adc.buf_size) {
129129            m_es_regs[ES_INT_CS_STATUS] |= ICSTATUS_ADC_INT_MASK;
trunk/src/emu/sound/es1373.h
r245596r245597
114114   chan_info m_dac2;
115115   chan_info m_adc;
116116   void transfer_pci_audio(chan_info& chan, int type);
117   
117118};
118119
119120extern const device_type ES1373;
trunk/src/emu/sound/pokey.txt
r245596r245597
44                                  31 Jan 97
55
66The PokeySound Chip Emulator is designed to emulate the functionality of the
7Atari POKEY Chip Hardware through 'C' Sourcecode.  The emulator is able to
8produce sounds which are essentially identical to the original POKEY chip,
9including the exact distortions and pitches.
7Atari POKEY Chip Hardware through 'C' Sourcecode.  The emulator is able to
8produce sounds which are essentially identical to the original POKEY chip,
9including the exact distortions and pitches.
1010
1111The emulator is designed to run in a 32-bit environment.  Though it can be
12compiled and run in a 16-bit environment, it is slow.
12compiled and run in a 16-bit environment, it is slow. 
1313
1414I would like to give special thanks to Neil Bradley.  He provided excellent
1515testing support and was also the driving force behind the multiple POKEY
r245596r245597
26262) An adjustable gain.  The previous releases had a built-in gain of 64.
2727
28283) A clipping option.  Depending on the number of chips emulated and the
29   configured gain, it is possible for the output to exceed 8-bits.
29   configured gain, it is possible for the output to exceed 8-bits. 
3030   Clipping can be enabled to prevent this, though it does increase the
31   processing time.
31   processing time.
3232
3333
3434Standard Features:
r245596r245597
3636
3737The 'PokeySound' emulator supports the following functions:
3838
391) All polynomial sound generators:
391) All polynomial sound generators:
4040   a) 4-bit poly - actual bit pattern determined from sampled sound
4141   b) 5-bit poly - actual bit pattern determined from sampled sound
4242   c) 17-bit poly - simulated random bit pattern
4343   d) 9-bit poly - derived from simulated 17-bit poly
44
44   
45452) Full support of all 'Divide by N' counter clocks:
4646   a) 1.79 MHz (high limited to playback sample rate)
4747   b) 64 KHz (high limited to playback sample rate)
r245596r245597
5151   a) 8-bit - single channel
5252   b) 16-bit - double channel
5353
544) Full support of all distortions
544) Full support of all distortions
5555   a) 5-bit poly, then 17-bit poly
5656   b) 5-bit poly only
5757   c) 5-bit poly, then 4-bit poly
r245596r245597
5959   e) no poly counters (pure tone)
6060   f) 5-bit poly only
6161
625) Full support of volume control
625) Full support of volume control
6363
64646) Full support of all pitches - distortions will vary exactly as the
6565   original Atari based on different pitches
r245596r245597
8484left in for reference.  If you would still like to see the non-optimized
8585version, it's available in the 1.2 release.
8686
87One of the unique features of the emulator is that the processing time varies
88based on the frequency.  Since the routine only calculates new output values
89when a change is sensed, the lower frequencies (which change less frequently)
87One of the unique features of the emulator is that the processing time varies
88based on the frequency.  Since the routine only calculates new output values
89when a change is sensed, the lower frequencies (which change less frequently)
9090will require less processing time.
9191
9292
9393Differences Between the Emulator and the Actual POKEY Chip:
94-----------------------------------------------------------
94----------------------------------------------------------- 
9595
96The biggest difference between the emulator and the original hardware is
97that the emulator emulates an 'ideal' POKEY chip.  All output from the
96The biggest difference between the emulator and the original hardware is
97that the emulator emulates an 'ideal' POKEY chip.  All output from the
9898emulator is a based on a precise square wave, whereas the output from the
9999original chip has decay.  Though the output is slightly different, I
100100don't believe this difference is easily discernible.
101101
102102Another slight difference is the 17-bit/9-bit poly.  Since the polynomial
103103is large (2^17 bits), I choose to create the sample using a random number
104generator rather than a table.  I don't believe this difference is
104generator rather than a table.  I don't believe this difference is
105105significant.
106106
107107There are also a few differences which are introduced by aliasing.  This is
108108a direct result of using an output sampling rate which is not identical to
109the original sound rate.  It is most evident with high frequencies.
109the original sound rate.  It is most evident with high frequencies.
110110
111A final difference is the lack of support for the High-Pass Filter
111A final difference is the lack of support for the High-Pass Filter
112112functionality.  I plan to add this in a future release if necessary.
113113
114114
115115Sample/Test Application:
116116------------------------
117117
118The test program I've distributed is a 16-bit DOS application created with
119the Borland 'C' compiler.  The only reason I used 16-bit was because I
118The test program I've distributed is a 16-bit DOS application created with
119the Borland 'C' compiler.  The only reason I used 16-bit was because I
120120already had a set of working SB drivers in 16-bit.  Since the test system
121121is dedicated to generating sounds, the performance in 16-bit is more than
122122adequate.
r245596r245597
125125POKEY.C
126126=======
127127
128The POKEY.C file is the heart of the PokeySound Emulation program.
128The POKEY.C file is the heart of the PokeySound Emulation program. 
129129Although the routines in the file must work together, no other files are
130modules are required for operation.  A header file, 'POKEY.H', has
131been included for use in other modules, and provides the necessary
130modules are required for operation.  A header file, 'POKEY.H', has
131been included for use in other modules, and provides the necessary
132132function prototypes.  I've attempted to make the routines as portable as
133133possible, so the file should compile on almost any compiler with little
134or no modification.
134or no modification. 
135135
136136I have made some attempts at optimizing the routines, though I am sure
137137more optimization can be done.  They are currently only available in 'C'.
138I'll be happy to convert them to assembly language if desired.  Please feel
138I'll be happy to convert them to assembly language if desired.  Please feel
139139free to send me e-mail at rfries@tcmail.frco.com.
140140
141The routines are easy to use.  Detailed descriptions on the function calls
141The routines are easy to use.  Detailed descriptions on the function calls   
142142are listed below.
143143
144144The POKEY.C module can be compiled in a 32-bit or 16-bit environment.
r245596r245597
150150GENERAL OVERVIEW
151151----------------
152152
153On start-up of the system, a single call should be made to Pokey_sound_init.
153On start-up of the system, a single call should be made to Pokey_sound_init. 
154154This routine will prepare the structures for sound output.  This routine
155155can be called again if necessary during warm-start or other reset.
156156
157Once in the main loop, there are two other functions that will be used.
157Once in the main loop, there are two other functions that will be used. 
158158Whenever the system needs to write to either the AUDC or AUDF values,
159a call should be made to the Update_pokey_sound routine.  This routine will
159a call should be made to the Update_pokey_sound routine.  This routine will
160160take care of updating the internal registers.  It will pre-calculate several
161161values to help with optimization.
162162
163The only other routine that is called is the Pokey_process function.  This
163The only other routine that is called is the Pokey_process function.  This
164164function will fill a audio buffer with a specified number of bytes.  This
165165function should be called whenever a new audio buffer is required.
166166
r245596r245597
176176-----------------------------------------------------------------------
177177
178178This function initializes the structures used by the PokeySound routines.
179This function takes three parameters: the main clock frequency, the
179This function takes three parameters: the main clock frequency, the
180180playback frequency and the number of POKEY chips to emulate.
181181
182182The maximum number of POKEY chips emulated is configured at compile time.
183Though the maximum number of chips can be configured as one, the PokeySound
1841.2 routines are recommended if only a single chip is to be emulated since
185they have will provide better performance.
183Though the maximum number of chips can be configured as one, the PokeySound
1841.2 routines are recommended if only a single chip is to be emulated since
185they have will provide better performance. 
186186
187The main clock frequency is the frequency of the 1.79MHz source clock.
188To provide exact results, freq17 should be set equal to 1789790 Hz.  As an
189alternative, freq17 can be set to an approximate frequency of 1787520 Hz.
190Using this approximate frequency will reduce aliasing and thus produce a
187The main clock frequency is the frequency of the 1.79MHz source clock. 
188To provide exact results, freq17 should be set equal to 1789790 Hz.  As an
189alternative, freq17 can be set to an approximate frequency of 1787520 Hz. 
190Using this approximate frequency will reduce aliasing and thus produce a
191191clearer output signal.
192192
193193A constant has been defined for both of these values for your convenience.
194194The names are FREQ_17_EXACT and FREQ_17_APPROX.
195195
196The playback frequency is the frequency of the sound playback (the frequency
197used by the sound card).  For best results, the playback frequency should
196The playback frequency is the frequency of the sound playback (the frequency
197used by the sound card).  For best results, the playback frequency should
198198be an even division of the main clock frequency.  Since most of the sounds
199will be generated using the 64kHz clock, I also recommend making the
199will be generated using the 64kHz clock, I also recommend making the
200200playback frequency an even division of the 64kHz clock.
201201
202202The 64kHz clock is exactly equal to the main clock divided by 28.  For
203203the playback frequency, I recommend one of the following values:
204204
2051) FREQ_17_APPROX / (28*1), which is equal to 63840.  Of course, most sound
2051) FREQ_17_APPROX / (28*1), which is equal to 63840.  Of course, most sound
206206   cards can't reproduce this frequency.
207207
2082082) FREQ_17_APPROX / (28*2), which is equal to 31920.  All of the newer cards
209   will support this frequency.
209   will support this frequency. 
210210
2113) FREQ_17_APPROX / (28*3), which is equal to 21280.  All of the SB
2113) FREQ_17_APPROX / (28*3), which is equal to 21280.  All of the SB
212212   compatibles should support this frequency.
213213
2142144) FREQ_17_APPROX / (28*4), which is equal to 15960.  This may be the
215215   best choice, as it offers good sound reproduction with good performance.
216
216 
217217Of course, these options also assume you are using the approximate
218218frequency for the main clock as well.  Any of these choices will offer the
219219best results when the main 64kHz clock is used, reasonable results when the
r245596r245597
231231
232232This function should be called each time an AUDC, AUDF or AUDCTL value
233233changes.  This function takes four parameters: the address to change,
234the new value, the chip to be updated, and the gain to be used.
234the new value, the chip to be updated, and the gain to be used. 
235235The lower four bits of the address should be one of the following values:
236236
237237                  Addr     Description
r245596r245597
250250the address are used.  Note that this routine can no longer be called with
251251any address as it will affect the operation of the specified chip.
252252
253The routine pre-calculates several values that are needed by the
253The routine pre-calculates several values that are needed by the
254254processing function.  This is done to optimize performance.
255255
256The output will be amplified (multiplied) by gain/16 (previous releases had
257a built in multiplier of 4, which calculates to a gain value of 64).  If the
258output exceeds the maximum value after then gain and clipping is enabled,
256The output will be amplified (multiplied) by gain/16 (previous releases had
257a built in multiplier of 4, which calculates to a gain value of 64).  If the
258output exceeds the maximum value after then gain and clipping is enabled,
259259the output will be limited to reduce distortion.
260260
261261The best value for the gain depends on the number of POKEYs emulated and
262the maximum volume used.  The maximum possible output for each channel is 15,
263making the maximum possible output for a single chip to be 60.  Assuming all
264four channels on the chip are used at full volume, a gain of 64 can be used
265without distortion.  If 4 POKEY chips are emulated and all 16 channels are
266used at full volume, the gain must be no more than 16 to prevent distortion.
267Of course, if only a few of the 16 channels are used or not all channels are
262the maximum volume used.  The maximum possible output for each channel is 15,
263making the maximum possible output for a single chip to be 60.  Assuming all
264four channels on the chip are used at full volume, a gain of 64 can be used
265without distortion.  If 4 POKEY chips are emulated and all 16 channels are
266used at full volume, the gain must be no more than 16 to prevent distortion. 
267Of course, if only a few of the 16 channels are used or not all channels are
268268used at full volume, a larger gain can be used.
269269
270270To enable clipping, define the logical CLIP before compiling.  This is the
271271default mode of operation as it has already been included in the POKEY.H file.
272Note that this is only recommended if clipping is necessary since it will
272Note that this is only recommended if clipping is necessary since it will
273273impact the performance.
274274
275275This function has no return value (void).
r245596r245597
280280
281281This function calculates and fills a buffer with unsigned 8-bit mono audio.
282282This function takes two parameters: a pointer to the buffer to fill and
283the size of the buffer (limited to 65535).  This function fills the
283the size of the buffer (limited to 65535).  This function fills the
284284buffer based on the requested size and returns.  It automatically
285285updates the pointers for the next call, so subsequent calls to this function
286286will provide a continuous stream of data.
r245596r245597
292292
293293Selecting the correct buffer size is a careful balance.  Selecting a buffer
294294size that is too small will produce noticeable clicks in the output, though
295selecting a size that is too large will cause a poor response time and
295selecting a size that is too large will cause a poor response time and
296296possible delays in the system when the new buffer is filled.
297297
298298This function has no return value (void).
r245596r245597
303303
304304PokeySound is Copyright(c) 1996-1997 by Ron Fries
305305
306This library is free software; you can redistribute it and/or modify it under
307the terms of version 2 of the GNU Library General Public License as published
306This library is free software; you can redistribute it and/or modify it under
307the terms of version 2 of the GNU Library General Public License as published
308308by the Free Software Foundation.
309309
310This library is distributed in the hope that it will be useful, but WITHOUT
311ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
312FOR A PARTICULAR PURPOSE.  See the GNU Library General Public License for more
310This library is distributed in the hope that it will be useful, but WITHOUT
311ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
312FOR A PARTICULAR PURPOSE.  See the GNU Library General Public License for more
313313details.
314314
315To obtain a copy of the GNU Library General Public License, write to the Free
315To obtain a copy of the GNU Library General Public License, write to the Free
316316Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
317317
318Any permitted reproduction of these routines, in whole or in part, must bear
319this legend.
318Any permitted reproduction of these routines, in whole or in part, must bear
319this legend. 
trunk/src/emu/sound/tms36xx.c
r245596r245597
123123/*
124124 * The theme from Phoenix, a sad little tune.
125125 * Gerald Coy:
126 *   The starting song from Phoenix comes from an old French movie and
126 *   The starting song from Phoenix is coming from a old french movie and
127127 *   it's called : "Jeux interdits" which means "unallowed games"  ;-)
128128 * Mirko Buffoni:
129 *   It's called "Sogni proibiti" in Italian, by Anonymous.
129 *   It's called "Sogni proibiti" in italian, by Anonymous.
130130 * Magic*:
131131 *   This song is a classical piece called "ESTUDIO" from M.A.Robira.
132132 */
trunk/src/emu/sound/tms5220.c
r245596r245597
406406   save_item(NAME(m_digital_select));
407407
408408   save_item(NAME(m_io_ready));
409
409   
410410   save_item(NAME(m_true_timing));
411411
412412   save_item(NAME(m_rs_ws));
trunk/src/mame/drivers/alpha68k.c
r245596r245597
110110  - There is no Dip Switch to determine if you are allowed to continue a game
111111    or not, so you ALWAYS have the possibility to continue a game.
112112
113
113
114114Stephh's log (2002.06.19) :
115115
116116  - Create macros for players inputs and "Coinage" Dip Switch
trunk/src/mame/drivers/gambl186.c
r245596r245597
2121U300 Nec D7759GC (10Mhz xtal near it)
2222
2323TODO:
24- No idea about how to surpass the "No Funzione" (sic) screen. According to the bad settings almost
24- No idea about how to surpass the "No Funzione" (sic) screen. According to the bad settings almost
2525  surely it wants EEPROM hooked up (i/o at 0x680/0x682?)
2626
2727*/
r245596r245597
4141      m_maincpu(*this, "maincpu") { }
4242
4343   required_device<cpu_device> m_maincpu;
44
44   
4545   DECLARE_READ16_MEMBER(unk_r);
4646};
4747
r245596r245597
109109   PORT_BIT( 0x0400, IP_ACTIVE_LOW, IPT_POKER_HOLD3 )
110110   PORT_BIT( 0x0800, IP_ACTIVE_LOW, IPT_POKER_HOLD4 )
111111   PORT_BIT( 0x1000, IP_ACTIVE_LOW, IPT_POKER_HOLD5 )
112   PORT_BIT( 0x2000, IP_ACTIVE_LOW, IPT_START1 )
112   PORT_BIT( 0x2000, IP_ACTIVE_LOW, IPT_START1 )
113113   PORT_DIPNAME( 0x4000, 0x4000, DEF_STR( Unknown ) )
114114   PORT_DIPSETTING(    0x4000, DEF_STR( Off ) )
115115   PORT_DIPSETTING(    0x0000, DEF_STR( On ) )
r245596r245597
251251   PORT_DIPNAME( 0x8000, 0x8000, DEF_STR( Unknown ) )
252252   PORT_DIPSETTING(    0x8000, DEF_STR( Off ) )
253253   PORT_DIPSETTING(    0x0000, DEF_STR( On ) )
254
254   
255255   PORT_START("DSW1")
256256   PORT_DIPNAME( 0x01, 0x01, "1-1" )
257257   PORT_DIPSETTING(    0x01, DEF_STR( Off ) )
trunk/src/mame/drivers/goldnpkr.c
r245596r245597
2020  * Jack Potten's Poker (set 6),                      198?, Bootleg.
2121  * Jack Potten's Poker (set 7, Royale GFX),          198?, Bootleg.
2222  * Good Luck,                                        198?, Unknown.
23  * Super Double (French),                            198?, Karateco.
23  * Super Double (french),                            198?, Karateco.
2424  * Jack Potten's Poker (NGold, set 1),               198?, Unknown.
2525  * Jack Potten's Poker (NGold, set 2),               198?, Unknown.
2626  * Jack Potten's Poker (NGold, set 3),               198?, Unknown.
r245596r245597
104104  * Falcons Wild - World Wide Poker (VK set 1),       1990, Video Klein.
105105  * Falcons Wild - World Wide Poker (VK set 2),       1990, Video Klein.
106106  * Falcons Wild - Wild Card 1991,                    1991, TVG.
107  * PlayMan Poker (German),                           1981, PM / Beck Elektronik.
107  * PlayMan Poker (german),                           1981, PM / Beck Elektronik.
108108  * Super Loco 93 (Spanish, set 1),                   1993, Unknown.
109109  * Super Loco 93 (Spanish, set 2),                   1993, Unknown.
110110  * Royale (set 1),                                   198?, Unknown.
r245596r245597
119119  * Genie,                                            198?, Video Fun Games Ltd.
120120  * Silver Game,                                      1983, Unknown.
121121  * Casino Poker (Ver PM86LO-35-5, German),           1987, PM / Beck Elektronik.
122  * "Unknown French poker game",                      198?, Unknown.
122  * "Unknown french poker game",                      198?, Unknown.
123123  * "Unknown encrypted poker game",                   198?, Unknown.
124124  * Bonne Chance! (Golden Poker prequel hardware),    198?, Unknown.
125125  * Mundial/Mondial (Italian/French),                 1987, Unknown.
r245596r245597
215215  Maybe some settings can enable the use of them...
216216
217217
218  * Witch Card (Spanish sets)
218  * Witch Card (spanish sets)
219219
220220  This game is derivated from Golden Poker.
221221
r245596r245597
336336  The game has 2 service switches/buttons:
337337  One for settings, and other just for bookkeeping.
338338
339  Here the original Service Card (in German), and the English translation:
339  Here the original Service Card (in german), and the english translation:
340340   _____________________________________     _____________________________________
341341  |                                     |   |                                     |
342342  |          SERVICE ANLEITUNG          |   |           SERVICE MANUAL            |
r245596r245597
772772  - Fixed the visible area based on M6845 registers.
773773  - Improved the lamps layouts to be more realistic.
774774  - Added Good Luck (potten's poker hybrid running in goldnpkr hardware).
775  - Added Buena Suerte (Spanish) x 2 sets.
775  - Added Buena Suerte (spanish) x 2 sets.
776776  - Added set Royale.
777  - Added Witch Card and Spanish variants.
778  - Added Super Loco 93 (Spanish) x 2 sets.
777  - Added Witch Card and spanish variants.
778  - Added Super Loco 93 (spanish) x 2 sets.
779779  - Renamed set goldnpkc to pottnpkr (parent Jack Potten's Poker set).
780780  - Renamed set jokerpkr to potnpkra, since is another Jack Potten's Poker set.
781781  - Added other 2 clones of Jack Potten's Poker.
r245596r245597
817817  [2009-09-05]
818818
819819  - Added 2 new Witch Card sets.
820  - Reworked inputs for Witch Card (German set 1).
821  - Created new inputs for Witch Card (English, witch game, lamps).
820  - Reworked inputs for Witch Card (german set 1).
821  - Created new inputs for Witch Card (english, witch game, lamps).
822822  - Added and connected lamps for both sets.
823823  - Added minimal bet and 50/60 Hz. switches to both sets.
824  - Added DIP switches info for Witch Card (German, set 2).
824  - Added DIP switches info for Witch Card (german, set 2).
825825
826826  - Added Genius, running in a modified Golden Poker board.
827827
r245596r245597
844844
845845  [2010-11-18]
846846
847  - Added Karateco Super Double (French)
847  - Added Karateco Super Double (french)
848848  - Extended ROM space for goldnpkr game to include the 0x2000..0x3fff range
849849
850850
r245596r245597
43624362   ROM_LOAD( "epoxy_82s129.bin",   0x0100, 0x0100, CRC(f0c012b1) SHA1(5502977404172e8c5b9fbf305581a406668ad1d9) ) /* original epoxy block PROM */
43634363ROM_END
43644364
4365/*  Witch Card (Spanish, set 1)
4365/*  Witch Card (spanish, set 1)
43664366    Unknown argentine manufacturer.
43674367*/
43684368ROM_START( witchcda )
r245596r245597
43824382   ROM_LOAD( "82s129.9c",      0x0000, 0x0100, CRC(7f31066b) SHA1(15420780ec6b2870fc4539ec3afe4f0c58eedf12) ) /* PROM dump needed */
43834383ROM_END
43844384
4385/*  Witch Card (Spanish, set 2)
4385/*  Witch Card (spanish, set 2)
43864386    Unknown argentine manufacturer.
43874387*/
43884388ROM_START( witchcdb )
r245596r245597
44024402   ROM_LOAD( "82s129.9c",      0x0000, 0x0100, CRC(7f31066b) SHA1(15420780ec6b2870fc4539ec3afe4f0c58eedf12) ) /* PROM dump needed */
44034403ROM_END
44044404
4405/*  Witch Card (English, no witch game)
4405/*  Witch Card (english, no witch game)
44064406    Hack?
44074407*/
44084408ROM_START( witchcdc )
r245596r245597
44244424
44254425/***************************************
44264426
4427  Witch Card (German, WC3050, set 1 )
4427  Witch Card (german, WC3050, set 1 )
44284428
44294429  TV GAME ELEKTRONIK 1994
44304430         PROMA
r245596r245597
44774477   ROM_LOAD( "24s10_epoxy.bin",    0x0100, 0x0100, CRC(ddfd7034) SHA1(78dee69ab4ba759485ee7f00446c2d86f08cc50f) ) /* original epoxy block PROM */
44784478ROM_END
44794479
4480/*  Witch Card (English, witch game, lights)
4480/*  Witch Card (english, witch game, lights)
44814481    PCB by PM. Hybrid hardware.
44824482
44834483    Copyright 1983/84/85
r245596r245597
45394539
45404540/***************************************
45414541
4542  Witch Card (German, WC3050, set 2 )
4542  Witch Card (german, WC3050, set 2 )
45434543
45444544  TV GAME ELEKTRONIK 1994
45454545         PROMA
r245596r245597
48824882ROM_END
48834883
48844884ROM_START( bsuertel )
4885   ROM_REGION( 0x10000, "maincpu", 0 ) /* bslacer128: Buena Suerte! (portugues), English settings */
4885   ROM_REGION( 0x10000, "maincpu", 0 ) /* bslacer128: Buena Suerte! (portugues), english settings */
48864886   ROM_LOAD( "bslacer.128",    0x4000, 0x4000, CRC(edc254f4) SHA1(20e5543e59bfd67a0afec7cbeeb7000f6bba6c69) )
48874887
48884888   ROM_REGION( 0x3000, "gfx1", 0 )
r245596r245597
48994899ROM_END
49004900
49014901ROM_START( bsuertem )
4902   ROM_REGION( 0x10000, "maincpu", 0 ) /* bslacer128: Buena Suerte! (portugues), English settings, set 2*/
4902   ROM_REGION( 0x10000, "maincpu", 0 ) /* bslacer128: Buena Suerte! (portugues), english settings, set 2*/
49034903   ROM_LOAD( "bslacer.256",    0x0000, 0x8000, CRC(9f8a899a) SHA1(a1f3d0635b309d4734289b7ff48eceda69dfd3d0) )
49044904
49054905   ROM_REGION( 0x3000, "gfx1", 0 )
r245596r245597
54645464  mc6845 video chip
54655465  10mhz (?) xtal
54665466
5467  There are French strings related to the game, so maybe is
5467  There are french strings related to the game, so maybe is
54685468  a leftover, or maybe there is a unknown way to switch the
54695469  language.
54705470
r245596r245597
55445544  Unknown poker game, set 1.
55455545  198?.
55465546
5547  There are French strings related to the game into
5547  There are french strings related to the game into
55485548  the program ROM.
55495549
55505550  The dump lacks of 1 program ROM located at 17a.
r245596r245597
56065606
56075607/************************************
56085608
5609  Jolli Witch (German)
5609  Jolli Witch (german)
56105610  Epoxy CPU box.
56115611
56125612  Using the whole addressing
trunk/src/mame/drivers/m72.c
r245596r245597
337337   program.install_read_bank(0xb0000, 0xbffff, "bank1");
338338   program.install_write_handler(0xb0000, 0xb0fff, write16_delegate(FUNC(m72_state::main_mcu_w),this));
339339   membank("bank1")->configure_entry(0, m_protection_ram);
340
340   
341341   save_pointer(NAME(m_protection_ram), 0x10000/2);
342342   save_item(NAME(m_mcu_sample_latch));
343343   save_item(NAME(m_mcu_sample_addr));
r245596r245597
685685   m_maincpu->space(AS_PROGRAM).install_read_handler(0xb0ffa, 0xb0ffb, read16_delegate(FUNC(m72_state::protection_r),this));
686686   m_maincpu->space(AS_PROGRAM).install_write_handler(0xb0000, 0xb0fff, write16_delegate(FUNC(m72_state::protection_w),this));
687687   membank("bank1")->configure_entry(0, m_protection_ram);
688
688   
689689   save_pointer(NAME(m_protection_ram), 0x1000/2);
690690}
691691
trunk/src/mame/drivers/mirax.c
r245596r245597
148148   UINT32 screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
149149   void draw_tilemap(bitmap_ind16 &bitmap, const rectangle &cliprect, UINT8 draw_flag);
150150   void draw_sprites(bitmap_ind16 &bitmap, const rectangle &cliprect);
151
151   
152152   INTERRUPT_GEN_MEMBER(vblank_irq);
153153};
154154
r245596r245597
247247void mirax_state::machine_start()
248248{
249249   m_nAyCtrl = 0x00;
250
250   
251251   save_item(NAME(m_nAyCtrl));
252252   save_item(NAME(m_nmi_mask));
253253   save_item(NAME(m_flipscreen_x));
trunk/src/mame/drivers/niyanpai.c
r245596r245597
779779   /* basic machine hardware */
780780   MCFG_CPU_MODIFY("maincpu")
781781   MCFG_CPU_PROGRAM_MAP(musobana_map)
782
782   
783783   MCFG_MACHINE_START_OVERRIDE(niyanpai_state, musobana)
784784MACHINE_CONFIG_END
785785
trunk/src/mame/drivers/ppmast93.c
r245596r245597
157157
158158   tilemap_t *m_fg_tilemap;
159159   tilemap_t *m_bg_tilemap;
160
160   
161161   DECLARE_WRITE8_MEMBER(fgram_w);
162162   DECLARE_WRITE8_MEMBER(bgram_w);
163163   DECLARE_WRITE8_MEMBER(port4_w);
164164   DECLARE_WRITE8_MEMBER(sound_w);
165
165   
166166   TILE_GET_INFO_MEMBER(get_bg_tile_info);
167167   TILE_GET_INFO_MEMBER(get_fg_tile_info);
168
168   
169169   virtual void machine_start();
170170   virtual void video_start();
171
171   
172172   UINT32 screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
173173};
174174
trunk/src/mame/drivers/rmhaihai.c
r245596r245597
7171   DECLARE_MACHINE_RESET(themj);
7272
7373   UINT32 screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
74
74   
7575   TILE_GET_INFO_MEMBER(get_bg_tile_info);
7676};
7777
r245596r245597
102102{
103103   m_bg_tilemap = &machine().tilemap().create(m_gfxdecode, tilemap_get_info_delegate(FUNC(rmhaihai_state::get_bg_tile_info),this), TILEMAP_SCAN_ROWS,
104104      8, 8, 64, 32);
105
105     
106106   save_item(NAME(m_keyboard_cmd));
107107   save_item(NAME(m_gfxbank));
108108}
trunk/src/mame/drivers/seicross.c
r245596r245597
8686   m_irq_mask = data & 1;
8787
8888   /* bit 1 flips screen */
89
89   
9090   /* bit 2 resets the microcontroller */
9191   if (((m_portb & 4) == 0) && (data & 4))
9292   {
trunk/src/mame/drivers/seta.c
r245596r245597
1048110481   ROM_LOAD( "6.u6", 0x080000, 0x080000, CRC(9ad8b4b4) SHA1(b6e4cff160ae0efe6f3fd0df9a8a618957c3ce61) )
1048210482   ROM_LOAD( "7.u7", 0x100000, 0x080000, CRC(babf194a) SHA1(ef838aab2d651c10553fb87552c67f289a8ac83d) )
1048310483   ROM_LOAD( "8.u8", 0x180000, 0x080000, CRC(2db65290) SHA1(4f4d65e984fad7bb1d886de67bc50645798282bb) )
10484
10484   
1048510485   ROM_REGION( 0x200000, "gfx3", 0 ) /* Layer 2 */
1048610486   ROM_LOAD( "1.u1", 0x000000, 0x080000, CRC(30f81f99) SHA1(9c164c798c7e869e92505d9d85f06f4a1c9a9528) ) /* connects to U68 through a riser card */
1048710487   ROM_LOAD( "2.u2", 0x080000, 0x080000, CRC(3b3e0f4e) SHA1(740afe4eefea480f941dd80a03392592d8d4b084) )
1048810488   ROM_LOAD( "3.u3", 0x100000, 0x080000, CRC(c5eef1c1) SHA1(d4b3188b39bad5c7a2c7b7dbc91a79c7ee80a3a1) )
1048910489   ROM_LOAD( "4.u4", 0x180000, 0x080000, CRC(851115b6) SHA1(b8e1e22231d131085c90afcf30ff35a2866edff5) )
10490
10490   
1049110491   ROM_REGION( 0x100000, "x1snd", 0 )  /* Samples */
1049210492   ROM_LOAD( "data.u69", 0x000000, 0x080000, CRC(21e4f093) SHA1(f0420d158dc5d182e41b6fb2ea3af6baf88bacb8) )
1049310493   ROM_LOAD( "data.u70", 0x080000, 0x080000, CRC(593c3c58) SHA1(475fb530a6d23269cb0aea6e294291c7463b57a2) )
trunk/src/mame/drivers/spool99.c
r245596r245597
117117   required_shared_ptr<UINT8> m_main;
118118   required_shared_ptr<UINT8> m_vram;
119119   required_shared_ptr<UINT8> m_cram;
120
120   
121121   tilemap_t *m_sc0_tilemap;
122
122   
123123   DECLARE_WRITE8_MEMBER(vram_w);
124124   DECLARE_WRITE8_MEMBER(cram_w);
125125   DECLARE_READ8_MEMBER(spool99_io_r);
r245596r245597
127127   DECLARE_WRITE8_MEMBER(eeprom_resetline_w);
128128   DECLARE_WRITE8_MEMBER(eeprom_clockline_w);
129129   DECLARE_WRITE8_MEMBER(eeprom_dataline_w);
130
130   
131131   DECLARE_DRIVER_INIT(spool99);
132132   virtual void video_start();
133
133   
134134   UINT32 screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
135135   TILE_GET_INFO_MEMBER(get_tile_info);
136136};
trunk/src/mame/drivers/stactics.c
r245596r245597
282282   m_vert_pos = 0;
283283   m_horiz_pos = 0;
284284   *m_motor_on = 0;
285
285   
286286   save_item(NAME(m_vert_pos));
287287   save_item(NAME(m_horiz_pos));
288288}
trunk/src/mame/drivers/supdrapo.c
r245596r245597
4040     Minimal Winner Hand (Jacks or Better, Two Pair).
4141     Deal Speed (Slow, Fast).
4242     Aces Type (Normal Aces, Number 1).
43     Cards Deck Type (English cards, French cards).
43     Cards Deck Type (english cards, french cards).
4444     Max Bet (5, 10, 15, 20).
4545  - Added NVRAM support.
4646  - Reorganized and cleaned-up the driver.
trunk/src/mame/drivers/thepit.c
r245596r245597
12501250{
12511251   // Set-up the weirdest questions read ever done
12521252   m_maincpu->space(AS_PROGRAM).install_read_handler(0x4000, 0x4fff, read8_delegate(FUNC(thepit_state::rtriv_question_r),this));
1253
1253   
12541254   save_item(NAME(m_question_address));
12551255   save_item(NAME(m_question_rom));
12561256   save_item(NAME(m_remap_address));
trunk/src/mame/drivers/ttchamp.c
r245596r245597
437437         {
438438            if (m_port10 & 0x30) // this is set when moving objects are cleared, although not screen clears?
439439            {
440               /* guess: assume that bit 4 is for layer 0 and bit 5 for layer 1
441                  (according to 0x21 setted at the "Clubs League" color fade-out)
440               /* guess: assume that bit 4 is for layer 0 and bit 5 for layer 1
441                  (according to 0x21 setted at the "Clubs League" color fade-out)
442442               */
443443               if(m_port10 & 0x10)
444444                  m_videoram0[offset] = 0x0000;
r245596r245597
450450            else
451451            {
452452               UINT8 data;
453
453                             
454454               data = (src[(m_spritesaddr * 2) + 1]);
455455               //data |= vram[offset] >> 8;
456456
r245596r245597
636636   MCFG_SCREEN_PALETTE("palette")
637637
638638   MCFG_PALETTE_ADD("palette", 0x400)
639
639   
640640   MCFG_NVRAM_ADD_0FILL("backram")
641641
642642   MCFG_SPEAKER_STANDARD_MONO("mono")
trunk/src/mame/drivers/unkhorse.c
r245596r245597
4646   DECLARE_READ8_MEMBER(input_r);
4747   DECLARE_WRITE8_MEMBER(output_w);
4848   DECLARE_WRITE_LINE_MEMBER(timer_out);
49
49   
5050   virtual void machine_start();
5151   DECLARE_PALETTE_INIT(horse);
5252
trunk/src/mame/drivers/warpsped.c
r245596r245597
152152   m_text_tilemap->set_transparent_pen(0);
153153   m_starfield_tilemap = &machine().tilemap().create(m_gfxdecode, tilemap_get_info_delegate(FUNC(warpspeed_state::get_starfield_tile_info),this), TILEMAP_SCAN_ROWS, 8, 8, 32, 32);
154154   m_starfield_tilemap->mark_all_dirty();
155
155   
156156   save_item(NAME(m_regs));
157157}
158158
trunk/src/mame/etc/template_readme.txt
r245596r245597
1The template family tree is an attempt to ease the pain to write CPUs/drivers/devices
2from scratch (especially for smaller projects).
1The template family tree is an attempt to ease the pain to write CPUs/drivers/devices
2from scratch (especially for smaller projects).
33
44===
55Usage:
trunk/src/mame/includes/bigstrkb.h
r245596r245597
3131   DECLARE_WRITE16_MEMBER(videoram_w);
3232   DECLARE_WRITE16_MEMBER(videoram2_w);
3333   DECLARE_WRITE16_MEMBER(videoram3_w);
34
34   
3535   TILEMAP_MAPPER_MEMBER(bg_scan);
3636   TILE_GET_INFO_MEMBER(get_tile_info);
3737   TILE_GET_INFO_MEMBER(get_tile2_info);
3838   TILE_GET_INFO_MEMBER(get_tile3_info);
39
39   
4040   virtual void video_start();
41
41   
4242   UINT32 screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
4343   void draw_sprites(bitmap_ind16 &bitmap, const rectangle &cliprect );
4444};
trunk/src/mame/includes/m107.h
r245596r245597
5858   DECLARE_WRITE16_MEMBER(spritebuffer_w);
5959
6060   TILE_GET_INFO_MEMBER(get_pf_tile_info);
61
61   
6262   TIMER_DEVICE_CALLBACK_MEMBER(scanline_interrupt);
6363
6464   DECLARE_DRIVER_INIT(firebarr);
trunk/src/mame/includes/m72.h
r245596r245597
6767
6868   // majtitle specific
6969   int m_majtitle_rowscroll;
70
70   
7171   // m72_i8751 specific
7272   UINT8 m_mcu_snd_cmd_latch;
7373   UINT8 m_mcu_sample_latch;
7474   UINT32 m_mcu_sample_addr;
75
75   
7676   // common
7777   DECLARE_READ16_MEMBER(palette1_r);
7878   DECLARE_READ16_MEMBER(palette2_r);
r245596r245597
8282   DECLARE_WRITE16_MEMBER(videoram2_w);
8383   DECLARE_READ16_MEMBER(soundram_r);
8484   DECLARE_WRITE16_MEMBER(soundram_w);
85
85   
8686   // m72_i8751 specific
8787   DECLARE_WRITE16_MEMBER(main_mcu_sound_w);
8888   DECLARE_WRITE16_MEMBER(main_mcu_w);
r245596r245597
118118   DECLARE_READ16_MEMBER(poundfor_trackball_r);
119119   DECLARE_WRITE16_MEMBER(rtype2_port02_w);
120120   DECLARE_WRITE16_MEMBER(majtitle_gfx_ctrl_w);
121
121   
122122   TILE_GET_INFO_MEMBER(get_bg_tile_info);
123123   TILE_GET_INFO_MEMBER(get_fg_tile_info);
124124   TILE_GET_INFO_MEMBER(hharry_get_bg_tile_info);
125125   TILE_GET_INFO_MEMBER(rtype2_get_bg_tile_info);
126126   TILE_GET_INFO_MEMBER(rtype2_get_fg_tile_info);
127127   TILEMAP_MAPPER_MEMBER(majtitle_scan_rows);
128
128   
129129   void machine_start();
130130   void machine_reset();
131131   DECLARE_VIDEO_START(m72);
r245596r245597
147147   DECLARE_DRIVER_INIT(nspirit);
148148   DECLARE_DRIVER_INIT(loht);
149149   DECLARE_DRIVER_INIT(imgfight);
150
150   
151151   INTERRUPT_GEN_MEMBER(mcu_int);
152152   INTERRUPT_GEN_MEMBER(fake_nmi);
153153   TIMER_CALLBACK_MEMBER(synch_callback);
154154   TIMER_CALLBACK_MEMBER(scanline_interrupt);
155155   TIMER_CALLBACK_MEMBER(kengo_scanline_interrupt);
156156   TIMER_CALLBACK_MEMBER(delayed_ram16_w);
157
158
157   
158   
159159   UINT32 screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
160160   UINT32 screen_update_majtitle(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
161161   inline void get_tile_info(tile_data &tileinfo,int tile_index,const UINT16 *vram,int gfxnum);
trunk/src/mame/includes/mainsnk.h
r245596r245597
2424   tilemap_t *m_bg_tilemap;
2525   int m_sound_cpu_busy;
2626   UINT32 m_bg_tile_offset;
27
27   
2828   DECLARE_WRITE8_MEMBER(sound_command_w);
2929   DECLARE_READ8_MEMBER(sound_ack_r);
3030   DECLARE_WRITE8_MEMBER(c600_w);
3131   DECLARE_WRITE8_MEMBER(fgram_w);
3232   DECLARE_WRITE8_MEMBER(bgram_w);
33
33   
3434   DECLARE_CUSTOM_INPUT_MEMBER(sound_r);
35
35   
3636   TILEMAP_MAPPER_MEMBER(marvins_tx_scan_cols);
3737   TILE_GET_INFO_MEMBER(get_tx_tile_info);
3838   TILE_GET_INFO_MEMBER(get_bg_tile_info);
39
39   
4040   virtual void machine_start();
4141   virtual void video_start();
4242   DECLARE_PALETTE_INIT(mainsnk);
43
43   
4444   UINT32 screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
4545   void draw_sprites(bitmap_ind16 &bitmap, const rectangle &cliprect, int scrollx, int scrolly );
4646};
trunk/src/mame/includes/n64.h
r245596r245597
346346                                        216,208,192,176,160,144,128,112};
347347const unsigned int ddZoneTrackSize[16] = {158,158,149,149,149,149,149,114,
348348                                          158,158,149,149,149,149,149,114};
349const unsigned int ddStartOffset[16] =
349const unsigned int ddStartOffset[16] =
350350   {0x0,0x5F15E0,0xB79D00,0x10801A0,0x1523720,0x1963D80,0x1D414C0,0x20BBCE0,
351351    0x23196E0,0x28A1E00,0x2DF5DC0,0x3299340,0x36D99A0,0x3AB70E0,0x3E31900,0x4149200};
352352
trunk/src/mame/includes/niyanpai.h
r245596r245597
5151   UINT8 *m_clut[VRAM_MAX];
5252   int m_flipscreen_old[VRAM_MAX];
5353   emu_timer *m_blitter_timer;
54
54   
5555   // musobana and derived machine configs
5656   int m_musobana_inputport;
5757   int m_musobana_outcoin_flag;
5858   UINT8 m_motor_on;
59
59   
6060   // common
6161   DECLARE_WRITE8_MEMBER(soundbank_w);
6262   DECLARE_WRITE8_MEMBER(soundlatch_clear_w);
r245596r245597
7676   DECLARE_WRITE8_MEMBER(clutsel_1_w);
7777   DECLARE_WRITE8_MEMBER(clutsel_2_w);
7878   DECLARE_WRITE16_MEMBER(tmp68301_parallel_port_w);
79
79   
8080   // musobana and derived machine configs
8181   DECLARE_READ16_MEMBER(musobana_inputport_0_r);
8282   DECLARE_WRITE16_MEMBER(musobana_inputport_w);
trunk/src/mame/includes/powerins.h
r245596r245597
4141   TILE_GET_INFO_MEMBER(get_tile_info_0);
4242   TILE_GET_INFO_MEMBER(get_tile_info_1);
4343   TILEMAP_MAPPER_MEMBER(get_memory_offset_0);
44
44   
4545   virtual void video_start();
46
46   
4747   UINT32 screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
4848   void draw_sprites(bitmap_ind16 &bitmap,const rectangle &cliprect);
4949};
trunk/src/mame/includes/stactics.h
r245596r245597
3232   required_shared_ptr<UINT8> m_videoram_d;
3333   required_shared_ptr<UINT8> m_videoram_e;
3434   required_shared_ptr<UINT8> m_videoram_f;
35
35   
3636   /* machine state */
3737   int    m_vert_pos;
3838   int    m_horiz_pos;
39
39   
4040   /* video state */
4141   UINT8  m_y_scroll_d;
4242   UINT8  m_y_scroll_e;
trunk/src/mame/includes/thepit.h
r245596r245597
3939   DECLARE_WRITE8_MEMBER(flip_screen_x_w);
4040   DECLARE_WRITE8_MEMBER(flip_screen_y_w);
4141   DECLARE_READ8_MEMBER(input_port_0_r);
42
42   
4343   DECLARE_READ8_MEMBER(intrepid_colorram_mirror_r);
4444   DECLARE_WRITE8_MEMBER(intrepid_graphics_bank_w);
45
45   
4646   DECLARE_READ8_MEMBER(rtriv_question_r);
4747
4848   TILE_GET_INFO_MEMBER(solid_get_tile_info);
r245596r245597
5757   UINT32 screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
5858   UINT32 screen_update_desertdan(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
5959   void draw_sprites(bitmap_ind16 &bitmap, const rectangle &cliprect, int priority_to_draw);
60
60   
6161   INTERRUPT_GEN_MEMBER(vblank_irq);
6262};
trunk/src/mame/includes/tunhunt.h
r245596r245597
2525   UINT8 m_control;
2626   tilemap_t *m_fg_tilemap;
2727   bitmap_ind16 m_tmpbitmap;
28
28   
2929   DECLARE_WRITE8_MEMBER(control_w);
3030   DECLARE_READ8_MEMBER(button_r);
3131   DECLARE_WRITE8_MEMBER(videoram_w);
r245596r245597
3434   DECLARE_READ8_MEMBER(dsw2_2r);
3535   DECLARE_READ8_MEMBER(dsw2_3r);
3636   DECLARE_READ8_MEMBER(dsw2_4r);
37
37   
3838   TILE_GET_INFO_MEMBER(get_fg_tile_info);
3939
4040   virtual void video_start();
trunk/src/mame/machine/cps2crpt.c
r245596r245597
899899   { "sfz2alj",  { 0x99450c88,0xa00a2c4d }, 0x100000 },    // 0C80 8E73 9110  cmpi.l  #$8E739110,D0
900900   { "sfz2alh",  { 0x95f15b7c,0x200c08c6 }, 0x100000 },    // 0C80 8E73 9110  cmpi.l  #$8E739110,D0
901901   { "sfz2alb",  { 0x73cd4a28,0xff83af1c }, 0x100000 },    // 0C80 8E73 9110  cmpi.l  #$8E739110,D0
902   { "spf2t",    { 0xdde26f09,0x55821ee7 }, 0x040000 },    // 0C80 3039 9819  cmpi.l  #$30399819,D0
902   { "spf2t",    { 0xdde26f09,0x55821ee7 }, 0x040000 },    // 0C80 3039 9819  cmpi.l  #$30399819,D0   
903903   { "spf2tu",   { 0x706a8750,0x7d0fc185 }, 0x040000 },    // 0C80 3039 9819  cmpi.l  #$30399819,D0
904904   { "spf2xj",   { 0xb12c835a,0xe90976ff }, 0x040000 },    // 0C80 3039 9819  cmpi.l  #$30399819,D0
905905   { "spf2ta",   { 0x9c48e1ab,0xd60f34fb }, 0x040000 },    // 0C80 3039 9819  cmpi.l  #$30399819,D0
trunk/src/mame/video/m107.c
r245596r245597
141141   }
142142
143143   m_buffered_spriteram = auto_alloc_array_clear(machine(), UINT16, 0x1000/2);
144
144   
145145   save_item(NAME(m_sprite_display));
146146   save_item(NAME(m_raster_irq_position));
147147   save_item(NAME(m_control));
148148   save_pointer(NAME(m_buffered_spriteram), 0x1000/2);
149
149   
150150   for (int i = 0; i < 4; i++)
151151   {
152152      save_item(NAME(m_pf_layer[i].vram_base), i);
trunk/src/mame/video/m72.c
r245596r245597
178178   m_bg_tilemap->set_scrolldx(6,0);
179179   m_fg_tilemap->set_scrolldy(-128,-128);
180180   m_bg_tilemap->set_scrolldy(-128,-128);
181
181   
182182   save_item(NAME(m_prev));
183183   save_item(NAME(m_diff));
184184}
trunk/src/mame/video/mainsnk.c
r245596r245597
7676
7777   m_bg_tilemap->set_scrolldx(16, 16);
7878   m_bg_tilemap->set_scrolldy(8,  8);
79
79   
8080   save_item(NAME(m_bg_tile_offset));
8181}
8282
trunk/src/mame/video/niyanpai.c
r245596r245597
371371   m_clut[2] = auto_alloc_array(machine(), UINT8, 0x1000);
372372   m_nb19010_busyflag = 1;
373373   m_blitter_timer = timer_alloc(TIMER_BLITTER);
374
374   
375375   save_item(NAME(m_scrollx));
376376   save_item(NAME(m_scrolly));
377377   save_item(NAME(m_blitter_destx));
trunk/src/mame/video/portrait.c
r245596r245597
6868   m_foreground = &machine().tilemap().create(m_gfxdecode, tilemap_get_info_delegate(FUNC(portrait_state::get_fg_tile_info),this), TILEMAP_SCAN_ROWS, 16, 16, 32, 32 );
6969
7070   m_foreground->set_transparent_pen(7);
71
71   
7272   save_item(NAME(m_scroll));
7373}
7474
trunk/src/mame/video/powerins.c
r245596r245597
168168   m_tilemap_1->set_scroll_rows(1);
169169   m_tilemap_1->set_scroll_cols(1);
170170   m_tilemap_1->set_transparent_pen(15);
171
171   
172172   save_item(NAME(m_tile_bank));
173173}
174174
trunk/src/mame/video/stactics.c
r245596r245597
363363   m_shot_arrive = 0;
364364   m_beam_state = 0;
365365   m_old_beam_state = 0;
366
366   
367367   save_item(NAME(m_y_scroll_d));
368368   save_item(NAME(m_y_scroll_e));
369369   save_item(NAME(m_y_scroll_f));
trunk/src/mame/video/thepit.c
r245596r245597
136136   m_dummy_tile = auto_alloc_array_clear(machine(), UINT8, 8*8);
137137
138138   m_graphics_bank = 0;    /* only used in intrepid */
139
139   
140140   save_item(NAME(m_graphics_bank));
141141   save_item(NAME(m_flip_x));
142142   save_item(NAME(m_flip_y));
trunk/src/mame/video/tunhunt.c
r245596r245597
7878
7979   m_fg_tilemap->set_transparent_pen(0);
8080   m_fg_tilemap->set_scrollx(0, 64);
81
81   
8282   save_item(NAME(m_control));
8383}
8484
trunk/src/mess/drivers/c65_old.c
r245596r245597
11/***************************************************************************
22
3    Commodore C65 home computer
3    commodore c65 home computer
44    PeT mess@utanet.at
55
66    documention
r245596r245597
256256   PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_BUTTON2 ) PORT_PLAYER(1) PORT_NAME("Mouse 1350 Button 2") PORT_CONDITION("CTRLSEL", 0x0f, EQUALS, 0x03)
257257   PORT_BIT( 0xc0, IP_ACTIVE_HIGH, IPT_UNUSED )
258258
259   /* Still to verify how many mice you were able to plug into a C64 */
259   /* Still to verify how many mices you were able to plug into a c64 */
260260   /* Only one, for now */
261261   PORT_START("JOY2_2B")
262262   PORT_BIT( 0xff, IP_ACTIVE_HIGH, IPT_UNUSED )
trunk/src/mess/drivers/elecbowl.c
r245596r245597
6969      m_display_state[5] = (m_display_state[5] & ~mask) | d;
7070   if (~m_r & 4)
7171      m_display_state[6] = (m_display_state[6] & ~mask) | d;
72
72   
7373   // digit 4 is from mux2 Q7
7474   m_display_segmask[4] = 6;
7575   m_display_state[4] = (m_display_state[6] & 0x80) ? 6 : 0;
r245596r245597
173173   lA+lB+lC,               // 7
174174   lA+lB+lC+lD+lE+lF+lG,   // 8
175175   lA+lB+lG+lF+lC+lD,      // 9
176
176   
177177   0x8a, 0x8b, 0x8c, 0x8d, 0x8e, 0x8f,
178178   0,1,2,3,4,5,6,7,        // lamp muxes select
179179   0x98, 0x99, 0x9a, 0x9b, 0x9c, 0x9d, 0x9e, 0x9f
trunk/src/mess/drivers/fidelz80.c
r245596r245597
7474PB.7 - TSI DONE line (R)
7575
7676(button rows pulled up to 5V through 2.2K resistors)
77PC.0 - button row 0, German language jumper (R)
78PC.1 - button row 1, French language jumper (R)
79PC.2 - button row 2, Spanish language jumper (R)
77PC.0 - button row 0, german language jumper (R)
78PC.1 - button row 1, french language jumper (R)
79PC.2 - button row 2, spanish language jumper (R)
8080PC.3 - button row 3, special language jumper (R)
8181PC.4 - button column A (W)
8282PC.5 - button column B (W)
r245596r245597
9090When PB.6 is pulled low, the language switches can be read.  There are four.
9191They connect to the button rows.  When enabled, the row(s) will read low if
9292the jumper is present.  English only VCC's do not have the 367 or any pads stuffed.
93The jumpers are labelled: French, German, Spanish, and special.
93The jumpers are labelled: french, german, spanish, and special.
9494
9595
9696language latch:
9797---------------
9898
9999There's an unstuffed 7474 on the board that connects to PA.6 and PA.7.  It allows
100one to latch the state of A12 to the speech ROM.  The English version has the chip
100one to latch the state of A12 to the speech ROM.  The english version has the chip
101101missing, and a jumper pulling "A12" to ground.  This line is really a negative
102102enable.
103103
104104To make the VCC multi-language, one would install the 74367 (note: it must be a 74367
105105or possibly a 74LS367.  A 74HC367 would not work since they rely on the input current
106to keep the inputs pulled up), solder a piggybacked ROM to the existing English
106to keep the inputs pulled up), solder a piggybacked ROM to the existing english
107107speech ROM, and finally install a 7474 dual flipflop.
108108
109109This way, the game can then detect which secondary language is present, and then it can
r245596r245597
569569
570570These act like another row of buttons.  It is composed of two diode locations,
571571so there's up to 4 possible configurations.  My board does not have either diode
572stuffed, so this most likely is "English".  I suspect it selects which language to use
572stuffed, so this most likely is "english".  I suspect it selects which language to use
573573for the speech synth.  Of course you need the other speech ROMs for this to function
574574properly.
575575
trunk/src/mess/drivers/hh_hmcs40.c
r245596r245597
187187            int state = active_state[y] >> x & 1;
188188            char buf1[0x10]; // lampyx
189189            char buf2[0x10]; // y.x
190
190           
191191            if (x == m_display_maxx)
192192            {
193193               // always-on if selected
r245596r245597
262262{
263263   line = line ? 1 : 0;
264264   state = state ? 1 : 0;
265
265   
266266   if (state != m_int[line])
267267   {
268268      if (machine().phase() >= MACHINE_PHASE_RESET)
r245596r245597
531531   // R0x-R6x,D0,D1: vfd matrix plate
532532   int shift = offset * 4;
533533   m_plate = (m_plate & ~(0xf << shift)) | (data << shift);
534
534   
535535   // update display
536536   UINT8 grid = BITSWAP8(m_grid,0,1,2,3,4,5,6,7);
537537   UINT32 plate = BITSWAP32(m_plate,31,30,27,0,1,2,3,4,5,6,7,8,9,10,11,24,25,26,29,28,23,22,21,20,19,18,17,16,15,14,13,12);
r245596r245597
550550      m_inp_mux = inp_mux;
551551      update_int0();
552552   }
553
553   
554554   // D8-D15: vfd matrix grid
555555   m_grid = data >> 8 & 0xff;
556
556   
557557   // D0,D1: plate 12,13 (update display there)
558558   plate_w(space, 7, data & 3);
559559}
r245596r245597
784784   // R13: speaker on
785785   if (offset == HMCS40_PORT_R1X && data & 8)
786786      m_speaker_volume = CDKONG_SPEAKER_MAX;
787
787   
788788   // R0x-R6x: vfd matrix plate
789789   int shift = offset * 4;
790790   m_plate = (m_plate & ~(0xf << shift)) | (data << shift);
r245596r245597
843843   MCFG_TIMER_DRIVER_ADD_PERIODIC("speaker_decay", cdkong_state, speaker_decay_sim, attotime::from_msec(CDKONG_SPEAKER_DECAY))
844844   MCFG_TIMER_DRIVER_ADD_PERIODIC("display_decay", hh_hmcs40_state, display_decay_tick, attotime::from_msec(1))
845845   MCFG_DEFAULT_LAYOUT(layout_hh_hmcs40_test)
846
846   
847847   /* no video! */
848848
849849   /* sound hardware */
r245596r245597
899899{
900900   // D0: speaker out
901901   m_speaker->level_w(data & 1);
902
902   
903903   // D1: speaker on?
904904
905905   // D2-D15: vfd matrix plate
r245596r245597
912912   // R10,R11: input mux
913913   if (offset == HMCS40_PORT_R1X)
914914      m_inp_mux = data & 3;
915
915   
916916   // R1x-R3x: vfd matrix grid
917917   int shift = (offset - HMCS40_PORT_R1X) * 4;
918918   m_grid = (m_grid & ~(0xf << shift)) | (data << shift);
r245596r245597
979979  * board label Coleco 75690
980980  * Hitachi HD38820A28/29 MCU
981981  * cyan/red VFD display Futaba DM-34Z 2A, with color overlay
982
982 
983983  known releases:
984984  - Japan: Super Pack Monster, by Gakken
985985  - USA: Pac-Man, published by Coleco (name-license from Midway)
r245596r245597
11051105  - P1 Left:  Ms. Pac-Man (default game)
11061106  - P1 Down:  Head-to-Head Ms. Pac-Man (2-player mode)
11071107  - P1 Up:    Demo
1108
1108 
11091109  BTANB note: in demo-mode, she hardly ever walks to the upper two rows
11101110
11111111  NOTE!: MESS external artwork is recommended
r245596r245597
14391439   // R0x-R6x,D8: vfd matrix plate
14401440   int shift = offset * 4;
14411441   m_plate = (m_plate & ~(0xf << shift)) | (data << shift);
1442
1442   
14431443   // update display
14441444   UINT32 plate = BITSWAP32(m_plate,31,30,24,25,26,27,28,15,14,29,13,12,11,10,9,8,7,6,5,4,3,2,1,0,16,17,18,19,20,21,22,23);
14451445   display_matrix(30, 8, plate, m_grid);
r245596r245597
15531553      m_inp_mux = inp_mux;
15541554      update_int0();
15551555   }
1556
1556   
15571557   // D7-D15: vfd matrix grid
15581558   m_grid = data >> 7 & 0x1ff;
1559
1559   
15601560   // D0-D4: more plates
15611561   m_plate = (m_plate & 0x00ffff) | (data << 16 & 0x1f0000);
15621562   prepare_display();
r245596r245597
16741674      m_inp_mux = inp_mux;
16751675      update_int1();
16761676   }
1677
1677   
16781678   // D6-D15: vfd matrix grid
16791679   m_grid = data >> 6 & 0x3ff;
1680
1680   
16811681   // D0-D3,D5: more plates
16821682   m_plate = (m_plate & 0x00ffff) | (data << 16 & 0x2f0000);
16831683   prepare_display();
trunk/src/mess/drivers/hh_pic16.c
r245596r245597
147147            int state = active_state[y] >> x & 1;
148148            char buf1[0x10]; // lampyx
149149            char buf2[0x10]; // y.x
150
150           
151151            if (x == m_display_maxx)
152152            {
153153               // always-on if selected
trunk/src/mess/drivers/hh_tms1k.c
r245596r245597
181181            int state = active_state[y] >> x & 1;
182182            char buf1[0x10]; // lampyx
183183            char buf2[0x10]; // y.x
184
184           
185185            if (x == m_display_maxx)
186186            {
187187               // always-on if selected
r245596r245597
13461346  Ideal Electronic Detective
13471347  * TMS0980NLL MP6100A (die labeled 0980B-00)
13481348  * 10-digit 7seg LED display, 1bit sound
1349
1349 
13501350  hardware (and concept) is very similar to Parker Bros Stop Thief
13511351
13521352  This is an electronic board game. It requires game cards with suspect info,
r245596r245597
16381638{
16391639   // R0-R7: input mux
16401640   m_inp_mux = data & 0xff;
1641
1641   
16421642   // R0-R9: led select
16431643   m_r = data;
16441644   prepare_display();
r245596r245597
19651965{
19661966   // R0-R3,R9,R10: input mux
19671967   m_inp_mux = (data & 0xf) | (data >> 5 & 0x30);
1968
1968   
19691969   // R4: yellow lamps
19701970   // R5: green lamps
19711971   // R6: blue lamps
19721972   // R7: red lamps
19731973   display_matrix(4, 1, data >> 4, 1);
1974
1974   
19751975   // R8: speaker out
19761976   m_speaker->level_w(data >> 8 & 1);
19771977}
trunk/src/mess/drivers/hh_ucom4.c
r245596r245597
162162            int state = active_state[y] >> x & 1;
163163            char buf1[0x10]; // lampyx
164164            char buf2[0x10]; // y.x
165
165           
166166            if (x == m_display_maxx)
167167            {
168168               // always-on if selected
trunk/src/mess/drivers/msx.c
r245596r245597
81488148COMP(1983, canonv8,    0,        0, canonv8,    msx,      driver_device, 0, "Canon", "V-8 (MSX1)", 0)
81498149COMP(1983, canonv10,   canonv20, 0, canonv10,   msx,      driver_device, 0, "Canon", "V-10 (MSX1)", 0)
81508150COMP(1983, canonv20,   0,        0, canonv20,   msx,      driver_device, 0, "Canon", "V-20 (MSX1)", 0)
8151COMP(1983, canonv20e,  canonv20, 0, canonv20,   msx,      driver_device, 0, "Canon", "V-20E (MSX1)", 0) // Different Euro keyboard layout?
8152COMP(1983, canonv20f,  canonv20, 0, canonv20,   msx,      driver_device, 0, "Canon", "V-20F (MSX1)", 0) // Different French keyboard layout?
8153COMP(1983, canonv20g,  canonv20, 0, canonv20,   msx,      driver_device, 0, "Canon", "V-20G (MSX1)", 0) // Different German keyboard layout?
8154COMP(1983, canonv20s,  canonv20, 0, canonv20,   msx,      driver_device, 0, "Canon", "V-20S (MSX1)", 0) // Different Spanish keyboard layout?
8151COMP(1983, canonv20e,  canonv20, 0, canonv20,   msx,      driver_device, 0, "Canon", "V-20E (MSX1)", 0) // Different euro keyboard layout?
8152COMP(1983, canonv20f,  canonv20, 0, canonv20,   msx,      driver_device, 0, "Canon", "V-20F (MSX1)", 0) // Different french keyboard layout?
8153COMP(1983, canonv20g,  canonv20, 0, canonv20,   msx,      driver_device, 0, "Canon", "V-20G (MSX1)", 0) // Different german keyboard layout?
8154COMP(1983, canonv20s,  canonv20, 0, canonv20,   msx,      driver_device, 0, "Canon", "V-20S (MSX1)", 0) // Different spanish keyboard layout?
81558155COMP(1984, mx10,       0,        0, mx10,       msx,      driver_device, 0, "Casio", "MX-10 (MSX1)", 0)
81568156COMP(1984, mx101,      mx10,     0, mx101,      msx,      driver_device, 0, "Casio", "MX-101 (MSX1)", 0)
81578157COMP(1984, mx15,       mx10,     0, mx15,       msx,      driver_device, 0, "Casio", "MX-15 (MSX1)", 0)
trunk/src/mess/drivers/pc88va.c
r245596r245597
18331833   MCFG_AM9517A_IN_MEMR_CB(READ8(pc88va_state, dma_memr_cb))
18341834   MCFG_AM9517A_OUT_MEMW_CB(WRITE8(pc88va_state, dma_memw_cb))
18351835
1836   
18361837   MCFG_UPD765A_ADD("upd765", false, true)
18371838   MCFG_UPD765_INTRQ_CALLBACK(WRITELINE(pc88va_state, fdc_irq))
18381839   MCFG_UPD765_INTRQ_CALLBACK(WRITELINE(pc88va_state, fdc_drq))
trunk/src/mess/drivers/ticalc1x.c
r245596r245597
8585   // exponent sign is from R10 O1, and R10 itself only uses segment G
8686   m_display_state[11] = m_display_state[10] << 5 & 0x40;
8787   m_display_state[10] &= 0x40;
88
88   
8989   set_display_size(8, 12);
9090   display_update();
9191}
r245596r245597
651651  TI Little Professor (1978 version)
652652  * TMS1990 MCU labeled TMC1993NL. die labeled 1990C-c3C
653653  * 9-digit 7seg LED display(one custom digit)
654
654 
655655  1978 re-release, with on/off and level select on buttons instead of
656656  switches. The casing was slightly revised in 1980 again, but same rom.
657657
trunk/src/mess/drivers/tispeak.c
r245596r245597
338338{
339339   hh_tms1k_state::machine_start();
340340   memset(m_display_segmask, ~0, sizeof(m_display_segmask)); // !
341
341   
342342   init_cartridge();
343343}
344344
r245596r245597
606606
607607static INPUT_PORTS_START( snread )
608608   PORT_INCLUDE( snspell )
609
609   
610610   PORT_MODIFY("IN.7")
611611   PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_KEYBOARD ) PORT_CODE(KEYCODE_3) PORT_NAME("Word Zapper")
612612   PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_KEYBOARD ) PORT_CODE(KEYCODE_4) PORT_NAME("Word Maker")
613
613   
614614   PORT_MODIFY("IN.8")
615615   PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_KEYBOARD ) PORT_CODE(KEYCODE_5) PORT_NAME("Read It")
616616   PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_KEYBOARD ) PORT_CODE(KEYCODE_6) PORT_NAME("Picture Read")
trunk/src/mess/drivers/vt100.c
r245596r245597
482482        WP keyboard, has 23-094E2 alt charset rom, 23-093E2 AVO rom.
483483 *     VT100-WY/WZ - has AVO board preinstalled, WP romset?, English
484484        WP keyboard, has 23-094E2 alt charset rom, 23-093E2 AVO rom.
485       The WP romset supports English, French, Dutch and German languages but
486        will only display text properly in the non-English languages if the
485       The WP romset supports english, french, dutch and german languages but
486        will only display text properly in the non-english languages if the
487487        23-094E2 alt charset rom AND the foreign language 23-093E2
488488        AVO rom are populated.
489489 *    VT100-NA/NB - ? romset with DECFORM keycaps
r245596r245597
557557       23-095e2,096e2,139e2,140e2 set and probably others as well)
558558 * The vt100/101/102/103/etc 23-018e2-00 character set rom at location e4 is a 24 pin 2316 mask rom with enables as such: pin 18: CS2; pin 20: /CS1; pin 21: /CS3
559559 * The optional 23-094e2-00 alternate character set rom at location e9 is a 24 pin 2316 mask rom with enables as such: pin 18: /CS2; pin 20: /CS1; pin 21: /CS3
560       Supposedly the 23-094e2 rom is meant for vt100-WC or -WF systems, (which are French Canadian and French respectively), implying that it has European language specific accented characters on it. It is probably used in all the -W* systems.
560       Supposedly the 23-094e2 rom is meant for vt100-WC or -WF systems, (which are french canadian and french respectively), implying that it has european language specific accented characters on it. It is probably used in all the -W* systems.
561561       Pin 21 can be jumpered to +5v for this socket at location e9 by removing jumper w4 and inserting jumper w5, allowing a normal 2716 eprom to be used.
562562 * The optional AVO character set roms (see below) have: pin 18: /CS2*; pin 20: /CS1; pin 21: CS3 hence they match a normal 2716
563563   *(this is marked on the image as if it was CS2 but the input is tied to gnd meaning it must be /CS2)
trunk/src/mess/machine/megacdcd.c
r245596r245597
1/* CD controller code from megacd.c, used by Sega CD / Mega CD */
1/* CD controller code from megacd.c, used by Sega Cd / Mega CD */
22
33/* todo: cleanup(!!), make more generic, unifiy implementation with NeoCD, turn into a device and move to the proper lc89510.c file
44  currently this is a bit of a mix of system specific bits, incomplete implementations etc. as well as a rather kludgy combination
r245596r245597
217217   CLEAR_CDD_RESULT
218218   UINT32 msf;
219219   CDD_STATUS &= 0xFF;
220   if(segacd.cd == NULL) // no CD is there, bail out
220   if(segacd.cd == NULL) // no cd is there, bail out
221221      return;
222222   CDD_STATUS |= SCD_STATUS;
223223   msf = lba_to_msf_alt(SCD_CURLBA+150);
r245596r245597
233233   UINT32 msf;
234234   CDD_STATUS &= 0xFF;
235235   //  UINT32 end_msf = ;
236   if(segacd.cd == NULL) // no CD is there, bail out
236   if(segacd.cd == NULL) // no cd is there, bail out
237237      return;
238238   CDD_STATUS |= SCD_STATUS;
239239   elapsedlba = SCD_CURLBA - segacd.toc->tracks[ cdrom_get_track(segacd.cd, SCD_CURLBA) ].logframeofs;
r245596r245597
248248{
249249   CLEAR_CDD_RESULT
250250   CDD_STATUS &= 0xFF;
251   if(segacd.cd == NULL) // no CD is there, bail out
251   if(segacd.cd == NULL) // no cd is there, bail out
252252      return;
253253   CDD_STATUS |= SCD_STATUS;
254254   SCD_CURTRK = cdrom_get_track(segacd.cd, SCD_CURLBA)+1;
r245596r245597
259259{
260260   CLEAR_CDD_RESULT
261261   CDD_STATUS &= 0xFF;
262   if(segacd.cd == NULL) // no CD is there, bail out
262   if(segacd.cd == NULL) // no cd is there, bail out
263263      return;
264264   CDD_STATUS |= SCD_STATUS;
265265
r245596r245597
276276{
277277   CLEAR_CDD_RESULT
278278   CDD_STATUS &= 0xFF;
279   if(segacd.cd == NULL) // no CD is there, bail out
279   if(segacd.cd == NULL) // no cd is there, bail out
280280      return;
281281   CDD_STATUS |= SCD_STATUS;
282282   CDD_MIN = 1; // first
r245596r245597
291291   int last_track = cdrom_get_last_track(segacd.cd);
292292
293293   CDD_STATUS &= 0xFF;
294   if(segacd.cd == NULL) // no CD is there, bail out
294   if(segacd.cd == NULL) // no cd is there, bail out
295295      return;
296296   CDD_STATUS |= SCD_STATUS;
297297
r245596r245597
323323   int last_track = cdrom_get_last_track(segacd.cd);
324324
325325   CDD_STATUS &= 0xFF;
326   if(segacd.cd == NULL) // no CD is there, bail out
326   if(segacd.cd == NULL) // no cd is there, bail out
327327      return;
328328   CDD_STATUS |= SCD_STATUS;
329329
r245596r245597
359359   CLEAR_CDD_RESULT
360360   UINT32 msf = getmsf_from_regs();
361361   SCD_CURLBA = msf_to_lba(msf)-150;
362   if(segacd.cd == NULL) // no CD is there, bail out
362   if(segacd.cd == NULL) // no cd is there, bail out
363363      return;
364364   UINT32 end_msf = segacd.toc->tracks[ cdrom_get_track(segacd.cd, SCD_CURLBA) + 1 ].logframeofs;
365365   SCD_CURTRK = cdrom_get_track(segacd.cd, SCD_CURLBA)+1;
r245596r245597
384384   CLEAR_CDD_RESULT
385385   UINT32 msf = getmsf_from_regs();
386386   SCD_CURLBA = msf_to_lba(msf)-150;
387   if(segacd.cd == NULL) // no CD is there, bail out
387   if(segacd.cd == NULL) // no cd is there, bail out
388388      return;
389389   SCD_CURTRK = cdrom_get_track(segacd.cd, SCD_CURLBA)+1;
390390   LC8951UpdateHeader();
r245596r245597
417417{
418418   CLEAR_CDD_RESULT
419419   STOP_CDC_READ
420   if(segacd.cd == NULL) // no CD is there, bail out
420   if(segacd.cd == NULL) // no cd is there, bail out
421421      return;
422422   SCD_CURTRK = cdrom_get_track(segacd.cd, SCD_CURLBA)+1;
423423   SCD_STATUS = CDD_PLAYINGCDDA;
trunk/src/mess/video/911_chr.h
r245596r245597
1212    I don't know how close to this standard the character sets used by the
1313    911 VDT are.
1414
15    The Japanese terminal uses 8-bit character codes.  The 128 first characters
15    The japanese terminal uses 8-bit character codes.  The 128 first characters
1616    are identical to the US character set (except that '\' is replaced by the
1717    Yen symbol), and the next 128 characters include the katakana syllabus.
1818    Kanji ideograms are not supported in this scheme.
1919
20    The Arabic terminal uses 8-bit character codes, too.  It requires
20    The arabic terminal uses 8-bit character codes, too.  It requires
2121    additional code in the TI990 OS for correct operation, as the keyboard
2222    returns codes for isolated characters (i.e. without ligatures), which need
2323    to be substituted with codes with correct context-dependent ligatures.
2424    And both OS and application programs need to support the fact that the
2525    writing direction can be either right-to-left or left-to-right, according
26    to whether the characters are Latin or Arabic.
26    to whether the characters are latin or arabic.
2727
2828    As the original ROMs have not been dumped yet, I recreated the matrices
2929    from various matrix printouts in TI documentation.
3030*/
3131/*
32    The Arabic character set is not implemented, because documentation is ambiguous
32    The arabic character set is not implemented, because documentation is ambiguous
3333    (it says there are 115 characters, but I can hardly see 80 characters in the
3434    attached table), and the character matrices are not documented.
3535*/
r245596r245597
4747   /* extra symbols for national character sets */
4848   char_defs_pound = char_defs_katakana_base+128,  /* pound sign (UK 0x23, French WP 0x23) */
4949   char_defs_yen,      /* yen sign (Japan 0x5C) */
50   char_defs_auml,     /* Latin small letter a with diaeresis (Swedish/Finish 0x7B, German 0x7B) */
51   char_defs_Auml,     /* Latin capital letter A with diaeresis (Swedish/Finish 0x5B, German 0x5B) */
52   char_defs_Aring,    /* Latin capital letter A with ring above (Swedish/Finish 0x5D, Norwegian/Danish 0x5D) */
53   char_defs_uuml,     /* Latin small letter u with diaeresis (Swedish/Finish 0x7E, German 0x7D) */
54   char_defs_aring,    /* Latin small letter a with ring above (Swedish/Finish 0x7D, Norwegian/Danish 0x7D) */
55   char_defs_Uuml,     /* Latin capital letter U with diaeresis (German 0x5D) */
56   char_defs_ouml,     /* Latin small letter o with diaeresis (German 0x7C) */
57   char_defs_Ouml,     /* Latin capital letter O with diaeresis (German 0x5C) */
58   char_defs_szlig,    /* Latin small letter sharp s (German 0x7E) */
59   char_defs_aelig,    /* Latin small letter ae (Norwegian/Danish 0x7B) */
60   char_defs_AElig,    /* Latin capital letter AE (Norwegian/Danish 0x5B) */
61   char_defs_oslash,   /* Latin small letter o with stroke (Norwegian/Danish 0x7C) */
62   char_defs_Oslash,   /* Latin capital letter O with stroke (Norwegian/Danish 0x5C) */
63   char_defs_agrave,   /* Latin small letter a with grave (French WP 0x40) */
50   char_defs_auml,     /* latin small letter a with diaeresis (Swedish/Finish 0x7B, German 0x7B) */
51   char_defs_Auml,     /* latin capital letter A with diaeresis (Swedish/Finish 0x5B, German 0x5B) */
52   char_defs_Aring,    /* latin capital letter A with ring above (Swedish/Finish 0x5D, Norwegian/Danish 0x5D) */
53   char_defs_uuml,     /* latin small letter u with diaeresis (Swedish/Finish 0x7E, German 0x7D) */
54   char_defs_aring,    /* latin small letter a with ring above (Swedish/Finish 0x7D, Norwegian/Danish 0x7D) */
55   char_defs_Uuml,     /* latin capital letter U with diaeresis (German 0x5D) */
56   char_defs_ouml,     /* latin small letter o with diaeresis (German 0x7C) */
57   char_defs_Ouml,     /* latin capital letter O with diaeresis (German 0x5C) */
58   char_defs_szlig,    /* latin small letter sharp s (German 0x7E) */
59   char_defs_aelig,    /* latin small letter ae (Norwegian/Danish 0x7B) */
60   char_defs_AElig,    /* latin capital letter AE (Norwegian/Danish 0x5B) */
61   char_defs_oslash,   /* latin small letter o with stroke (Norwegian/Danish 0x7C) */
62   char_defs_Oslash,   /* latin capital letter O with stroke (Norwegian/Danish 0x5C) */
63   char_defs_agrave,   /* latin small letter a with grave (French WP 0x40) */
6464   char_defs_deg,      /* degree sign (French WP 0x5B) */
65   char_defs_ccedil,   /* Latin small letter c with cedilla (French WP 0x5C) */
65   char_defs_ccedil,   /* latin small letter c with cedilla (French WP 0x5C) */
6666   char_defs_sect,     /* section sign (French WP 0x5D) */
67   char_defs_egrave,   /* Latin small letter e with grave (French WP 0x7B) */
68   char_defs_ugrave,   /* Latin small letter u with grave (French WP 0x7C) */
69   char_defs_eacute,   /* Latin small letter e with acute (French WP 0x7D) */
67   char_defs_egrave,   /* latin small letter e with grave (French WP 0x7B) */
68   char_defs_ugrave,   /* latin small letter u with grave (French WP 0x7C) */
69   char_defs_eacute,   /* latin small letter e with acute (French WP 0x7D) */
7070   char_defs_uml,      /* diaeresis (French WP 0x7E) */
7171
7272   char_defs_count     /* total character count */
r245596r245597
8787   {   0x23,   char_defs_pound }
8888};
8989
90/* One Japan-specific character (see below for the 128 additionnal characters) */
90/* One japan-specific character (see below for the 128 additionnal characters) */
9191static const char_override_t japanese_overrides[1] =
9292{
9393   {   0x5C,   char_defs_yen   }
9494};
9595
96/* 5 Sweden/Finland-specific characters */
96/* 5 sweden/finland-specific characters */
9797static const char_override_t swedish_overrides[/*5*/7] =
9898{
9999   {   0x7B,   char_defs_auml  },
r245596r245597
106106   {   0x7C,   char_defs_ouml  }
107107};
108108
109/* 7 German-specific characters */
109/* 7 german-specific characters */
110110static const char_override_t german_overrides[7] =
111111{
112112   {   0x5D,   char_defs_Uuml  },
r245596r245597
118118   {   0x5B,   char_defs_Auml  }   /* 945423-9701 rev. B p. 1-10 says 0x5D, but it must be a mistake */
119119};
120120
121/* 6 Norway/Denmark-specific characters */
121/* 6 norway/denmark-specific characters */
122122static const char_override_t norwegian_overrides[6] =
123123{
124124   {   0x5D,   char_defs_Aring },
r245596r245597
129129   {   0x5C,   char_defs_Oslash}
130130};
131131
132/* 9 French-specific characters (word-processing model only: the data-processing model uses
132/* 9 french-specific characters (word-processing model only: the data-processing model uses
133133the US character set, although the keyboard mapping is different from the US model) */
134134/* WARNING: I have created the character matrices from scratch, as I have no printout of
135135the original matrices. */
r245596r245597
16901690   },
16911691
16921692
1693/* 128 additional characters for Japanese terminals */
1693/* 128 additional characters for japanese terminals */
16941694   {   /* 0x80 */
16951695      0x00,
16961696      0x00,
trunk/src/mess/video/911_vdt.c
r245596r245597
8787/*
8888    Macros for model features
8989*/
90/* TRUE for Japanese and Arabic terminals, which use 8-bit charcodes and keyboard shift modes */
90/* TRUE for japanese and arabic terminals, which use 8-bit charcodes and keyboard shift modes */
9191#define USES_8BIT_CHARCODES() ((m_model == vdt911_model_Japanese) /*|| (m_model == vdt911_model_Arabic)*/)
9292/* TRUE for keyboards which have this extra key (on the left of TAB/SKIP)
9393    (Most localized keyboards have it) */
r245596r245597
541541{
542542   enum modifier_state_t
543543   {
544      /* states for Western keyboards and katakana/Arabic keyboards in romaji/Latin mode */
544      /* states for western keyboards and katakana/arabic keyboards in romaji/latin mode */
545545      lower_case = 0, upper_case, shift, control,
546      /* states for katakana/Arabic keyboards in katakana/Arabic mode */
546      /* states for katakana/arabic keyboards in katakana/arabic mode */
547547      foreign, foreign_shift,
548548      /* special value to stop repeat if the modifier state changes */
549549      special_debounce = -1
r245596r245597
568568   /* parse modifier keys */
569569   if ((USES_8BIT_CHARCODES())
570570      && ((key_buf[5] & 0x0400) || ((!(key_buf[5] & 0x0100)) && m_foreign_mode)))
571   {   /* we are in katakana/Arabic mode */
571   {   /* we are in katakana/arabic mode */
572572      m_foreign_mode = true;
573573
574574      if ((key_buf[4] & 0x0400) || (key_buf[5] & 0x0020))
r245596r245597
577577         modifier_state = foreign;
578578   }
579579   else
580   {   /* we are using a Western keyboard, or a katakana/Arabic keyboard in
581        romaji/Latin mode */
580   {   /* we are using a western keyboard, or a katakana/arabic keyboard in
581        romaji/latin mode */
582582      m_foreign_mode = false;
583583
584584      if (key_buf[3] & 0x0040)
trunk/src/osd/sdl/README_SDL20.txt
r245596r245597
1717* SDL2.0: sdlvideofps does not take -numscreens>1 into account.
1818* SDL1.3/WIN32: crashes with -rd d3d
1919* SDL1.3/WIN32: resizing does not work
20
20     
2121Build SDL 2.0 from HG
2222======================
2323
24Pull 2.0 from hg. Then
24Pull 2.0 from hg. Than
2525
2626sh autogen.sh
2727./configure --prefix=/usr/local/sdl13/ --disable-video-svga --enable-video-directfb --enable-fusionsound
28make
28make
2929[sudo] make install
3030
3131You may leave away the last two enables, if you do not want to play around with directfb - although it is lightning fast now :-)
r245596r245597
6666SDL13
6767=====
6868
69This is driver using SDL texture and line drawing support.  It supports
70-prescale, -filter and -waitvsync.  The driver determines which pixel
71formats perform best and converts textures to these pixel formats and at
72the same time performs any necessary rotation.
69This is driver using SDL texture and line drawing support. It supports
70-prescale, -filter and -waitvsync.  The driver determines which pixel
71formats perform best and converts textures to these pixel formats and at
72the same time performs any necessary rotation. 
7373
7474Basic usage examples:
7575
76X11/opengl: ./mamed -video sdl13 -rd opengl mario
77DFB/DFB:    ./mamed -video sdl13 -vd directfb -rd directfb mario
76X11/opengl: ./mamed -video sdl13 -rd opengl mario
77DFB/DFB:    ./mamed -video sdl13 -vd directfb -rd directfb mario
7878
7979The performance of the directfb driver depends on the combined
8080support of the kernel framebuffer driver and the directfb driver.
r245596r245597
9393OpenGL:
9494=======
9595
96Plain opengl does work. Anything more advanced like pbo, fbo or glsl will
96Plain opengl does work. Anything more advanced like pbo, fbo or glsl will
9797most probably not work with more than one screen.
9898
9999   ./mamed -mt -video opengl mario -nogl_pbo -nogl_vbo -nogl_glsl -numscreens 2
r245596r245597
106106Using DirectFB, the following should get you going
107107
108108   ./mamed -mt -video soft -sm yuy2 -vd directfb -rd directfb mario
109
110for accelerated blitting on the framebuffer - provided directfb supports it.
109   
110for accelerated blitting on the framebuffer - provided directfb supports it.
111111At least my Radeon R480 is supported.
112112
113113-video soft and -scale_mode (-sm)
r245596r245597
121121
122122hwbest: Rendering in software/antialiased scaling with hardware (if supported)
123123
124yv12, yv12x2, yuy2, yuy2x2:
124yv12, yv12x2, yuy2, yuy2x2:
125125Rendering in software / scaling with hardware (if supported)
126126
127127Whether these are actually hardware accelerated depends on the SDL driver
128and the hardware.  The SDL directfb driver supports all above if the hardware
129supports it.  However, only one YUV-texture per display is supported.
128and the hardware. The SDL directfb driver supports all above if the hardware
129supports it. However, only one YUV-texture per display is supported.
130130The second window consequently will get "software" YUV blitting.
131
132     
trunk/src/osd/sdl/keymaps/km-ch.txt
r245596r245597
11# Keymap file for a swiss keyboard (Linux)
22#
3#
3#
44ITEM_ID_MINUS      SDLK_QUOTE   0x14 0x27   '
55ITEM_ID_EQUALS      SDLK_CARET   0x15 0x0    ^
66ITEM_ID_Y         SDLK_z      0x1d 0x7a    z
trunk/src/osd/sdl/keymaps/km-fr.txt
r245596r245597
Previous 199869 Revisions Next


© 1997-2024 The MAME Team