Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // /usr/lib/gcc/arm-linux-gnueabihf/4.6/cc1plus -quiet -I src/burner/win32 -I src/burner/libretro -I src/burner/libretro/tchar -I src/burn -I src/burn/burner -I src/cpu -I src/burn/snd -I src/burn/devices -I src/intf -I src/intf/input -I src/intf/cd -I src/burner -I src/dep/generated -I src/cpu -I src/cpu/m6809 -I src/cpu/m6805 -I src/cpu/m6800 -I src/cpu/h6280 -I src/cpu/nec -I src/cpu/hd6309 -I src/cpu/arm7 -I src/cpu/i8039 -I src/cpu/konami -I src/cpu/m68k -I src/cpu/m6502 -I src/cpu/z80 -I src/cpu/sh2 -I src/cpu/s2650 -I src/cpu/arm -I src/dep/libs/zlib -I src/burn/drv/capcom -I src/burn/drv/dataeast -I src/burn/drv/cave -I src/burn/drv/neogeo -I src/burn/drv/psikyo -I src/burn/drv/sega -I src/burn/drv/toaplan -I src/burn/drv/taito -I src/dep/libs -I src/dep/generated-libretro -imultilib . -imultiarch arm-linux-gnueabihf -D_GNU_SOURCE -D NDEBUG -D USE_SPEEDHACKS -D __LIBRETRO__ -D __LIBRETRO_OPTIMIZATIONS__ -D LSB_FIRST -D INLINE=static inline -D SH2_INLINE=static inline -D __LIBRETRO_OPTIMIZATIONS__ src/burn/drv/dataeast/d_cninja.cpp -quiet -dumpbase d_cninja.cpp -march=armv6 -mfloat-abi=hard -mfpu=vfp -auxbase-strip src/burn/drv/dataeast/d_cninja.o -O3 -Wno-write-strings -fPIC -o - -frandom-seed=0
- # 1 "src/burn/drv/dataeast/d_cninja.cpp"
- # 1 "<built-in>"
- # 1 "<command-line>"
- # 1 "src/burn/drv/dataeast/d_cninja.cpp"
- # 1 "src/burn/tiles_generic.h" 1
- # 1 "src/burn/burnint.h" 1
- # 1 "/usr/lib/gcc/arm-linux-gnueabihf/4.6/include/stdarg.h" 1 3 4
- # 40 "/usr/lib/gcc/arm-linux-gnueabihf/4.6/include/stdarg.h" 3 4
- typedef __builtin_va_list __gnuc_va_list;
- # 102 "/usr/lib/gcc/arm-linux-gnueabihf/4.6/include/stdarg.h" 3 4
- typedef __gnuc_va_list va_list;
- # 5 "src/burn/burnint.h" 2
- # 1 "/usr/include/stdio.h" 1 3 4
- # 28 "/usr/include/stdio.h" 3 4
- # 1 "/usr/include/features.h" 1 3 4
- # 323 "/usr/include/features.h" 3 4
- # 1 "/usr/include/arm-linux-gnueabihf/bits/predefs.h" 1 3 4
- # 324 "/usr/include/features.h" 2 3 4
- # 356 "/usr/include/features.h" 3 4
- # 1 "/usr/include/arm-linux-gnueabihf/sys/cdefs.h" 1 3 4
- # 353 "/usr/include/arm-linux-gnueabihf/sys/cdefs.h" 3 4
- # 1 "/usr/include/arm-linux-gnueabihf/bits/wordsize.h" 1 3 4
- # 354 "/usr/include/arm-linux-gnueabihf/sys/cdefs.h" 2 3 4
- # 357 "/usr/include/features.h" 2 3 4
- # 388 "/usr/include/features.h" 3 4
- # 1 "/usr/include/arm-linux-gnueabihf/gnu/stubs.h" 1 3 4
- # 389 "/usr/include/features.h" 2 3 4
- # 29 "/usr/include/stdio.h" 2 3 4
- extern "C" {
- # 1 "/usr/lib/gcc/arm-linux-gnueabihf/4.6/include/stddef.h" 1 3 4
- # 212 "/usr/lib/gcc/arm-linux-gnueabihf/4.6/include/stddef.h" 3 4
- typedef unsigned int size_t;
- # 35 "/usr/include/stdio.h" 2 3 4
- # 1 "/usr/include/arm-linux-gnueabihf/bits/types.h" 1 3 4
- # 28 "/usr/include/arm-linux-gnueabihf/bits/types.h" 3 4
- # 1 "/usr/include/arm-linux-gnueabihf/bits/wordsize.h" 1 3 4
- # 29 "/usr/include/arm-linux-gnueabihf/bits/types.h" 2 3 4
- typedef unsigned char __u_char;
- typedef unsigned short int __u_short;
- typedef unsigned int __u_int;
- typedef unsigned long int __u_long;
- typedef signed char __int8_t;
- typedef unsigned char __uint8_t;
- typedef signed short int __int16_t;
- typedef unsigned short int __uint16_t;
- typedef signed int __int32_t;
- typedef unsigned int __uint32_t;
- __extension__ typedef signed long long int __int64_t;
- __extension__ typedef unsigned long long int __uint64_t;
- __extension__ typedef long long int __quad_t;
- __extension__ typedef unsigned long long int __u_quad_t;
- # 131 "/usr/include/arm-linux-gnueabihf/bits/types.h" 3 4
- # 1 "/usr/include/arm-linux-gnueabihf/bits/typesizes.h" 1 3 4
- # 132 "/usr/include/arm-linux-gnueabihf/bits/types.h" 2 3 4
- __extension__ typedef __u_quad_t __dev_t;
- __extension__ typedef unsigned int __uid_t;
- __extension__ typedef unsigned int __gid_t;
- __extension__ typedef unsigned long int __ino_t;
- __extension__ typedef __u_quad_t __ino64_t;
- __extension__ typedef unsigned int __mode_t;
- __extension__ typedef unsigned int __nlink_t;
- __extension__ typedef long int __off_t;
- __extension__ typedef __quad_t __off64_t;
- __extension__ typedef int __pid_t;
- __extension__ typedef struct { int __val[2]; } __fsid_t;
- __extension__ typedef long int __clock_t;
- __extension__ typedef unsigned long int __rlim_t;
- __extension__ typedef __u_quad_t __rlim64_t;
- __extension__ typedef unsigned int __id_t;
- __extension__ typedef long int __time_t;
- __extension__ typedef unsigned int __useconds_t;
- __extension__ typedef long int __suseconds_t;
- __extension__ typedef int __daddr_t;
- __extension__ typedef long int __swblk_t;
- __extension__ typedef int __key_t;
- __extension__ typedef int __clockid_t;
- __extension__ typedef void * __timer_t;
- __extension__ typedef long int __blksize_t;
- __extension__ typedef long int __blkcnt_t;
- __extension__ typedef __quad_t __blkcnt64_t;
- __extension__ typedef unsigned long int __fsblkcnt_t;
- __extension__ typedef __u_quad_t __fsblkcnt64_t;
- __extension__ typedef unsigned long int __fsfilcnt_t;
- __extension__ typedef __u_quad_t __fsfilcnt64_t;
- __extension__ typedef int __ssize_t;
- typedef __off64_t __loff_t;
- typedef __quad_t *__qaddr_t;
- typedef char *__caddr_t;
- __extension__ typedef int __intptr_t;
- __extension__ typedef unsigned int __socklen_t;
- # 37 "/usr/include/stdio.h" 2 3 4
- # 45 "/usr/include/stdio.h" 3 4
- struct _IO_FILE;
- typedef struct _IO_FILE FILE;
- # 65 "/usr/include/stdio.h" 3 4
- typedef struct _IO_FILE __FILE;
- # 75 "/usr/include/stdio.h" 3 4
- # 1 "/usr/include/libio.h" 1 3 4
- # 32 "/usr/include/libio.h" 3 4
- # 1 "/usr/include/_G_config.h" 1 3 4
- # 15 "/usr/include/_G_config.h" 3 4
- # 1 "/usr/lib/gcc/arm-linux-gnueabihf/4.6/include/stddef.h" 1 3 4
- # 16 "/usr/include/_G_config.h" 2 3 4
- # 1 "/usr/include/wchar.h" 1 3 4
- # 83 "/usr/include/wchar.h" 3 4
- typedef struct
- {
- int __count;
- union
- {
- unsigned int __wch;
- char __wchb[4];
- } __value;
- } __mbstate_t;
- # 21 "/usr/include/_G_config.h" 2 3 4
- typedef struct
- {
- __off_t __pos;
- __mbstate_t __state;
- } _G_fpos_t;
- typedef struct
- {
- __off64_t __pos;
- __mbstate_t __state;
- } _G_fpos64_t;
- # 53 "/usr/include/_G_config.h" 3 4
- typedef int _G_int16_t __attribute__ ((__mode__ (__HI__)));
- typedef int _G_int32_t __attribute__ ((__mode__ (__SI__)));
- typedef unsigned int _G_uint16_t __attribute__ ((__mode__ (__HI__)));
- typedef unsigned int _G_uint32_t __attribute__ ((__mode__ (__SI__)));
- # 33 "/usr/include/libio.h" 2 3 4
- # 170 "/usr/include/libio.h" 3 4
- struct _IO_jump_t; struct _IO_FILE;
- # 180 "/usr/include/libio.h" 3 4
- typedef void _IO_lock_t;
- struct _IO_marker {
- struct _IO_marker *_next;
- struct _IO_FILE *_sbuf;
- int _pos;
- # 203 "/usr/include/libio.h" 3 4
- };
- enum __codecvt_result
- {
- __codecvt_ok,
- __codecvt_partial,
- __codecvt_error,
- __codecvt_noconv
- };
- # 271 "/usr/include/libio.h" 3 4
- struct _IO_FILE {
- int _flags;
- char* _IO_read_ptr;
- char* _IO_read_end;
- char* _IO_read_base;
- char* _IO_write_base;
- char* _IO_write_ptr;
- char* _IO_write_end;
- char* _IO_buf_base;
- char* _IO_buf_end;
- char *_IO_save_base;
- char *_IO_backup_base;
- char *_IO_save_end;
- struct _IO_marker *_markers;
- struct _IO_FILE *_chain;
- int _fileno;
- int _flags2;
- __off_t _old_offset;
- unsigned short _cur_column;
- signed char _vtable_offset;
- char _shortbuf[1];
- _IO_lock_t *_lock;
- # 319 "/usr/include/libio.h" 3 4
- __off64_t _offset;
- # 328 "/usr/include/libio.h" 3 4
- void *__pad1;
- void *__pad2;
- void *__pad3;
- void *__pad4;
- size_t __pad5;
- int _mode;
- char _unused2[15 * sizeof (int) - 4 * sizeof (void *) - sizeof (size_t)];
- };
- struct _IO_FILE_plus;
- extern struct _IO_FILE_plus _IO_2_1_stdin_;
- extern struct _IO_FILE_plus _IO_2_1_stdout_;
- extern struct _IO_FILE_plus _IO_2_1_stderr_;
- # 364 "/usr/include/libio.h" 3 4
- typedef __ssize_t __io_read_fn (void *__cookie, char *__buf, size_t __nbytes);
- typedef __ssize_t __io_write_fn (void *__cookie, __const char *__buf,
- size_t __n);
- typedef int __io_seek_fn (void *__cookie, __off64_t *__pos, int __w);
- typedef int __io_close_fn (void *__cookie);
- typedef __io_read_fn cookie_read_function_t;
- typedef __io_write_fn cookie_write_function_t;
- typedef __io_seek_fn cookie_seek_function_t;
- typedef __io_close_fn cookie_close_function_t;
- typedef struct
- {
- __io_read_fn *read;
- __io_write_fn *write;
- __io_seek_fn *seek;
- __io_close_fn *close;
- } _IO_cookie_io_functions_t;
- typedef _IO_cookie_io_functions_t cookie_io_functions_t;
- struct _IO_cookie_file;
- extern void _IO_cookie_init (struct _IO_cookie_file *__cfile, int __read_write,
- void *__cookie, _IO_cookie_io_functions_t __fns);
- extern "C" {
- extern int __underflow (_IO_FILE *);
- extern int __uflow (_IO_FILE *);
- extern int __overflow (_IO_FILE *, int);
- # 460 "/usr/include/libio.h" 3 4
- extern int _IO_getc (_IO_FILE *__fp);
- extern int _IO_putc (int __c, _IO_FILE *__fp);
- extern int _IO_feof (_IO_FILE *__fp) throw ();
- extern int _IO_ferror (_IO_FILE *__fp) throw ();
- extern int _IO_peekc_locked (_IO_FILE *__fp);
- extern void _IO_flockfile (_IO_FILE *) throw ();
- extern void _IO_funlockfile (_IO_FILE *) throw ();
- extern int _IO_ftrylockfile (_IO_FILE *) throw ();
- # 490 "/usr/include/libio.h" 3 4
- extern int _IO_vfscanf (_IO_FILE * __restrict, const char * __restrict,
- __gnuc_va_list, int *__restrict);
- extern int _IO_vfprintf (_IO_FILE *__restrict, const char *__restrict,
- __gnuc_va_list);
- extern __ssize_t _IO_padn (_IO_FILE *, int, __ssize_t);
- extern size_t _IO_sgetn (_IO_FILE *, void *, size_t);
- extern __off64_t _IO_seekoff (_IO_FILE *, __off64_t, int, int);
- extern __off64_t _IO_seekpos (_IO_FILE *, __off64_t, int);
- extern void _IO_free_backup_area (_IO_FILE *) throw ();
- # 552 "/usr/include/libio.h" 3 4
- }
- # 76 "/usr/include/stdio.h" 2 3 4
- # 91 "/usr/include/stdio.h" 3 4
- typedef __off_t off_t;
- typedef __off64_t off64_t;
- typedef __ssize_t ssize_t;
- typedef _G_fpos_t fpos_t;
- typedef _G_fpos64_t fpos64_t;
- # 161 "/usr/include/stdio.h" 3 4
- # 1 "/usr/include/arm-linux-gnueabihf/bits/stdio_lim.h" 1 3 4
- # 162 "/usr/include/stdio.h" 2 3 4
- extern struct _IO_FILE *stdin;
- extern struct _IO_FILE *stdout;
- extern struct _IO_FILE *stderr;
- extern int remove (__const char *__filename) throw ();
- extern int rename (__const char *__old, __const char *__new) throw ();
- extern int renameat (int __oldfd, __const char *__old, int __newfd,
- __const char *__new) throw ();
- extern FILE *tmpfile (void) ;
- # 202 "/usr/include/stdio.h" 3 4
- extern FILE *tmpfile64 (void) ;
- extern char *tmpnam (char *__s) throw () ;
- extern char *tmpnam_r (char *__s) throw () ;
- # 224 "/usr/include/stdio.h" 3 4
- extern char *tempnam (__const char *__dir, __const char *__pfx)
- throw () __attribute__ ((__malloc__)) ;
- extern int fclose (FILE *__stream);
- extern int fflush (FILE *__stream);
- # 249 "/usr/include/stdio.h" 3 4
- extern int fflush_unlocked (FILE *__stream);
- # 259 "/usr/include/stdio.h" 3 4
- extern int fcloseall (void);
- extern FILE *fopen (__const char *__restrict __filename,
- __const char *__restrict __modes) ;
- extern FILE *freopen (__const char *__restrict __filename,
- __const char *__restrict __modes,
- FILE *__restrict __stream) ;
- # 292 "/usr/include/stdio.h" 3 4
- extern FILE *fopen64 (__const char *__restrict __filename,
- __const char *__restrict __modes) ;
- extern FILE *freopen64 (__const char *__restrict __filename,
- __const char *__restrict __modes,
- FILE *__restrict __stream) ;
- extern FILE *fdopen (int __fd, __const char *__modes) throw () ;
- extern FILE *fopencookie (void *__restrict __magic_cookie,
- __const char *__restrict __modes,
- _IO_cookie_io_functions_t __io_funcs) throw () ;
- extern FILE *fmemopen (void *__s, size_t __len, __const char *__modes)
- throw () ;
- extern FILE *open_memstream (char **__bufloc, size_t *__sizeloc) throw () ;
- extern void setbuf (FILE *__restrict __stream, char *__restrict __buf) throw ();
- extern int setvbuf (FILE *__restrict __stream, char *__restrict __buf,
- int __modes, size_t __n) throw ();
- extern void setbuffer (FILE *__restrict __stream, char *__restrict __buf,
- size_t __size) throw ();
- extern void setlinebuf (FILE *__stream) throw ();
- extern int fprintf (FILE *__restrict __stream,
- __const char *__restrict __format, ...);
- extern int printf (__const char *__restrict __format, ...);
- extern int sprintf (char *__restrict __s,
- __const char *__restrict __format, ...) throw ();
- extern int vfprintf (FILE *__restrict __s, __const char *__restrict __format,
- __gnuc_va_list __arg);
- extern int vprintf (__const char *__restrict __format, __gnuc_va_list __arg);
- extern int vsprintf (char *__restrict __s, __const char *__restrict __format,
- __gnuc_va_list __arg) throw ();
- extern int snprintf (char *__restrict __s, size_t __maxlen,
- __const char *__restrict __format, ...)
- throw () __attribute__ ((__format__ (__printf__, 3, 4)));
- extern int vsnprintf (char *__restrict __s, size_t __maxlen,
- __const char *__restrict __format, __gnuc_va_list __arg)
- throw () __attribute__ ((__format__ (__printf__, 3, 0)));
- extern int vasprintf (char **__restrict __ptr, __const char *__restrict __f,
- __gnuc_va_list __arg)
- throw () __attribute__ ((__format__ (__printf__, 2, 0))) ;
- extern int __asprintf (char **__restrict __ptr,
- __const char *__restrict __fmt, ...)
- throw () __attribute__ ((__format__ (__printf__, 2, 3))) ;
- extern int asprintf (char **__restrict __ptr,
- __const char *__restrict __fmt, ...)
- throw () __attribute__ ((__format__ (__printf__, 2, 3))) ;
- # 414 "/usr/include/stdio.h" 3 4
- extern int vdprintf (int __fd, __const char *__restrict __fmt,
- __gnuc_va_list __arg)
- __attribute__ ((__format__ (__printf__, 2, 0)));
- extern int dprintf (int __fd, __const char *__restrict __fmt, ...)
- __attribute__ ((__format__ (__printf__, 2, 3)));
- extern int fscanf (FILE *__restrict __stream,
- __const char *__restrict __format, ...) ;
- extern int scanf (__const char *__restrict __format, ...) ;
- extern int sscanf (__const char *__restrict __s,
- __const char *__restrict __format, ...) throw ();
- # 465 "/usr/include/stdio.h" 3 4
- extern int vfscanf (FILE *__restrict __s, __const char *__restrict __format,
- __gnuc_va_list __arg)
- __attribute__ ((__format__ (__scanf__, 2, 0))) ;
- extern int vscanf (__const char *__restrict __format, __gnuc_va_list __arg)
- __attribute__ ((__format__ (__scanf__, 1, 0))) ;
- extern int vsscanf (__const char *__restrict __s,
- __const char *__restrict __format, __gnuc_va_list __arg)
- throw () __attribute__ ((__format__ (__scanf__, 2, 0)));
- # 524 "/usr/include/stdio.h" 3 4
- extern int fgetc (FILE *__stream);
- extern int getc (FILE *__stream);
- extern int getchar (void);
- # 552 "/usr/include/stdio.h" 3 4
- extern int getc_unlocked (FILE *__stream);
- extern int getchar_unlocked (void);
- # 563 "/usr/include/stdio.h" 3 4
- extern int fgetc_unlocked (FILE *__stream);
- extern int fputc (int __c, FILE *__stream);
- extern int putc (int __c, FILE *__stream);
- extern int putchar (int __c);
- # 596 "/usr/include/stdio.h" 3 4
- extern int fputc_unlocked (int __c, FILE *__stream);
- extern int putc_unlocked (int __c, FILE *__stream);
- extern int putchar_unlocked (int __c);
- extern int getw (FILE *__stream);
- extern int putw (int __w, FILE *__stream);
- extern char *fgets (char *__restrict __s, int __n, FILE *__restrict __stream)
- ;
- extern char *gets (char *__s) ;
- # 642 "/usr/include/stdio.h" 3 4
- extern char *fgets_unlocked (char *__restrict __s, int __n,
- FILE *__restrict __stream) ;
- # 658 "/usr/include/stdio.h" 3 4
- extern __ssize_t __getdelim (char **__restrict __lineptr,
- size_t *__restrict __n, int __delimiter,
- FILE *__restrict __stream) ;
- extern __ssize_t getdelim (char **__restrict __lineptr,
- size_t *__restrict __n, int __delimiter,
- FILE *__restrict __stream) ;
- extern __ssize_t getline (char **__restrict __lineptr,
- size_t *__restrict __n,
- FILE *__restrict __stream) ;
- extern int fputs (__const char *__restrict __s, FILE *__restrict __stream);
- extern int puts (__const char *__s);
- extern int ungetc (int __c, FILE *__stream);
- extern size_t fread (void *__restrict __ptr, size_t __size,
- size_t __n, FILE *__restrict __stream) ;
- extern size_t fwrite (__const void *__restrict __ptr, size_t __size,
- size_t __n, FILE *__restrict __s);
- # 719 "/usr/include/stdio.h" 3 4
- extern int fputs_unlocked (__const char *__restrict __s,
- FILE *__restrict __stream);
- # 730 "/usr/include/stdio.h" 3 4
- extern size_t fread_unlocked (void *__restrict __ptr, size_t __size,
- size_t __n, FILE *__restrict __stream) ;
- extern size_t fwrite_unlocked (__const void *__restrict __ptr, size_t __size,
- size_t __n, FILE *__restrict __stream);
- extern int fseek (FILE *__stream, long int __off, int __whence);
- extern long int ftell (FILE *__stream) ;
- extern void rewind (FILE *__stream);
- # 766 "/usr/include/stdio.h" 3 4
- extern int fseeko (FILE *__stream, __off_t __off, int __whence);
- extern __off_t ftello (FILE *__stream) ;
- # 785 "/usr/include/stdio.h" 3 4
- extern int fgetpos (FILE *__restrict __stream, fpos_t *__restrict __pos);
- extern int fsetpos (FILE *__stream, __const fpos_t *__pos);
- # 808 "/usr/include/stdio.h" 3 4
- extern int fseeko64 (FILE *__stream, __off64_t __off, int __whence);
- extern __off64_t ftello64 (FILE *__stream) ;
- extern int fgetpos64 (FILE *__restrict __stream, fpos64_t *__restrict __pos);
- extern int fsetpos64 (FILE *__stream, __const fpos64_t *__pos);
- extern void clearerr (FILE *__stream) throw ();
- extern int feof (FILE *__stream) throw () ;
- extern int ferror (FILE *__stream) throw () ;
- extern void clearerr_unlocked (FILE *__stream) throw ();
- extern int feof_unlocked (FILE *__stream) throw () ;
- extern int ferror_unlocked (FILE *__stream) throw () ;
- extern void perror (__const char *__s);
- # 1 "/usr/include/arm-linux-gnueabihf/bits/sys_errlist.h" 1 3 4
- # 27 "/usr/include/arm-linux-gnueabihf/bits/sys_errlist.h" 3 4
- extern int sys_nerr;
- extern __const char *__const sys_errlist[];
- extern int _sys_nerr;
- extern __const char *__const _sys_errlist[];
- # 847 "/usr/include/stdio.h" 2 3 4
- extern int fileno (FILE *__stream) throw () ;
- extern int fileno_unlocked (FILE *__stream) throw () ;
- # 866 "/usr/include/stdio.h" 3 4
- extern FILE *popen (__const char *__command, __const char *__modes) ;
- extern int pclose (FILE *__stream);
- extern char *ctermid (char *__s) throw ();
- extern char *cuserid (char *__s);
- struct obstack;
- extern int obstack_printf (struct obstack *__restrict __obstack,
- __const char *__restrict __format, ...)
- throw () __attribute__ ((__format__ (__printf__, 2, 3)));
- extern int obstack_vprintf (struct obstack *__restrict __obstack,
- __const char *__restrict __format,
- __gnuc_va_list __args)
- throw () __attribute__ ((__format__ (__printf__, 2, 0)));
- extern void flockfile (FILE *__stream) throw ();
- extern int ftrylockfile (FILE *__stream) throw () ;
- extern void funlockfile (FILE *__stream) throw ();
- # 927 "/usr/include/stdio.h" 3 4
- # 1 "/usr/include/arm-linux-gnueabihf/bits/stdio.h" 1 3 4
- # 36 "/usr/include/arm-linux-gnueabihf/bits/stdio.h" 3 4
- extern __inline __attribute__ ((__gnu_inline__)) int
- vprintf (__const char *__restrict __fmt, __gnuc_va_list __arg)
- {
- return vfprintf (stdout, __fmt, __arg);
- }
- extern __inline __attribute__ ((__gnu_inline__)) int
- getchar (void)
- {
- return _IO_getc (stdin);
- }
- extern __inline __attribute__ ((__gnu_inline__)) int
- fgetc_unlocked (FILE *__fp)
- {
- return (__builtin_expect (((__fp)->_IO_read_ptr >= (__fp)->_IO_read_end), 0) ? __uflow (__fp) : *(unsigned char *) (__fp)->_IO_read_ptr++);
- }
- extern __inline __attribute__ ((__gnu_inline__)) int
- getc_unlocked (FILE *__fp)
- {
- return (__builtin_expect (((__fp)->_IO_read_ptr >= (__fp)->_IO_read_end), 0) ? __uflow (__fp) : *(unsigned char *) (__fp)->_IO_read_ptr++);
- }
- extern __inline __attribute__ ((__gnu_inline__)) int
- getchar_unlocked (void)
- {
- return (__builtin_expect (((stdin)->_IO_read_ptr >= (stdin)->_IO_read_end), 0) ? __uflow (stdin) : *(unsigned char *) (stdin)->_IO_read_ptr++);
- }
- extern __inline __attribute__ ((__gnu_inline__)) int
- putchar (int __c)
- {
- return _IO_putc (__c, stdout);
- }
- extern __inline __attribute__ ((__gnu_inline__)) int
- fputc_unlocked (int __c, FILE *__stream)
- {
- return (__builtin_expect (((__stream)->_IO_write_ptr >= (__stream)->_IO_write_end), 0) ? __overflow (__stream, (unsigned char) (__c)) : (unsigned char) (*(__stream)->_IO_write_ptr++ = (__c)));
- }
- extern __inline __attribute__ ((__gnu_inline__)) int
- putc_unlocked (int __c, FILE *__stream)
- {
- return (__builtin_expect (((__stream)->_IO_write_ptr >= (__stream)->_IO_write_end), 0) ? __overflow (__stream, (unsigned char) (__c)) : (unsigned char) (*(__stream)->_IO_write_ptr++ = (__c)));
- }
- extern __inline __attribute__ ((__gnu_inline__)) int
- putchar_unlocked (int __c)
- {
- return (__builtin_expect (((stdout)->_IO_write_ptr >= (stdout)->_IO_write_end), 0) ? __overflow (stdout, (unsigned char) (__c)) : (unsigned char) (*(stdout)->_IO_write_ptr++ = (__c)));
- }
- extern __inline __attribute__ ((__gnu_inline__)) __ssize_t
- getline (char **__lineptr, size_t *__n, FILE *__stream)
- {
- return __getdelim (__lineptr, __n, '\n', __stream);
- }
- extern __inline __attribute__ ((__gnu_inline__)) int
- feof_unlocked (FILE *__stream) throw ()
- {
- return (((__stream)->_flags & 0x10) != 0);
- }
- extern __inline __attribute__ ((__gnu_inline__)) int
- ferror_unlocked (FILE *__stream) throw ()
- {
- return (((__stream)->_flags & 0x20) != 0);
- }
- # 928 "/usr/include/stdio.h" 2 3 4
- # 936 "/usr/include/stdio.h" 3 4
- }
- # 6 "src/burn/burnint.h" 2
- # 1 "/usr/include/stdlib.h" 1 3 4
- # 33 "/usr/include/stdlib.h" 3 4
- # 1 "/usr/lib/gcc/arm-linux-gnueabihf/4.6/include/stddef.h" 1 3 4
- # 34 "/usr/include/stdlib.h" 2 3 4
- extern "C" {
- # 1 "/usr/include/arm-linux-gnueabihf/bits/waitflags.h" 1 3 4
- # 43 "/usr/include/stdlib.h" 2 3 4
- # 1 "/usr/include/arm-linux-gnueabihf/bits/waitstatus.h" 1 3 4
- # 65 "/usr/include/arm-linux-gnueabihf/bits/waitstatus.h" 3 4
- # 1 "/usr/include/endian.h" 1 3 4
- # 37 "/usr/include/endian.h" 3 4
- # 1 "/usr/include/arm-linux-gnueabihf/bits/endian.h" 1 3 4
- # 38 "/usr/include/endian.h" 2 3 4
- # 61 "/usr/include/endian.h" 3 4
- # 1 "/usr/include/arm-linux-gnueabihf/bits/byteswap.h" 1 3 4
- # 62 "/usr/include/endian.h" 2 3 4
- # 66 "/usr/include/arm-linux-gnueabihf/bits/waitstatus.h" 2 3 4
- union wait
- {
- int w_status;
- struct
- {
- unsigned int __w_termsig:7;
- unsigned int __w_coredump:1;
- unsigned int __w_retcode:8;
- unsigned int:16;
- } __wait_terminated;
- struct
- {
- unsigned int __w_stopval:8;
- unsigned int __w_stopsig:8;
- unsigned int:16;
- } __wait_stopped;
- };
- # 44 "/usr/include/stdlib.h" 2 3 4
- # 96 "/usr/include/stdlib.h" 3 4
- typedef struct
- {
- int quot;
- int rem;
- } div_t;
- typedef struct
- {
- long int quot;
- long int rem;
- } ldiv_t;
- __extension__ typedef struct
- {
- long long int quot;
- long long int rem;
- } lldiv_t;
- # 140 "/usr/include/stdlib.h" 3 4
- extern size_t __ctype_get_mb_cur_max (void) throw () ;
- extern double atof (__const char *__nptr)
- throw () __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))) ;
- extern int atoi (__const char *__nptr)
- throw () __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))) ;
- extern long int atol (__const char *__nptr)
- throw () __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))) ;
- __extension__ extern long long int atoll (__const char *__nptr)
- throw () __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))) ;
- extern double strtod (__const char *__restrict __nptr,
- char **__restrict __endptr)
- throw () __attribute__ ((__nonnull__ (1))) ;
- extern float strtof (__const char *__restrict __nptr,
- char **__restrict __endptr) throw () __attribute__ ((__nonnull__ (1))) ;
- extern long double strtold (__const char *__restrict __nptr,
- char **__restrict __endptr)
- throw () __attribute__ ((__nonnull__ (1))) ;
- extern long int strtol (__const char *__restrict __nptr,
- char **__restrict __endptr, int __base)
- throw () __attribute__ ((__nonnull__ (1))) ;
- extern unsigned long int strtoul (__const char *__restrict __nptr,
- char **__restrict __endptr, int __base)
- throw () __attribute__ ((__nonnull__ (1))) ;
- __extension__
- extern long long int strtoq (__const char *__restrict __nptr,
- char **__restrict __endptr, int __base)
- throw () __attribute__ ((__nonnull__ (1))) ;
- __extension__
- extern unsigned long long int strtouq (__const char *__restrict __nptr,
- char **__restrict __endptr, int __base)
- throw () __attribute__ ((__nonnull__ (1))) ;
- __extension__
- extern long long int strtoll (__const char *__restrict __nptr,
- char **__restrict __endptr, int __base)
- throw () __attribute__ ((__nonnull__ (1))) ;
- __extension__
- extern unsigned long long int strtoull (__const char *__restrict __nptr,
- char **__restrict __endptr, int __base)
- throw () __attribute__ ((__nonnull__ (1))) ;
- # 236 "/usr/include/stdlib.h" 3 4
- # 1 "/usr/include/xlocale.h" 1 3 4
- # 28 "/usr/include/xlocale.h" 3 4
- typedef struct __locale_struct
- {
- struct __locale_data *__locales[13];
- const unsigned short int *__ctype_b;
- const int *__ctype_tolower;
- const int *__ctype_toupper;
- const char *__names[13];
- } *__locale_t;
- typedef __locale_t locale_t;
- # 237 "/usr/include/stdlib.h" 2 3 4
- extern long int strtol_l (__const char *__restrict __nptr,
- char **__restrict __endptr, int __base,
- __locale_t __loc) throw () __attribute__ ((__nonnull__ (1, 4))) ;
- extern unsigned long int strtoul_l (__const char *__restrict __nptr,
- char **__restrict __endptr,
- int __base, __locale_t __loc)
- throw () __attribute__ ((__nonnull__ (1, 4))) ;
- __extension__
- extern long long int strtoll_l (__const char *__restrict __nptr,
- char **__restrict __endptr, int __base,
- __locale_t __loc)
- throw () __attribute__ ((__nonnull__ (1, 4))) ;
- __extension__
- extern unsigned long long int strtoull_l (__const char *__restrict __nptr,
- char **__restrict __endptr,
- int __base, __locale_t __loc)
- throw () __attribute__ ((__nonnull__ (1, 4))) ;
- extern double strtod_l (__const char *__restrict __nptr,
- char **__restrict __endptr, __locale_t __loc)
- throw () __attribute__ ((__nonnull__ (1, 3))) ;
- extern float strtof_l (__const char *__restrict __nptr,
- char **__restrict __endptr, __locale_t __loc)
- throw () __attribute__ ((__nonnull__ (1, 3))) ;
- extern long double strtold_l (__const char *__restrict __nptr,
- char **__restrict __endptr,
- __locale_t __loc)
- throw () __attribute__ ((__nonnull__ (1, 3))) ;
- extern __inline __attribute__ ((__gnu_inline__)) double
- atof (__const char *__nptr) throw ()
- {
- return strtod (__nptr, (char **) __null);
- }
- extern __inline __attribute__ ((__gnu_inline__)) int
- atoi (__const char *__nptr) throw ()
- {
- return (int) strtol (__nptr, (char **) __null, 10);
- }
- extern __inline __attribute__ ((__gnu_inline__)) long int
- atol (__const char *__nptr) throw ()
- {
- return strtol (__nptr, (char **) __null, 10);
- }
- __extension__ extern __inline __attribute__ ((__gnu_inline__)) long long int
- atoll (__const char *__nptr) throw ()
- {
- return strtoll (__nptr, (char **) __null, 10);
- }
- # 311 "/usr/include/stdlib.h" 3 4
- extern char *l64a (long int __n) throw () ;
- extern long int a64l (__const char *__s)
- throw () __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))) ;
- # 1 "/usr/include/arm-linux-gnueabihf/sys/types.h" 1 3 4
- # 28 "/usr/include/arm-linux-gnueabihf/sys/types.h" 3 4
- extern "C" {
- typedef __u_char u_char;
- typedef __u_short u_short;
- typedef __u_int u_int;
- typedef __u_long u_long;
- typedef __quad_t quad_t;
- typedef __u_quad_t u_quad_t;
- typedef __fsid_t fsid_t;
- typedef __loff_t loff_t;
- typedef __ino_t ino_t;
- typedef __ino64_t ino64_t;
- typedef __dev_t dev_t;
- typedef __gid_t gid_t;
- typedef __mode_t mode_t;
- typedef __nlink_t nlink_t;
- typedef __uid_t uid_t;
- # 99 "/usr/include/arm-linux-gnueabihf/sys/types.h" 3 4
- typedef __pid_t pid_t;
- typedef __id_t id_t;
- # 116 "/usr/include/arm-linux-gnueabihf/sys/types.h" 3 4
- typedef __daddr_t daddr_t;
- typedef __caddr_t caddr_t;
- typedef __key_t key_t;
- # 133 "/usr/include/arm-linux-gnueabihf/sys/types.h" 3 4
- # 1 "/usr/include/time.h" 1 3 4
- # 58 "/usr/include/time.h" 3 4
- typedef __clock_t clock_t;
- # 74 "/usr/include/time.h" 3 4
- typedef __time_t time_t;
- # 92 "/usr/include/time.h" 3 4
- typedef __clockid_t clockid_t;
- # 104 "/usr/include/time.h" 3 4
- typedef __timer_t timer_t;
- # 134 "/usr/include/arm-linux-gnueabihf/sys/types.h" 2 3 4
- typedef __useconds_t useconds_t;
- typedef __suseconds_t suseconds_t;
- # 1 "/usr/lib/gcc/arm-linux-gnueabihf/4.6/include/stddef.h" 1 3 4
- # 148 "/usr/include/arm-linux-gnueabihf/sys/types.h" 2 3 4
- typedef unsigned long int ulong;
- typedef unsigned short int ushort;
- typedef unsigned int uint;
- # 195 "/usr/include/arm-linux-gnueabihf/sys/types.h" 3 4
- typedef int int8_t __attribute__ ((__mode__ (__QI__)));
- typedef int int16_t __attribute__ ((__mode__ (__HI__)));
- typedef int int32_t __attribute__ ((__mode__ (__SI__)));
- typedef int int64_t __attribute__ ((__mode__ (__DI__)));
- typedef unsigned int u_int8_t __attribute__ ((__mode__ (__QI__)));
- typedef unsigned int u_int16_t __attribute__ ((__mode__ (__HI__)));
- typedef unsigned int u_int32_t __attribute__ ((__mode__ (__SI__)));
- typedef unsigned int u_int64_t __attribute__ ((__mode__ (__DI__)));
- typedef int register_t __attribute__ ((__mode__ (__word__)));
- # 220 "/usr/include/arm-linux-gnueabihf/sys/types.h" 3 4
- # 1 "/usr/include/arm-linux-gnueabihf/sys/select.h" 1 3 4
- # 31 "/usr/include/arm-linux-gnueabihf/sys/select.h" 3 4
- # 1 "/usr/include/arm-linux-gnueabihf/bits/select.h" 1 3 4
- # 32 "/usr/include/arm-linux-gnueabihf/sys/select.h" 2 3 4
- # 1 "/usr/include/arm-linux-gnueabihf/bits/sigset.h" 1 3 4
- # 24 "/usr/include/arm-linux-gnueabihf/bits/sigset.h" 3 4
- typedef int __sig_atomic_t;
- typedef struct
- {
- unsigned long int __val[(1024 / (8 * sizeof (unsigned long int)))];
- } __sigset_t;
- # 35 "/usr/include/arm-linux-gnueabihf/sys/select.h" 2 3 4
- typedef __sigset_t sigset_t;
- # 1 "/usr/include/time.h" 1 3 4
- # 120 "/usr/include/time.h" 3 4
- struct timespec
- {
- __time_t tv_sec;
- long int tv_nsec;
- };
- # 45 "/usr/include/arm-linux-gnueabihf/sys/select.h" 2 3 4
- # 1 "/usr/include/arm-linux-gnueabihf/bits/time.h" 1 3 4
- # 75 "/usr/include/arm-linux-gnueabihf/bits/time.h" 3 4
- struct timeval
- {
- __time_t tv_sec;
- __suseconds_t tv_usec;
- };
- # 47 "/usr/include/arm-linux-gnueabihf/sys/select.h" 2 3 4
- # 55 "/usr/include/arm-linux-gnueabihf/sys/select.h" 3 4
- typedef long int __fd_mask;
- # 67 "/usr/include/arm-linux-gnueabihf/sys/select.h" 3 4
- typedef struct
- {
- __fd_mask fds_bits[1024 / (8 * (int) sizeof (__fd_mask))];
- } fd_set;
- typedef __fd_mask fd_mask;
- # 99 "/usr/include/arm-linux-gnueabihf/sys/select.h" 3 4
- extern "C" {
- # 109 "/usr/include/arm-linux-gnueabihf/sys/select.h" 3 4
- extern int select (int __nfds, fd_set *__restrict __readfds,
- fd_set *__restrict __writefds,
- fd_set *__restrict __exceptfds,
- struct timeval *__restrict __timeout);
- # 121 "/usr/include/arm-linux-gnueabihf/sys/select.h" 3 4
- extern int pselect (int __nfds, fd_set *__restrict __readfds,
- fd_set *__restrict __writefds,
- fd_set *__restrict __exceptfds,
- const struct timespec *__restrict __timeout,
- const __sigset_t *__restrict __sigmask);
- }
- # 221 "/usr/include/arm-linux-gnueabihf/sys/types.h" 2 3 4
- # 1 "/usr/include/arm-linux-gnueabihf/sys/sysmacros.h" 1 3 4
- # 30 "/usr/include/arm-linux-gnueabihf/sys/sysmacros.h" 3 4
- __extension__
- extern unsigned int gnu_dev_major (unsigned long long int __dev)
- throw ();
- __extension__
- extern unsigned int gnu_dev_minor (unsigned long long int __dev)
- throw ();
- __extension__
- extern unsigned long long int gnu_dev_makedev (unsigned int __major,
- unsigned int __minor)
- throw ();
- __extension__ extern __inline __attribute__ ((__gnu_inline__)) unsigned int
- gnu_dev_major (unsigned long long int __dev) throw ()
- {
- return ((__dev >> 8) & 0xfff) | ((unsigned int) (__dev >> 32) & ~0xfff);
- }
- __extension__ extern __inline __attribute__ ((__gnu_inline__)) unsigned int
- gnu_dev_minor (unsigned long long int __dev) throw ()
- {
- return (__dev & 0xff) | ((unsigned int) (__dev >> 12) & ~0xff);
- }
- __extension__ extern __inline __attribute__ ((__gnu_inline__)) unsigned long long int
- gnu_dev_makedev (unsigned int __major, unsigned int __minor) throw ()
- {
- return ((__minor & 0xff) | ((__major & 0xfff) << 8)
- | (((unsigned long long int) (__minor & ~0xff)) << 12)
- | (((unsigned long long int) (__major & ~0xfff)) << 32));
- }
- # 224 "/usr/include/arm-linux-gnueabihf/sys/types.h" 2 3 4
- typedef __blksize_t blksize_t;
- typedef __blkcnt_t blkcnt_t;
- typedef __fsblkcnt_t fsblkcnt_t;
- typedef __fsfilcnt_t fsfilcnt_t;
- # 263 "/usr/include/arm-linux-gnueabihf/sys/types.h" 3 4
- typedef __blkcnt64_t blkcnt64_t;
- typedef __fsblkcnt64_t fsblkcnt64_t;
- typedef __fsfilcnt64_t fsfilcnt64_t;
- # 1 "/usr/include/arm-linux-gnueabihf/bits/pthreadtypes.h" 1 3 4
- # 38 "/usr/include/arm-linux-gnueabihf/bits/pthreadtypes.h" 3 4
- typedef unsigned long int pthread_t;
- typedef union
- {
- char __size[36];
- long int __align;
- } pthread_attr_t;
- typedef struct __pthread_internal_slist
- {
- struct __pthread_internal_slist *__next;
- } __pthread_slist_t;
- typedef union
- {
- struct __pthread_mutex_s
- {
- int __lock;
- unsigned int __count;
- int __owner;
- int __kind;
- unsigned int __nusers;
- __extension__ union
- {
- int __spins;
- __pthread_slist_t __list;
- };
- } __data;
- char __size[24];
- long int __align;
- } pthread_mutex_t;
- typedef union
- {
- char __size[4];
- long int __align;
- } pthread_mutexattr_t;
- typedef union
- {
- struct
- {
- int __lock;
- unsigned int __futex;
- __extension__ unsigned long long int __total_seq;
- __extension__ unsigned long long int __wakeup_seq;
- __extension__ unsigned long long int __woken_seq;
- void *__mutex;
- unsigned int __nwaiters;
- unsigned int __broadcast_seq;
- } __data;
- char __size[48];
- __extension__ long long int __align;
- } pthread_cond_t;
- typedef union
- {
- char __size[4];
- long int __align;
- } pthread_condattr_t;
- typedef unsigned int pthread_key_t;
- typedef int pthread_once_t;
- typedef union
- {
- struct
- {
- int __lock;
- unsigned int __nr_readers;
- unsigned int __readers_wakeup;
- unsigned int __writer_wakeup;
- unsigned int __nr_readers_queued;
- unsigned int __nr_writers_queued;
- # 141 "/usr/include/arm-linux-gnueabihf/bits/pthreadtypes.h" 3 4
- unsigned char __flags;
- unsigned char __shared;
- unsigned char __pad1;
- unsigned char __pad2;
- int __writer;
- } __data;
- char __size[32];
- long int __align;
- } pthread_rwlock_t;
- typedef union
- {
- char __size[8];
- long int __align;
- } pthread_rwlockattr_t;
- typedef volatile int pthread_spinlock_t;
- typedef union
- {
- char __size[20];
- long int __align;
- } pthread_barrier_t;
- typedef union
- {
- char __size[4];
- int __align;
- } pthread_barrierattr_t;
- # 272 "/usr/include/arm-linux-gnueabihf/sys/types.h" 2 3 4
- }
- # 321 "/usr/include/stdlib.h" 2 3 4
- extern long int random (void) throw ();
- extern void srandom (unsigned int __seed) throw ();
- extern char *initstate (unsigned int __seed, char *__statebuf,
- size_t __statelen) throw () __attribute__ ((__nonnull__ (2)));
- extern char *setstate (char *__statebuf) throw () __attribute__ ((__nonnull__ (1)));
- struct random_data
- {
- int32_t *fptr;
- int32_t *rptr;
- int32_t *state;
- int rand_type;
- int rand_deg;
- int rand_sep;
- int32_t *end_ptr;
- };
- extern int random_r (struct random_data *__restrict __buf,
- int32_t *__restrict __result) throw () __attribute__ ((__nonnull__ (1, 2)));
- extern int srandom_r (unsigned int __seed, struct random_data *__buf)
- throw () __attribute__ ((__nonnull__ (2)));
- extern int initstate_r (unsigned int __seed, char *__restrict __statebuf,
- size_t __statelen,
- struct random_data *__restrict __buf)
- throw () __attribute__ ((__nonnull__ (2, 4)));
- extern int setstate_r (char *__restrict __statebuf,
- struct random_data *__restrict __buf)
- throw () __attribute__ ((__nonnull__ (1, 2)));
- extern int rand (void) throw ();
- extern void srand (unsigned int __seed) throw ();
- extern int rand_r (unsigned int *__seed) throw ();
- extern double drand48 (void) throw ();
- extern double erand48 (unsigned short int __xsubi[3]) throw () __attribute__ ((__nonnull__ (1)));
- extern long int lrand48 (void) throw ();
- extern long int nrand48 (unsigned short int __xsubi[3])
- throw () __attribute__ ((__nonnull__ (1)));
- extern long int mrand48 (void) throw ();
- extern long int jrand48 (unsigned short int __xsubi[3])
- throw () __attribute__ ((__nonnull__ (1)));
- extern void srand48 (long int __seedval) throw ();
- extern unsigned short int *seed48 (unsigned short int __seed16v[3])
- throw () __attribute__ ((__nonnull__ (1)));
- extern void lcong48 (unsigned short int __param[7]) throw () __attribute__ ((__nonnull__ (1)));
- struct drand48_data
- {
- unsigned short int __x[3];
- unsigned short int __old_x[3];
- unsigned short int __c;
- unsigned short int __init;
- unsigned long long int __a;
- };
- extern int drand48_r (struct drand48_data *__restrict __buffer,
- double *__restrict __result) throw () __attribute__ ((__nonnull__ (1, 2)));
- extern int erand48_r (unsigned short int __xsubi[3],
- struct drand48_data *__restrict __buffer,
- double *__restrict __result) throw () __attribute__ ((__nonnull__ (1, 2)));
- extern int lrand48_r (struct drand48_data *__restrict __buffer,
- long int *__restrict __result)
- throw () __attribute__ ((__nonnull__ (1, 2)));
- extern int nrand48_r (unsigned short int __xsubi[3],
- struct drand48_data *__restrict __buffer,
- long int *__restrict __result)
- throw () __attribute__ ((__nonnull__ (1, 2)));
- extern int mrand48_r (struct drand48_data *__restrict __buffer,
- long int *__restrict __result)
- throw () __attribute__ ((__nonnull__ (1, 2)));
- extern int jrand48_r (unsigned short int __xsubi[3],
- struct drand48_data *__restrict __buffer,
- long int *__restrict __result)
- throw () __attribute__ ((__nonnull__ (1, 2)));
- extern int srand48_r (long int __seedval, struct drand48_data *__buffer)
- throw () __attribute__ ((__nonnull__ (2)));
- extern int seed48_r (unsigned short int __seed16v[3],
- struct drand48_data *__buffer) throw () __attribute__ ((__nonnull__ (1, 2)));
- extern int lcong48_r (unsigned short int __param[7],
- struct drand48_data *__buffer)
- throw () __attribute__ ((__nonnull__ (1, 2)));
- extern void *malloc (size_t __size) throw () __attribute__ ((__malloc__)) ;
- extern void *calloc (size_t __nmemb, size_t __size)
- throw () __attribute__ ((__malloc__)) ;
- extern void *realloc (void *__ptr, size_t __size)
- throw () __attribute__ ((__warn_unused_result__));
- extern void free (void *__ptr) throw ();
- extern void cfree (void *__ptr) throw ();
- # 1 "/usr/include/alloca.h" 1 3 4
- # 25 "/usr/include/alloca.h" 3 4
- # 1 "/usr/lib/gcc/arm-linux-gnueabihf/4.6/include/stddef.h" 1 3 4
- # 26 "/usr/include/alloca.h" 2 3 4
- extern "C" {
- extern void *alloca (size_t __size) throw ();
- }
- # 498 "/usr/include/stdlib.h" 2 3 4
- extern void *valloc (size_t __size) throw () __attribute__ ((__malloc__)) ;
- extern int posix_memalign (void **__memptr, size_t __alignment, size_t __size)
- throw () __attribute__ ((__nonnull__ (1))) ;
- extern void abort (void) throw () __attribute__ ((__noreturn__));
- extern int atexit (void (*__func) (void)) throw () __attribute__ ((__nonnull__ (1)));
- extern "C++" int at_quick_exit (void (*__func) (void))
- throw () __asm ("at_quick_exit") __attribute__ ((__nonnull__ (1)));
- extern int on_exit (void (*__func) (int __status, void *__arg), void *__arg)
- throw () __attribute__ ((__nonnull__ (1)));
- extern void exit (int __status) throw () __attribute__ ((__noreturn__));
- extern void quick_exit (int __status) throw () __attribute__ ((__noreturn__));
- extern void _Exit (int __status) throw () __attribute__ ((__noreturn__));
- extern char *getenv (__const char *__name) throw () __attribute__ ((__nonnull__ (1))) ;
- extern char *__secure_getenv (__const char *__name)
- throw () __attribute__ ((__nonnull__ (1))) ;
- extern int putenv (char *__string) throw () __attribute__ ((__nonnull__ (1)));
- extern int setenv (__const char *__name, __const char *__value, int __replace)
- throw () __attribute__ ((__nonnull__ (2)));
- extern int unsetenv (__const char *__name) throw () __attribute__ ((__nonnull__ (1)));
- extern int clearenv (void) throw ();
- # 606 "/usr/include/stdlib.h" 3 4
- extern char *mktemp (char *__template) throw () __attribute__ ((__nonnull__ (1))) ;
- # 620 "/usr/include/stdlib.h" 3 4
- extern int mkstemp (char *__template) __attribute__ ((__nonnull__ (1))) ;
- # 630 "/usr/include/stdlib.h" 3 4
- extern int mkstemp64 (char *__template) __attribute__ ((__nonnull__ (1))) ;
- # 642 "/usr/include/stdlib.h" 3 4
- extern int mkstemps (char *__template, int __suffixlen) __attribute__ ((__nonnull__ (1))) ;
- # 652 "/usr/include/stdlib.h" 3 4
- extern int mkstemps64 (char *__template, int __suffixlen)
- __attribute__ ((__nonnull__ (1))) ;
- # 663 "/usr/include/stdlib.h" 3 4
- extern char *mkdtemp (char *__template) throw () __attribute__ ((__nonnull__ (1))) ;
- # 674 "/usr/include/stdlib.h" 3 4
- extern int mkostemp (char *__template, int __flags) __attribute__ ((__nonnull__ (1))) ;
- # 684 "/usr/include/stdlib.h" 3 4
- extern int mkostemp64 (char *__template, int __flags) __attribute__ ((__nonnull__ (1))) ;
- # 694 "/usr/include/stdlib.h" 3 4
- extern int mkostemps (char *__template, int __suffixlen, int __flags)
- __attribute__ ((__nonnull__ (1))) ;
- # 706 "/usr/include/stdlib.h" 3 4
- extern int mkostemps64 (char *__template, int __suffixlen, int __flags)
- __attribute__ ((__nonnull__ (1))) ;
- extern int system (__const char *__command) ;
- extern char *canonicalize_file_name (__const char *__name)
- throw () __attribute__ ((__nonnull__ (1))) ;
- # 734 "/usr/include/stdlib.h" 3 4
- extern char *realpath (__const char *__restrict __name,
- char *__restrict __resolved) throw () ;
- typedef int (*__compar_fn_t) (__const void *, __const void *);
- typedef __compar_fn_t comparison_fn_t;
- typedef int (*__compar_d_fn_t) (__const void *, __const void *, void *);
- extern void *bsearch (__const void *__key, __const void *__base,
- size_t __nmemb, size_t __size, __compar_fn_t __compar)
- __attribute__ ((__nonnull__ (1, 2, 5))) ;
- extern void qsort (void *__base, size_t __nmemb, size_t __size,
- __compar_fn_t __compar) __attribute__ ((__nonnull__ (1, 4)));
- extern void qsort_r (void *__base, size_t __nmemb, size_t __size,
- __compar_d_fn_t __compar, void *__arg)
- __attribute__ ((__nonnull__ (1, 4)));
- extern int abs (int __x) throw () __attribute__ ((__const__)) ;
- extern long int labs (long int __x) throw () __attribute__ ((__const__)) ;
- __extension__ extern long long int llabs (long long int __x)
- throw () __attribute__ ((__const__)) ;
- extern div_t div (int __numer, int __denom)
- throw () __attribute__ ((__const__)) ;
- extern ldiv_t ldiv (long int __numer, long int __denom)
- throw () __attribute__ ((__const__)) ;
- __extension__ extern lldiv_t lldiv (long long int __numer,
- long long int __denom)
- throw () __attribute__ ((__const__)) ;
- # 808 "/usr/include/stdlib.h" 3 4
- extern char *ecvt (double __value, int __ndigit, int *__restrict __decpt,
- int *__restrict __sign) throw () __attribute__ ((__nonnull__ (3, 4))) ;
- extern char *fcvt (double __value, int __ndigit, int *__restrict __decpt,
- int *__restrict __sign) throw () __attribute__ ((__nonnull__ (3, 4))) ;
- extern char *gcvt (double __value, int __ndigit, char *__buf)
- throw () __attribute__ ((__nonnull__ (3))) ;
- extern char *qecvt (long double __value, int __ndigit,
- int *__restrict __decpt, int *__restrict __sign)
- throw () __attribute__ ((__nonnull__ (3, 4))) ;
- extern char *qfcvt (long double __value, int __ndigit,
- int *__restrict __decpt, int *__restrict __sign)
- throw () __attribute__ ((__nonnull__ (3, 4))) ;
- extern char *qgcvt (long double __value, int __ndigit, char *__buf)
- throw () __attribute__ ((__nonnull__ (3))) ;
- extern int ecvt_r (double __value, int __ndigit, int *__restrict __decpt,
- int *__restrict __sign, char *__restrict __buf,
- size_t __len) throw () __attribute__ ((__nonnull__ (3, 4, 5)));
- extern int fcvt_r (double __value, int __ndigit, int *__restrict __decpt,
- int *__restrict __sign, char *__restrict __buf,
- size_t __len) throw () __attribute__ ((__nonnull__ (3, 4, 5)));
- extern int qecvt_r (long double __value, int __ndigit,
- int *__restrict __decpt, int *__restrict __sign,
- char *__restrict __buf, size_t __len)
- throw () __attribute__ ((__nonnull__ (3, 4, 5)));
- extern int qfcvt_r (long double __value, int __ndigit,
- int *__restrict __decpt, int *__restrict __sign,
- char *__restrict __buf, size_t __len)
- throw () __attribute__ ((__nonnull__ (3, 4, 5)));
- extern int mblen (__const char *__s, size_t __n) throw () ;
- extern int mbtowc (wchar_t *__restrict __pwc,
- __const char *__restrict __s, size_t __n) throw () ;
- extern int wctomb (char *__s, wchar_t __wchar) throw () ;
- extern size_t mbstowcs (wchar_t *__restrict __pwcs,
- __const char *__restrict __s, size_t __n) throw ();
- extern size_t wcstombs (char *__restrict __s,
- __const wchar_t *__restrict __pwcs, size_t __n)
- throw ();
- extern int rpmatch (__const char *__response) throw () __attribute__ ((__nonnull__ (1))) ;
- # 896 "/usr/include/stdlib.h" 3 4
- extern int getsubopt (char **__restrict __optionp,
- char *__const *__restrict __tokens,
- char **__restrict __valuep)
- throw () __attribute__ ((__nonnull__ (1, 2, 3))) ;
- extern void setkey (__const char *__key) throw () __attribute__ ((__nonnull__ (1)));
- extern int posix_openpt (int __oflag) ;
- extern int grantpt (int __fd) throw ();
- extern int unlockpt (int __fd) throw ();
- extern char *ptsname (int __fd) throw () ;
- extern int ptsname_r (int __fd, char *__buf, size_t __buflen)
- throw () __attribute__ ((__nonnull__ (2)));
- extern int getpt (void);
- extern int getloadavg (double __loadavg[], int __nelem)
- throw () __attribute__ ((__nonnull__ (1)));
- # 964 "/usr/include/stdlib.h" 3 4
- }
- # 7 "src/burn/burnint.h" 2
- # 1 "/usr/include/string.h" 1 3 4
- # 29 "/usr/include/string.h" 3 4
- extern "C" {
- # 1 "/usr/lib/gcc/arm-linux-gnueabihf/4.6/include/stddef.h" 1 3 4
- # 35 "/usr/include/string.h" 2 3 4
- extern void *memcpy (void *__restrict __dest,
- __const void *__restrict __src, size_t __n)
- throw () __attribute__ ((__nonnull__ (1, 2)));
- extern void *memmove (void *__dest, __const void *__src, size_t __n)
- throw () __attribute__ ((__nonnull__ (1, 2)));
- extern void *memccpy (void *__restrict __dest, __const void *__restrict __src,
- int __c, size_t __n)
- throw () __attribute__ ((__nonnull__ (1, 2)));
- extern void *memset (void *__s, int __c, size_t __n) throw () __attribute__ ((__nonnull__ (1)));
- extern int memcmp (__const void *__s1, __const void *__s2, size_t __n)
- throw () __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2)));
- extern "C++"
- {
- extern void *memchr (void *__s, int __c, size_t __n)
- throw () __asm ("memchr") __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1)));
- extern __const void *memchr (__const void *__s, int __c, size_t __n)
- throw () __asm ("memchr") __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1)));
- extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__, __artificial__)) void *
- memchr (void *__s, int __c, size_t __n) throw ()
- {
- return __builtin_memchr (__s, __c, __n);
- }
- extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__, __artificial__)) __const void *
- memchr (__const void *__s, int __c, size_t __n) throw ()
- {
- return __builtin_memchr (__s, __c, __n);
- }
- }
- extern "C++" void *rawmemchr (void *__s, int __c)
- throw () __asm ("rawmemchr") __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1)));
- extern "C++" __const void *rawmemchr (__const void *__s, int __c)
- throw () __asm ("rawmemchr") __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1)));
- extern "C++" void *memrchr (void *__s, int __c, size_t __n)
- throw () __asm ("memrchr") __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1)));
- extern "C++" __const void *memrchr (__const void *__s, int __c, size_t __n)
- throw () __asm ("memrchr") __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1)));
- extern char *strcpy (char *__restrict __dest, __const char *__restrict __src)
- throw () __attribute__ ((__nonnull__ (1, 2)));
- extern char *strncpy (char *__restrict __dest,
- __const char *__restrict __src, size_t __n)
- throw () __attribute__ ((__nonnull__ (1, 2)));
- extern char *strcat (char *__restrict __dest, __const char *__restrict __src)
- throw () __attribute__ ((__nonnull__ (1, 2)));
- extern char *strncat (char *__restrict __dest, __const char *__restrict __src,
- size_t __n) throw () __attribute__ ((__nonnull__ (1, 2)));
- extern int strcmp (__const char *__s1, __const char *__s2)
- throw () __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2)));
- extern int strncmp (__const char *__s1, __const char *__s2, size_t __n)
- throw () __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2)));
- extern int strcoll (__const char *__s1, __const char *__s2)
- throw () __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2)));
- extern size_t strxfrm (char *__restrict __dest,
- __const char *__restrict __src, size_t __n)
- throw () __attribute__ ((__nonnull__ (2)));
- # 165 "/usr/include/string.h" 3 4
- extern int strcoll_l (__const char *__s1, __const char *__s2, __locale_t __l)
- throw () __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2, 3)));
- extern size_t strxfrm_l (char *__dest, __const char *__src, size_t __n,
- __locale_t __l) throw () __attribute__ ((__nonnull__ (2, 4)));
- extern char *strdup (__const char *__s)
- throw () __attribute__ ((__malloc__)) __attribute__ ((__nonnull__ (1)));
- extern char *strndup (__const char *__string, size_t __n)
- throw () __attribute__ ((__malloc__)) __attribute__ ((__nonnull__ (1)));
- # 210 "/usr/include/string.h" 3 4
- extern "C++"
- {
- extern char *strchr (char *__s, int __c)
- throw () __asm ("strchr") __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1)));
- extern __const char *strchr (__const char *__s, int __c)
- throw () __asm ("strchr") __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1)));
- extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__, __artificial__)) char *
- strchr (char *__s, int __c) throw ()
- {
- return __builtin_strchr (__s, __c);
- }
- extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__, __artificial__)) __const char *
- strchr (__const char *__s, int __c) throw ()
- {
- return __builtin_strchr (__s, __c);
- }
- }
- extern "C++"
- {
- extern char *strrchr (char *__s, int __c)
- throw () __asm ("strrchr") __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1)));
- extern __const char *strrchr (__const char *__s, int __c)
- throw () __asm ("strrchr") __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1)));
- extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__, __artificial__)) char *
- strrchr (char *__s, int __c) throw ()
- {
- return __builtin_strrchr (__s, __c);
- }
- extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__, __artificial__)) __const char *
- strrchr (__const char *__s, int __c) throw ()
- {
- return __builtin_strrchr (__s, __c);
- }
- }
- extern "C++" char *strchrnul (char *__s, int __c)
- throw () __asm ("strchrnul") __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1)));
- extern "C++" __const char *strchrnul (__const char *__s, int __c)
- throw () __asm ("strchrnul") __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1)));
- extern size_t strcspn (__const char *__s, __const char *__reject)
- throw () __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2)));
- extern size_t strspn (__const char *__s, __const char *__accept)
- throw () __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2)));
- extern "C++"
- {
- extern char *strpbrk (char *__s, __const char *__accept)
- throw () __asm ("strpbrk") __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2)));
- extern __const char *strpbrk (__const char *__s, __const char *__accept)
- throw () __asm ("strpbrk") __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2)));
- extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__, __artificial__)) char *
- strpbrk (char *__s, __const char *__accept) throw ()
- {
- return __builtin_strpbrk (__s, __accept);
- }
- extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__, __artificial__)) __const char *
- strpbrk (__const char *__s, __const char *__accept) throw ()
- {
- return __builtin_strpbrk (__s, __accept);
- }
- }
- extern "C++"
- {
- extern char *strstr (char *__haystack, __const char *__needle)
- throw () __asm ("strstr") __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2)));
- extern __const char *strstr (__const char *__haystack,
- __const char *__needle)
- throw () __asm ("strstr") __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2)));
- extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__, __artificial__)) char *
- strstr (char *__haystack, __const char *__needle) throw ()
- {
- return __builtin_strstr (__haystack, __needle);
- }
- extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__, __artificial__)) __const char *
- strstr (__const char *__haystack, __const char *__needle) throw ()
- {
- return __builtin_strstr (__haystack, __needle);
- }
- }
- extern char *strtok (char *__restrict __s, __const char *__restrict __delim)
- throw () __attribute__ ((__nonnull__ (2)));
- extern char *__strtok_r (char *__restrict __s,
- __const char *__restrict __delim,
- char **__restrict __save_ptr)
- throw () __attribute__ ((__nonnull__ (2, 3)));
- extern char *strtok_r (char *__restrict __s, __const char *__restrict __delim,
- char **__restrict __save_ptr)
- throw () __attribute__ ((__nonnull__ (2, 3)));
- extern "C++" char *strcasestr (char *__haystack, __const char *__needle)
- throw () __asm ("strcasestr") __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2)));
- extern "C++" __const char *strcasestr (__const char *__haystack,
- __const char *__needle)
- throw () __asm ("strcasestr") __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2)));
- # 382 "/usr/include/string.h" 3 4
- extern void *memmem (__const void *__haystack, size_t __haystacklen,
- __const void *__needle, size_t __needlelen)
- throw () __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 3)));
- extern void *__mempcpy (void *__restrict __dest,
- __const void *__restrict __src, size_t __n)
- throw () __attribute__ ((__nonnull__ (1, 2)));
- extern void *mempcpy (void *__restrict __dest,
- __const void *__restrict __src, size_t __n)
- throw () __attribute__ ((__nonnull__ (1, 2)));
- extern size_t strlen (__const char *__s)
- throw () __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1)));
- extern size_t strnlen (__const char *__string, size_t __maxlen)
- throw () __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1)));
- extern char *strerror (int __errnum) throw ();
- # 438 "/usr/include/string.h" 3 4
- extern char *strerror_r (int __errnum, char *__buf, size_t __buflen)
- throw () __attribute__ ((__nonnull__ (2)));
- extern char *strerror_l (int __errnum, __locale_t __l) throw ();
- extern void __bzero (void *__s, size_t __n) throw () __attribute__ ((__nonnull__ (1)));
- extern void bcopy (__const void *__src, void *__dest, size_t __n)
- throw () __attribute__ ((__nonnull__ (1, 2)));
- extern void bzero (void *__s, size_t __n) throw () __attribute__ ((__nonnull__ (1)));
- extern int bcmp (__const void *__s1, __const void *__s2, size_t __n)
- throw () __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2)));
- extern "C++"
- {
- extern char *index (char *__s, int __c)
- throw () __asm ("index") __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1)));
- extern __const char *index (__const char *__s, int __c)
- throw () __asm ("index") __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1)));
- extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__, __artificial__)) char *
- index (char *__s, int __c) throw ()
- {
- return __builtin_index (__s, __c);
- }
- extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__, __artificial__)) __const char *
- index (__const char *__s, int __c) throw ()
- {
- return __builtin_index (__s, __c);
- }
- }
- extern "C++"
- {
- extern char *rindex (char *__s, int __c)
- throw () __asm ("rindex") __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1)));
- extern __const char *rindex (__const char *__s, int __c)
- throw () __asm ("rindex") __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1)));
- extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__, __artificial__)) char *
- rindex (char *__s, int __c) throw ()
- {
- return __builtin_rindex (__s, __c);
- }
- extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__, __artificial__)) __const char *
- rindex (__const char *__s, int __c) throw ()
- {
- return __builtin_rindex (__s, __c);
- }
- }
- extern int ffs (int __i) throw () __attribute__ ((__const__));
- extern int ffsl (long int __l) throw () __attribute__ ((__const__));
- __extension__ extern int ffsll (long long int __ll)
- throw () __attribute__ ((__const__));
- extern int strcasecmp (__const char *__s1, __const char *__s2)
- throw () __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2)));
- extern int strncasecmp (__const char *__s1, __const char *__s2, size_t __n)
- throw () __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2)));
- extern int strcasecmp_l (__const char *__s1, __const char *__s2,
- __locale_t __loc)
- throw () __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2, 3)));
- extern int strncasecmp_l (__const char *__s1, __const char *__s2,
- size_t __n, __locale_t __loc)
- throw () __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2, 4)));
- extern char *strsep (char **__restrict __stringp,
- __const char *__restrict __delim)
- throw () __attribute__ ((__nonnull__ (1, 2)));
- extern char *strsignal (int __sig) throw ();
- extern char *__stpcpy (char *__restrict __dest, __const char *__restrict __src)
- throw () __attribute__ ((__nonnull__ (1, 2)));
- extern char *stpcpy (char *__restrict __dest, __const char *__restrict __src)
- throw () __attribute__ ((__nonnull__ (1, 2)));
- extern char *__stpncpy (char *__restrict __dest,
- __const char *__restrict __src, size_t __n)
- throw () __attribute__ ((__nonnull__ (1, 2)));
- extern char *stpncpy (char *__restrict __dest,
- __const char *__restrict __src, size_t __n)
- throw () __attribute__ ((__nonnull__ (1, 2)));
- extern int strverscmp (__const char *__s1, __const char *__s2)
- throw () __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2)));
- extern char *strfry (char *__string) throw () __attribute__ ((__nonnull__ (1)));
- extern void *memfrob (void *__s, size_t __n) throw () __attribute__ ((__nonnull__ (1)));
- extern "C++" char *basename (char *__filename)
- throw () __asm ("basename") __attribute__ ((__nonnull__ (1)));
- extern "C++" __const char *basename (__const char *__filename)
- throw () __asm ("basename") __attribute__ ((__nonnull__ (1)));
- # 646 "/usr/include/string.h" 3 4
- }
- # 8 "src/burn/burnint.h" 2
- # 1 "/usr/include/assert.h" 1 3 4
- # 9 "src/burn/burnint.h" 2
- # 1 "src/burner/libretro/tchar/tchar.h" 1
- # 1 "/usr/lib/gcc/arm-linux-gnueabihf/4.6/include/stdint.h" 1 3 4
- # 1 "/usr/include/stdint.h" 1 3 4
- # 27 "/usr/include/stdint.h" 3 4
- # 1 "/usr/include/arm-linux-gnueabihf/bits/wchar.h" 1 3 4
- # 28 "/usr/include/stdint.h" 2 3 4
- # 1 "/usr/include/arm-linux-gnueabihf/bits/wordsize.h" 1 3 4
- # 29 "/usr/include/stdint.h" 2 3 4
- # 49 "/usr/include/stdint.h" 3 4
- typedef unsigned char uint8_t;
- typedef unsigned short int uint16_t;
- typedef unsigned int uint32_t;
- __extension__
- typedef unsigned long long int uint64_t;
- typedef signed char int_least8_t;
- typedef short int int_least16_t;
- typedef int int_least32_t;
- __extension__
- typedef long long int int_least64_t;
- typedef unsigned char uint_least8_t;
- typedef unsigned short int uint_least16_t;
- typedef unsigned int uint_least32_t;
- __extension__
- typedef unsigned long long int uint_least64_t;
- typedef signed char int_fast8_t;
- typedef int int_fast16_t;
- typedef int int_fast32_t;
- __extension__
- typedef long long int int_fast64_t;
- typedef unsigned char uint_fast8_t;
- typedef unsigned int uint_fast16_t;
- typedef unsigned int uint_fast32_t;
- __extension__
- typedef unsigned long long int uint_fast64_t;
- # 126 "/usr/include/stdint.h" 3 4
- typedef int intptr_t;
- typedef unsigned int uintptr_t;
- # 138 "/usr/include/stdint.h" 3 4
- __extension__
- typedef long long int intmax_t;
- __extension__
- typedef unsigned long long int uintmax_t;
- # 4 "/usr/lib/gcc/arm-linux-gnueabihf/4.6/include/stdint.h" 2 3 4
- # 5 "src/burner/libretro/tchar/tchar.h" 2
- # 1 "/usr/include/wchar.h" 1 3 4
- # 52 "/usr/include/wchar.h" 3 4
- # 1 "/usr/lib/gcc/arm-linux-gnueabihf/4.6/include/stddef.h" 1 3 4
- # 353 "/usr/lib/gcc/arm-linux-gnueabihf/4.6/include/stddef.h" 3 4
- typedef unsigned int wint_t;
- # 53 "/usr/include/wchar.h" 2 3 4
- # 104 "/usr/include/wchar.h" 3 4
- typedef __mbstate_t mbstate_t;
- # 129 "/usr/include/wchar.h" 3 4
- extern "C" {
- struct tm;
- extern wchar_t *wcscpy (wchar_t *__restrict __dest,
- __const wchar_t *__restrict __src) throw ();
- extern wchar_t *wcsncpy (wchar_t *__restrict __dest,
- __const wchar_t *__restrict __src, size_t __n)
- throw ();
- extern wchar_t *wcscat (wchar_t *__restrict __dest,
- __const wchar_t *__restrict __src) throw ();
- extern wchar_t *wcsncat (wchar_t *__restrict __dest,
- __const wchar_t *__restrict __src, size_t __n)
- throw ();
- extern int wcscmp (__const wchar_t *__s1, __const wchar_t *__s2)
- throw () __attribute__ ((__pure__));
- extern int wcsncmp (__const wchar_t *__s1, __const wchar_t *__s2, size_t __n)
- throw () __attribute__ ((__pure__));
- extern int wcscasecmp (__const wchar_t *__s1, __const wchar_t *__s2) throw ();
- extern int wcsncasecmp (__const wchar_t *__s1, __const wchar_t *__s2,
- size_t __n) throw ();
- extern int wcscasecmp_l (__const wchar_t *__s1, __const wchar_t *__s2,
- __locale_t __loc) throw ();
- extern int wcsncasecmp_l (__const wchar_t *__s1, __const wchar_t *__s2,
- size_t __n, __locale_t __loc) throw ();
- extern int wcscoll (__const wchar_t *__s1, __const wchar_t *__s2) throw ();
- extern size_t wcsxfrm (wchar_t *__restrict __s1,
- __const wchar_t *__restrict __s2, size_t __n) throw ();
- extern int wcscoll_l (__const wchar_t *__s1, __const wchar_t *__s2,
- __locale_t __loc) throw ();
- extern size_t wcsxfrm_l (wchar_t *__s1, __const wchar_t *__s2,
- size_t __n, __locale_t __loc) throw ();
- extern wchar_t *wcsdup (__const wchar_t *__s) throw () __attribute__ ((__malloc__));
- extern "C++" wchar_t *wcschr (wchar_t *__wcs, wchar_t __wc)
- throw () __asm ("wcschr") __attribute__ ((__pure__));
- extern "C++" __const wchar_t *wcschr (__const wchar_t *__wcs, wchar_t __wc)
- throw () __asm ("wcschr") __attribute__ ((__pure__));
- extern "C++" wchar_t *wcsrchr (wchar_t *__wcs, wchar_t __wc)
- throw () __asm ("wcsrchr") __attribute__ ((__pure__));
- extern "C++" __const wchar_t *wcsrchr (__const wchar_t *__wcs, wchar_t __wc)
- throw () __asm ("wcsrchr") __attribute__ ((__pure__));
- extern wchar_t *wcschrnul (__const wchar_t *__s, wchar_t __wc)
- throw () __attribute__ ((__pure__));
- extern size_t wcscspn (__const wchar_t *__wcs, __const wchar_t *__reject)
- throw () __attribute__ ((__pure__));
- extern size_t wcsspn (__const wchar_t *__wcs, __const wchar_t *__accept)
- throw () __attribute__ ((__pure__));
- extern "C++" wchar_t *wcspbrk (wchar_t *__wcs, __const wchar_t *__accept)
- throw () __asm ("wcspbrk") __attribute__ ((__pure__));
- extern "C++" __const wchar_t *wcspbrk (__const wchar_t *__wcs,
- __const wchar_t *__accept)
- throw () __asm ("wcspbrk") __attribute__ ((__pure__));
- extern "C++" wchar_t *wcsstr (wchar_t *__haystack, __const wchar_t *__needle)
- throw () __asm ("wcsstr") __attribute__ ((__pure__));
- extern "C++" __const wchar_t *wcsstr (__const wchar_t *__haystack,
- __const wchar_t *__needle)
- throw () __asm ("wcsstr") __attribute__ ((__pure__));
- extern wchar_t *wcstok (wchar_t *__restrict __s,
- __const wchar_t *__restrict __delim,
- wchar_t **__restrict __ptr) throw ();
- extern size_t wcslen (__const wchar_t *__s) throw () __attribute__ ((__pure__));
- extern "C++" wchar_t *wcswcs (wchar_t *__haystack, __const wchar_t *__needle)
- throw () __asm ("wcswcs") __attribute__ ((__pure__));
- extern "C++" __const wchar_t *wcswcs (__const wchar_t *__haystack,
- __const wchar_t *__needle)
- throw () __asm ("wcswcs") __attribute__ ((__pure__));
- # 303 "/usr/include/wchar.h" 3 4
- extern size_t wcsnlen (__const wchar_t *__s, size_t __maxlen)
- throw () __attribute__ ((__pure__));
- extern "C++" wchar_t *wmemchr (wchar_t *__s, wchar_t __c, size_t __n)
- throw () __asm ("wmemchr") __attribute__ ((__pure__));
- extern "C++" __const wchar_t *wmemchr (__const wchar_t *__s, wchar_t __c,
- size_t __n)
- throw () __asm ("wmemchr") __attribute__ ((__pure__));
- extern int wmemcmp (__const wchar_t *__restrict __s1,
- __const wchar_t *__restrict __s2, size_t __n)
- throw () __attribute__ ((__pure__));
- extern wchar_t *wmemcpy (wchar_t *__restrict __s1,
- __const wchar_t *__restrict __s2, size_t __n) throw ();
- extern wchar_t *wmemmove (wchar_t *__s1, __const wchar_t *__s2, size_t __n)
- throw ();
- extern wchar_t *wmemset (wchar_t *__s, wchar_t __c, size_t __n) throw ();
- extern wchar_t *wmempcpy (wchar_t *__restrict __s1,
- __const wchar_t *__restrict __s2, size_t __n)
- throw ();
- extern wint_t btowc (int __c) throw ();
- extern int wctob (wint_t __c) throw ();
- extern int mbsinit (__const mbstate_t *__ps) throw () __attribute__ ((__pure__));
- extern size_t mbrtowc (wchar_t *__restrict __pwc,
- __const char *__restrict __s, size_t __n,
- mbstate_t *__p) throw ();
- extern size_t wcrtomb (char *__restrict __s, wchar_t __wc,
- mbstate_t *__restrict __ps) throw ();
- extern size_t __mbrlen (__const char *__restrict __s, size_t __n,
- mbstate_t *__restrict __ps) throw ();
- extern size_t mbrlen (__const char *__restrict __s, size_t __n,
- mbstate_t *__restrict __ps) throw ();
- extern wint_t __btowc_alias (int __c) __asm ("btowc");
- extern __inline __attribute__ ((__gnu_inline__)) wint_t
- btowc (int __c) throw ()
- { return (__builtin_constant_p (__c) && __c >= '\0' && __c <= '\x7f'
- ? (wint_t) __c : __btowc_alias (__c)); }
- extern int __wctob_alias (wint_t __c) __asm ("wctob");
- extern __inline __attribute__ ((__gnu_inline__)) int
- wctob (wint_t __wc) throw ()
- { return (__builtin_constant_p (__wc) && __wc >= L'\0' && __wc <= L'\x7f'
- ? (int) __wc : __wctob_alias (__wc)); }
- extern __inline __attribute__ ((__gnu_inline__)) size_t
- mbrlen (__const char *__restrict __s, size_t __n, mbstate_t *__restrict __ps) throw ()
- { return (__ps != __null
- ? mbrtowc (__null, __s, __n, __ps) : __mbrlen (__s, __n, __null)); }
- extern size_t mbsrtowcs (wchar_t *__restrict __dst,
- __const char **__restrict __src, size_t __len,
- mbstate_t *__restrict __ps) throw ();
- extern size_t wcsrtombs (char *__restrict __dst,
- __const wchar_t **__restrict __src, size_t __len,
- mbstate_t *__restrict __ps) throw ();
- extern size_t mbsnrtowcs (wchar_t *__restrict __dst,
- __const char **__restrict __src, size_t __nmc,
- size_t __len, mbstate_t *__restrict __ps) throw ();
- extern size_t wcsnrtombs (char *__restrict __dst,
- __const wchar_t **__restrict __src,
- size_t __nwc, size_t __len,
- mbstate_t *__restrict __ps) throw ();
- extern int wcwidth (wchar_t __c) throw ();
- extern int wcswidth (__const wchar_t *__s, size_t __n) throw ();
- extern double wcstod (__const wchar_t *__restrict __nptr,
- wchar_t **__restrict __endptr) throw ();
- extern float wcstof (__const wchar_t *__restrict __nptr,
- wchar_t **__restrict __endptr) throw ();
- extern long double wcstold (__const wchar_t *__restrict __nptr,
- wchar_t **__restrict __endptr) throw ();
- extern long int wcstol (__const wchar_t *__restrict __nptr,
- wchar_t **__restrict __endptr, int __base) throw ();
- extern unsigned long int wcstoul (__const wchar_t *__restrict __nptr,
- wchar_t **__restrict __endptr, int __base)
- throw ();
- __extension__
- extern long long int wcstoll (__const wchar_t *__restrict __nptr,
- wchar_t **__restrict __endptr, int __base)
- throw ();
- __extension__
- extern unsigned long long int wcstoull (__const wchar_t *__restrict __nptr,
- wchar_t **__restrict __endptr,
- int __base) throw ();
- __extension__
- extern long long int wcstoq (__const wchar_t *__restrict __nptr,
- wchar_t **__restrict __endptr, int __base)
- throw ();
- __extension__
- extern unsigned long long int wcstouq (__const wchar_t *__restrict __nptr,
- wchar_t **__restrict __endptr,
- int __base) throw ();
- # 528 "/usr/include/wchar.h" 3 4
- extern long int wcstol_l (__const wchar_t *__restrict __nptr,
- wchar_t **__restrict __endptr, int __base,
- __locale_t __loc) throw ();
- extern unsigned long int wcstoul_l (__const wchar_t *__restrict __nptr,
- wchar_t **__restrict __endptr,
- int __base, __locale_t __loc) throw ();
- __extension__
- extern long long int wcstoll_l (__const wchar_t *__restrict __nptr,
- wchar_t **__restrict __endptr,
- int __base, __locale_t __loc) throw ();
- __extension__
- extern unsigned long long int wcstoull_l (__const wchar_t *__restrict __nptr,
- wchar_t **__restrict __endptr,
- int __base, __locale_t __loc)
- throw ();
- extern double wcstod_l (__const wchar_t *__restrict __nptr,
- wchar_t **__restrict __endptr, __locale_t __loc)
- throw ();
- extern float wcstof_l (__const wchar_t *__restrict __nptr,
- wchar_t **__restrict __endptr, __locale_t __loc)
- throw ();
- extern long double wcstold_l (__const wchar_t *__restrict __nptr,
- wchar_t **__restrict __endptr,
- __locale_t __loc) throw ();
- extern wchar_t *wcpcpy (wchar_t *__restrict __dest,
- __const wchar_t *__restrict __src) throw ();
- extern wchar_t *wcpncpy (wchar_t *__restrict __dest,
- __const wchar_t *__restrict __src, size_t __n)
- throw ();
- # 578 "/usr/include/wchar.h" 3 4
- extern __FILE *open_wmemstream (wchar_t **__bufloc, size_t *__sizeloc) throw ();
- extern int fwide (__FILE *__fp, int __mode) throw ();
- extern int fwprintf (__FILE *__restrict __stream,
- __const wchar_t *__restrict __format, ...)
- ;
- extern int wprintf (__const wchar_t *__restrict __format, ...)
- ;
- extern int swprintf (wchar_t *__restrict __s, size_t __n,
- __const wchar_t *__restrict __format, ...)
- throw () ;
- extern int vfwprintf (__FILE *__restrict __s,
- __const wchar_t *__restrict __format,
- __gnuc_va_list __arg)
- ;
- extern int vwprintf (__const wchar_t *__restrict __format,
- __gnuc_va_list __arg)
- ;
- extern int vswprintf (wchar_t *__restrict __s, size_t __n,
- __const wchar_t *__restrict __format,
- __gnuc_va_list __arg)
- throw () ;
- extern int fwscanf (__FILE *__restrict __stream,
- __const wchar_t *__restrict __format, ...)
- ;
- extern int wscanf (__const wchar_t *__restrict __format, ...)
- ;
- extern int swscanf (__const wchar_t *__restrict __s,
- __const wchar_t *__restrict __format, ...)
- throw () ;
- # 678 "/usr/include/wchar.h" 3 4
- extern int vfwscanf (__FILE *__restrict __s,
- __const wchar_t *__restrict __format,
- __gnuc_va_list __arg)
- ;
- extern int vwscanf (__const wchar_t *__restrict __format,
- __gnuc_va_list __arg)
- ;
- extern int vswscanf (__const wchar_t *__restrict __s,
- __const wchar_t *__restrict __format,
- __gnuc_va_list __arg)
- throw () ;
- # 734 "/usr/include/wchar.h" 3 4
- extern wint_t fgetwc (__FILE *__stream);
- extern wint_t getwc (__FILE *__stream);
- extern wint_t getwchar (void);
- extern wint_t fputwc (wchar_t __wc, __FILE *__stream);
- extern wint_t putwc (wchar_t __wc, __FILE *__stream);
- extern wint_t putwchar (wchar_t __wc);
- extern wchar_t *fgetws (wchar_t *__restrict __ws, int __n,
- __FILE *__restrict __stream);
- extern int fputws (__const wchar_t *__restrict __ws,
- __FILE *__restrict __stream);
- extern wint_t ungetwc (wint_t __wc, __FILE *__stream);
- # 799 "/usr/include/wchar.h" 3 4
- extern wint_t getwc_unlocked (__FILE *__stream);
- extern wint_t getwchar_unlocked (void);
- extern wint_t fgetwc_unlocked (__FILE *__stream);
- extern wint_t fputwc_unlocked (wchar_t __wc, __FILE *__stream);
- # 825 "/usr/include/wchar.h" 3 4
- extern wint_t putwc_unlocked (wchar_t __wc, __FILE *__stream);
- extern wint_t putwchar_unlocked (wchar_t __wc);
- # 835 "/usr/include/wchar.h" 3 4
- extern wchar_t *fgetws_unlocked (wchar_t *__restrict __ws, int __n,
- __FILE *__restrict __stream);
- extern int fputws_unlocked (__const wchar_t *__restrict __ws,
- __FILE *__restrict __stream);
- extern size_t wcsftime (wchar_t *__restrict __s, size_t __maxsize,
- __const wchar_t *__restrict __format,
- __const struct tm *__restrict __tp) throw ();
- extern size_t wcsftime_l (wchar_t *__restrict __s, size_t __maxsize,
- __const wchar_t *__restrict __format,
- __const struct tm *__restrict __tp,
- __locale_t __loc) throw ();
- # 889 "/usr/include/wchar.h" 3 4
- }
- # 6 "src/burner/libretro/tchar/tchar.h" 2
- # 1 "src/intf/input/inp_keys.h" 1
- # 8 "src/burner/libretro/tchar/tchar.h" 2
- typedef struct { int x, y, width, height; } RECT;
- # 59 "src/burner/libretro/tchar/tchar.h"
- extern char szAppBurnVer[16];
- typedef int HWND;
- extern int bDrvOkay;
- extern int bRunPause;
- extern bool bAlwaysProcessKeyboardInput;
- extern HWND hScrnWnd;
- extern void InpDIPSWResetDIPs (void);
- # 14 "src/burn/burnint.h" 2
- # 1 "src/burner/libretro/burn_libretro_opts.h" 1
- # 18 "src/burn/burnint.h" 2
- # 1 "src/burn/burn.h" 1
- extern "C" {
- # 18 "src/burn/burn.h"
- # 1 "/usr/include/time.h" 1 3 4
- # 30 "/usr/include/time.h" 3 4
- extern "C" {
- # 1 "/usr/lib/gcc/arm-linux-gnueabihf/4.6/include/stddef.h" 1 3 4
- # 39 "/usr/include/time.h" 2 3 4
- # 1 "/usr/include/arm-linux-gnueabihf/bits/time.h" 1 3 4
- # 43 "/usr/include/time.h" 2 3 4
- # 131 "/usr/include/time.h" 3 4
- struct tm
- {
- int tm_sec;
- int tm_min;
- int tm_hour;
- int tm_mday;
- int tm_mon;
- int tm_year;
- int tm_wday;
- int tm_yday;
- int tm_isdst;
- long int tm_gmtoff;
- __const char *tm_zone;
- };
- struct itimerspec
- {
- struct timespec it_interval;
- struct timespec it_value;
- };
- struct sigevent;
- # 180 "/usr/include/time.h" 3 4
- extern clock_t clock (void) throw ();
- extern time_t time (time_t *__timer) throw ();
- extern double difftime (time_t __time1, time_t __time0)
- throw () __attribute__ ((__const__));
- extern time_t mktime (struct tm *__tp) throw ();
- extern size_t strftime (char *__restrict __s, size_t __maxsize,
- __const char *__restrict __format,
- __const struct tm *__restrict __tp) throw ();
- extern char *strptime (__const char *__restrict __s,
- __const char *__restrict __fmt, struct tm *__tp)
- throw ();
- extern size_t strftime_l (char *__restrict __s, size_t __maxsize,
- __const char *__restrict __format,
- __const struct tm *__restrict __tp,
- __locale_t __loc) throw ();
- extern char *strptime_l (__const char *__restrict __s,
- __const char *__restrict __fmt, struct tm *__tp,
- __locale_t __loc) throw ();
- extern struct tm *gmtime (__const time_t *__timer) throw ();
- extern struct tm *localtime (__const time_t *__timer) throw ();
- extern struct tm *gmtime_r (__const time_t *__restrict __timer,
- struct tm *__restrict __tp) throw ();
- extern struct tm *localtime_r (__const time_t *__restrict __timer,
- struct tm *__restrict __tp) throw ();
- extern char *asctime (__const struct tm *__tp) throw ();
- extern char *ctime (__const time_t *__timer) throw ();
- extern char *asctime_r (__const struct tm *__restrict __tp,
- char *__restrict __buf) throw ();
- extern char *ctime_r (__const time_t *__restrict __timer,
- char *__restrict __buf) throw ();
- extern char *__tzname[2];
- extern int __daylight;
- extern long int __timezone;
- extern char *tzname[2];
- extern void tzset (void) throw ();
- extern int daylight;
- extern long int timezone;
- extern int stime (__const time_t *__when) throw ();
- # 313 "/usr/include/time.h" 3 4
- extern time_t timegm (struct tm *__tp) throw ();
- extern time_t timelocal (struct tm *__tp) throw ();
- extern int dysize (int __year) throw () __attribute__ ((__const__));
- # 328 "/usr/include/time.h" 3 4
- extern int nanosleep (__const struct timespec *__requested_time,
- struct timespec *__remaining);
- extern int clock_getres (clockid_t __clock_id, struct timespec *__res) throw ();
- extern int clock_gettime (clockid_t __clock_id, struct timespec *__tp) throw ();
- extern int clock_settime (clockid_t __clock_id, __const struct timespec *__tp)
- throw ();
- extern int clock_nanosleep (clockid_t __clock_id, int __flags,
- __const struct timespec *__req,
- struct timespec *__rem);
- extern int clock_getcpuclockid (pid_t __pid, clockid_t *__clock_id) throw ();
- extern int timer_create (clockid_t __clock_id,
- struct sigevent *__restrict __evp,
- timer_t *__restrict __timerid) throw ();
- extern int timer_delete (timer_t __timerid) throw ();
- extern int timer_settime (timer_t __timerid, int __flags,
- __const struct itimerspec *__restrict __value,
- struct itimerspec *__restrict __ovalue) throw ();
- extern int timer_gettime (timer_t __timerid, struct itimerspec *__value)
- throw ();
- extern int timer_getoverrun (timer_t __timerid) throw ();
- # 390 "/usr/include/time.h" 3 4
- extern int getdate_err;
- # 399 "/usr/include/time.h" 3 4
- extern struct tm *getdate (__const char *__string);
- # 413 "/usr/include/time.h" 3 4
- extern int getdate_r (__const char *__restrict __string,
- struct tm *__restrict __resbufp);
- }
- # 19 "src/burn/burn.h" 2
- extern char szAppHiscorePath[260];
- extern char szAppSamplesPath[260];
- # 62 "src/burn/burn.h"
- typedef unsigned char UINT8;
- typedef signed char INT8;
- typedef unsigned short UINT16;
- typedef signed short INT16;
- typedef unsigned int UINT32;
- typedef signed int INT32;
- __extension__ typedef unsigned long long UINT64;
- __extension__ typedef long long INT64;
- # 1 "src/burn/state.h" 1
- extern "C" {
- # 14 "src/burn/state.h"
- INT32 BurnAreaScan(INT32 nAction, INT32* pnMin);
- # 34 "src/burn/state.h"
- struct BurnArea { void *Data; UINT32 nLen; INT32 nAddress; char *szName; };
- extern INT32 ( *BurnAcb) (struct BurnArea* pba);
- inline static void ScanVar(void* pv, INT32 nSize, char* szName)
- {
- struct BurnArea ba;
- memset(&ba, 0, sizeof(ba));
- ba.Data = pv;
- ba.nLen = nSize;
- ba.szName = szName;
- BurnAcb(&ba);
- }
- # 71 "src/burn/state.h"
- }
- # 77 "src/burn/burn.h" 2
- # 1 "src/burn/cheat.h" 1
- extern bool bCheatsAllowed;
- struct CheatAddressInfo {
- INT32 nCPU;
- INT32 nAddress;
- UINT32 nValue;
- UINT32 nOriginalValue;
- };
- struct CheatOption {
- char szOptionName[(128)];
- struct CheatAddressInfo AddressInfo[(512) + 1];
- };
- struct CheatInfo {
- struct CheatInfo* pNext;
- struct CheatInfo* pPrevious;
- INT32 nType;
- INT32 nStatus;
- INT32 nCurrent;
- INT32 nDefault;
- char szCheatName[(128)];
- struct CheatOption* pOption[(512)];
- };
- extern CheatInfo* pCheatInfo;
- INT32 CheatUpdate();
- INT32 CheatEnable(INT32 nCheat, INT32 nOption);
- INT32 CheatApply();
- INT32 CheatInit();
- void CheatExit();
- extern UINT32 CheatSearchShowResultAddresses[3];
- extern UINT32 CheatSearchShowResultValues[3];
- INT32 CheatSearchInit();
- void CheatSearchExit();
- void CheatSearchStart();
- UINT32 CheatSearchValueNoChange();
- UINT32 CheatSearchValueChange();
- UINT32 CheatSearchValueDecreased();
- UINT32 CheatSearchValueIncreased();
- void CheatSearchDumptoFile();
- typedef void (*CheatSearchInitCallback)();
- extern CheatSearchInitCallback CheatSearchInitCallbackFunction;
- void CheatSearchExcludeAddressRange(UINT32 nStart, UINT32 nEnd);
- # 78 "src/burn/burn.h" 2
- # 1 "src/burn/hiscore.h" 1
- extern INT32 EnableHiscores;
- void HiscoreInit();
- void HiscoreReset();
- void HiscoreApply();
- void HiscoreExit();
- # 79 "src/burn/burn.h" 2
- extern INT32 nBurnVer;
- enum BurnCartrigeCommand { CART_INIT_START, CART_INIT_END, CART_EXIT };
- extern INT32 ( *BurnExtLoadRom)(UINT8* Dest, INT32* pnWrote, INT32 i);
- extern INT32 ( *BurnExtProgressRangeCallback)(double dProgressRange);
- extern INT32 ( *BurnExtProgressUpdateCallback)(double dProgress, const char* pszText, bool bAbs);
- extern INT32 ( *BurnExtCartridgeSetupCallback)(BurnCartrigeCommand nCommand);
- extern UINT32 ( *BurnHighCol) (INT32 r, INT32 g, INT32 b, INT32 i);
- extern UINT32 nCurrentFrame;
- inline static INT32 GetCurrentFrame() {
- return nCurrentFrame;
- }
- inline static void SetCurrentFrame(const UINT32 n) {
- nCurrentFrame = n;
- }
- # 127 "src/burn/burn.h"
- struct BurnRomInfo {
- char szName[100];
- UINT32 nLen;
- UINT32 nCrc;
- UINT32 nType;
- };
- struct BurnSampleInfo {
- char szName[100];
- UINT32 nFlags;
- };
- # 151 "src/burn/burn.h"
- struct BurnInputInfo {
- char* szName;
- UINT8 nType;
- union {
- UINT8* pVal;
- UINT16* pShortVal;
- };
- char* szInfo;
- };
- struct BurnDIPInfo {
- INT32 nInput;
- UINT8 nFlags;
- UINT8 nMask;
- UINT8 nSetting;
- char* szText;
- };
- extern bool bBurnUseMMX;
- extern bool bBurnUseASMCPUEmulation;
- extern UINT32 nFramesEmulated;
- extern UINT32 nFramesRendered;
- extern clock_t starttime;
- extern bool bForce60Hz;
- extern INT32 nBurnFPS;
- extern INT32 nBurnCPUSpeedAdjust;
- extern UINT32 nBurnDrvCount;
- extern UINT32 nBurnDrvActive;
- extern UINT32 nBurnDrvSelect[8];
- extern INT32 nMaxPlayers;
- extern UINT8 *pBurnDraw;
- extern INT32 nBurnPitch;
- extern INT32 nBurnBpp;
- extern UINT8 nBurnLayer;
- extern UINT8 nSpriteEnable;
- extern INT32 nBurnSoundRate;
- extern INT32 nBurnSoundLen;
- extern INT16* pBurnSoundOut;
- extern INT32 nInterpolation;
- extern INT32 nFMInterpolation;
- extern UINT32 *pBurnDrvPalette;
- extern INT32 ( *bprintf) (INT32 nStatus, char* szFormat, ...);
- INT32 BurnLibInit();
- INT32 BurnLibExit();
- INT32 BurnDrvInit();
- INT32 BurnDrvExit();
- INT32 BurnDrvCartridgeSetup(BurnCartrigeCommand nCommand);
- INT32 BurnDrvFrame();
- INT32 BurnDrvRedraw();
- INT32 BurnRecalcPal();
- INT32 BurnDrvGetPaletteEntries();
- INT32 BurnSetProgressRange(double dProgressRange);
- INT32 BurnUpdateProgress(double dProgressStep, const char* pszText, bool bAbs);
- void BurnLocalisationSetName(char *szName, char *szLongName);
- # 250 "src/burn/burn.h"
- char* BurnDrvGetText(UINT32 i);
- char* BurnDrvGetTextA(UINT32 i);
- INT32 BurnDrvGetZipName(char** pszName, UINT32 i);
- INT32 BurnDrvGetRomInfo(struct BurnRomInfo *pri, UINT32 i);
- INT32 BurnDrvGetRomName(char** pszName, UINT32 i, INT32 nAka);
- INT32 BurnDrvGetInputInfo(struct BurnInputInfo* pii, UINT32 i);
- INT32 BurnDrvGetDIPInfo(struct BurnDIPInfo* pdi, UINT32 i);
- INT32 BurnDrvGetVisibleSize(INT32* pnWidth, INT32* pnHeight);
- INT32 BurnDrvGetVisibleOffs(INT32* pnLeft, INT32* pnTop);
- INT32 BurnDrvGetFullSize(INT32* pnWidth, INT32* pnHeight);
- INT32 BurnDrvGetAspect(INT32* pnXAspect, INT32* pnYAspect);
- INT32 BurnDrvGetHardwareCode();
- INT32 BurnDrvGetFlags();
- bool BurnDrvIsWorking();
- INT32 BurnDrvGetMaxPlayers();
- INT32 BurnDrvSetVisibleSize(INT32 pnWidth, INT32 pnHeight);
- INT32 BurnDrvSetAspect(INT32 pnXAspect, INT32 pnYAspect);
- INT32 BurnDrvGetGenreFlags();
- INT32 BurnDrvGetFamilyFlags();
- INT32 BurnDrvGetSampleInfo(struct BurnSampleInfo *pri, UINT32 i);
- INT32 BurnDrvGetSampleName(char** pszName, UINT32 i, INT32 nAka);
- void Reinitialise();
- extern bool bDoIpsPatch;
- void IpsApplyPatches(UINT8* base, char* rom_name);
- # 529 "src/burn/burn.h"
- }
- # 21 "src/burn/burnint.h" 2
- typedef union
- {
- struct { UINT8 l,h,h2,h3; } b;
- struct { UINT16 l,h; } w;
- UINT32 d;
- } PAIR;
- # 42 "src/burn/burnint.h"
- struct BurnDriver {
- char* szShortName;
- char* szParent;
- char* szBoardROM;
- char* szSampleName;
- char* szDate;
- char* szFullNameA; char* szCommentA; char* szManufacturerA; char* szSystemA;
- wchar_t* szFullNameW; wchar_t* szCommentW; wchar_t* szManufacturerW; wchar_t* szSystemW;
- INT32 Flags;
- INT32 Players;
- INT32 Hardware;
- INT32 Genre;
- INT32 Family;
- INT32 (*GetZipName)(char** pszName, UINT32 i);
- INT32 (*GetRomInfo)(struct BurnRomInfo* pri, UINT32 i);
- INT32 (*GetRomName)(char** pszName, UINT32 i, INT32 nAka);
- INT32 (*GetSampleInfo)(struct BurnSampleInfo* pri, UINT32 i);
- INT32 (*GetSampleName)(char** pszName, UINT32 i, INT32 nAka);
- INT32 (*GetInputInfo)(struct BurnInputInfo* pii, UINT32 i);
- INT32 (*GetDIPInfo)(struct BurnDIPInfo* pdi, UINT32 i);
- INT32 (*Init)(); INT32 (*Exit)(); INT32 (*Frame)(); INT32 (*Redraw)(); INT32 (*AreaScan)(INT32 nAction, INT32* pnMin);
- UINT8* pRecalcPal; UINT32 nPaletteEntries;
- INT32 nWidth, nHeight; INT32 nXAspect, nYAspect;
- };
- # 1 "src/burn/stdfunc.h" 1
- # 76 "src/burn/burnint.h" 2
- INT32 BurnSetRefreshRate(double dRefreshRate);
- INT32 BurnByteswap(UINT8* pm,INT32 nLen);
- INT32 BurnClearScreen();
- INT32 BurnLoadRom(UINT8* Dest, INT32 i, INT32 nGap);
- INT32 BurnXorRom(UINT8* Dest, INT32 i, INT32 nGap);
- INT32 BurnLoadBitField(UINT8* pDest, UINT8* pSrc, INT32 nField, INT32 nSrcLen);
- extern UINT16* pTransDraw;
- void BurnTransferClear();
- INT32 BurnTransferCopy(UINT32* pPalette);
- void BurnTransferExit();
- INT32 BurnTransferInit();
- inline static void PutPix(UINT8* pPix, UINT32 c)
- {
- *((UINT16*)pPix) = (UINT16)c;
- }
- # 127 "src/burn/burnint.h"
- struct cpu_core_config {
- void (*open)(INT32);
- void (*close)();
- UINT8 (*read)(UINT32);
- void (*write)(UINT32, UINT8);
- INT32 (*active)();
- INT32 (*totalcycles)();
- void (*newframe)();
- INT32 (*run)(INT32);
- void (*runend)();
- void (*reset)();
- UINT64 nMemorySize;
- UINT32 nAddressXor;
- };
- void CpuCheatRegister(INT32 type, cpu_core_config *config);
- void BurnInitMemoryManager();
- UINT8 *BurnMalloc(INT32 size);
- void _BurnFree(void *ptr);
- void BurnExitMemoryManager();
- # 161 "src/burn/burnint.h"
- extern UINT8 Debug_BurnTransferInitted;
- extern UINT8 Debug_BurnGunInitted;
- extern UINT8 Debug_BurnLedInitted;
- extern UINT8 Debug_HiscoreInitted;
- extern UINT8 Debug_GenericTilesInitted;
- extern UINT8 DebugDev_8255PPIInitted;
- extern UINT8 DebugDev_EEPROMInitted;
- extern UINT8 DebugDev_PandoraInitted;
- extern UINT8 DebugDev_SeibuSndInitted;
- extern UINT8 DebugDev_TimeKprInitted;
- extern UINT8 DebugSnd_AY8910Initted;
- extern UINT8 DebugSnd_Y8950Initted;
- extern UINT8 DebugSnd_YM2151Initted;
- extern UINT8 DebugSnd_YM2203Initted;
- extern UINT8 DebugSnd_YM2413Initted;
- extern UINT8 DebugSnd_YM2608Initted;
- extern UINT8 DebugSnd_YM2610Initted;
- extern UINT8 DebugSnd_YM2612Initted;
- extern UINT8 DebugSnd_YM3526Initted;
- extern UINT8 DebugSnd_YM3812Initted;
- extern UINT8 DebugSnd_YMF278BInitted;
- extern UINT8 DebugSnd_DACInitted;
- extern UINT8 DebugSnd_ES5506Initted;
- extern UINT8 DebugSnd_ES8712Initted;
- extern UINT8 DebugSnd_ICS2115Initted;
- extern UINT8 DebugSnd_IremGA20Initted;
- extern UINT8 DebugSnd_K007232Initted;
- extern UINT8 DebugSnd_K051649Initted;
- extern UINT8 DebugSnd_K053260Initted;
- extern UINT8 DebugSnd_K054539Initted;
- extern UINT8 DebugSnd_MSM5205Initted;
- extern UINT8 DebugSnd_MSM6295Initted;
- extern UINT8 DebugSnd_NamcoSndInitted;
- extern UINT8 DebugSnd_RF5C68Initted;
- extern UINT8 DebugSnd_SAA1099Initted;
- extern UINT8 DebugSnd_SamplesInitted;
- extern UINT8 DebugSnd_SegaPCMInitted;
- extern UINT8 DebugSnd_SN76496Initted;
- extern UINT8 DebugSnd_UPD7759Initted;
- extern UINT8 DebugSnd_X1010Initted;
- extern UINT8 DebugSnd_YMZ280BInitted;
- extern UINT8 DebugCPU_ARM7Initted;
- extern UINT8 DebugCPU_ARMInitted;
- extern UINT8 DebugCPU_H6280Initted;
- extern UINT8 DebugCPU_HD6309Initted;
- extern UINT8 DebugCPU_KonamiInitted;
- extern UINT8 DebugCPU_M6502Initted;
- extern UINT8 DebugCPU_M6800Initted;
- extern UINT8 DebugCPU_M6805Initted;
- extern UINT8 DebugCPU_M6809Initted;
- extern UINT8 DebugCPU_S2650Initted;
- extern UINT8 DebugCPU_SekInitted;
- extern UINT8 DebugCPU_VezInitted;
- extern UINT8 DebugCPU_ZetInitted;
- extern UINT8 DebugCPU_I8039Initted;
- extern UINT8 DebugCPU_SH2Initted;
- void DebugTrackerExit();
- # 2 "src/burn/tiles_generic.h" 2
- extern UINT8* pTileData;
- extern INT32 nScreenWidth, nScreenHeight;
- INT32 GenericTilesInit();
- INT32 GenericTilesExit();
- # 19 "src/burn/tiles_generic.h"
- void GfxDecode(INT32 num, INT32 numPlanes, INT32 xSize, INT32 ySize, INT32 planeoffsets[], INT32 xoffsets[], INT32 yoffsets[], INT32 modulo, UINT8 *pSrc, UINT8 *pDest);
- void GfxDecodeSingle(INT32 which, INT32 numPlanes, INT32 xSize, INT32 ySize, INT32 planeoffsets[], INT32 xoffsets[], INT32 yoffsets[], INT32 modulo, UINT8 *pSrc, UINT8 *pDest);
- void RenderZoomedTile(UINT16 *pDestDraw, UINT8 *gfx, INT32 code, INT32 color, INT32 trans_color, INT32 sx, INT32 sy, INT32 flipx, INT32 flipy, INT32 width, INT32 height, INT32 zoomx, INT32 zoomy);
- void RenderTileTranstab(UINT16 *dest, UINT8 *gfx, INT32 code, INT32 color, INT32 trans_col, INT32 sx, INT32 sy, INT32 flipx, INT32 flipy, INT32 width, INT32 height, UINT8 *tab);
- void Render8x8Tile(UINT16* pDestDraw, INT32 nTileNumber, INT32 StartX, INT32 StartY, INT32 nTilePalette, INT32 nColourDepth, INT32 nPaletteOffset, UINT8 *pTile);
- void Render8x8Tile_Clip(UINT16* pDestDraw, INT32 nTileNumber, INT32 StartX, INT32 StartY, INT32 nTilePalette, INT32 nColourDepth, INT32 nPaletteOffset, UINT8 *pTile);
- void Render8x8Tile_FlipX(UINT16* pDestDraw, INT32 nTileNumber, INT32 StartX, INT32 StartY, INT32 nTilePalette, INT32 nColourDepth, INT32 nPaletteOffset, UINT8 *pTile);
- void Render8x8Tile_FlipX_Clip(UINT16* pDestDraw, INT32 nTileNumber, INT32 StartX, INT32 StartY, INT32 nTilePalette, INT32 nColourDepth, INT32 nPaletteOffset, UINT8 *pTile);
- void Render8x8Tile_FlipY(UINT16* pDestDraw, INT32 nTileNumber, INT32 StartX, INT32 StartY, INT32 nTilePalette, INT32 nColourDepth, INT32 nPaletteOffset, UINT8 *pTile);
- void Render8x8Tile_FlipY_Clip(UINT16* pDestDraw, INT32 nTileNumber, INT32 StartX, INT32 StartY, INT32 nTilePalette, INT32 nColourDepth, INT32 nPaletteOffset, UINT8 *pTile);
- void Render8x8Tile_FlipXY(UINT16* pDestDraw, INT32 nTileNumber, INT32 StartX, INT32 StartY, INT32 nTilePalette, INT32 nColourDepth, INT32 nPaletteOffset, UINT8 *pTile);
- void Render8x8Tile_FlipXY_Clip(UINT16* pDestDraw, INT32 nTileNumber, INT32 StartX, INT32 StartY, INT32 nTilePalette, INT32 nColourDepth, INT32 nPaletteOffset, UINT8 *pTile);
- void Render8x8Tile_Mask(UINT16* pDestDraw, INT32 nTileNumber, INT32 StartX, INT32 StartY, INT32 nTilePalette, INT32 nColourDepth, INT32 nMaskColour, INT32 nPaletteOffset, UINT8 *pTile);
- void Render8x8Tile_Mask_Clip(UINT16* pDestDraw, INT32 nTileNumber, INT32 StartX, INT32 StartY, INT32 nTilePalette, INT32 nColourDepth, INT32 nMaskColour, INT32 nPaletteOffset, UINT8 *pTile);
- void Render8x8Tile_Mask_FlipX(UINT16* pDestDraw, INT32 nTileNumber, INT32 StartX, INT32 StartY, INT32 nTilePalette, INT32 nColourDepth, INT32 nMaskColour, INT32 nPaletteOffset, UINT8 *pTile);
- void Render8x8Tile_Mask_FlipX_Clip(UINT16* pDestDraw, INT32 nTileNumber, INT32 StartX, INT32 StartY, INT32 nTilePalette, INT32 nColourDepth, INT32 nMaskColour, INT32 nPaletteOffset, UINT8 *pTile);
- void Render8x8Tile_Mask_FlipY(UINT16* pDestDraw, INT32 nTileNumber, INT32 StartX, INT32 StartY, INT32 nTilePalette, INT32 nColourDepth, INT32 nMaskColour, INT32 nPaletteOffset, UINT8 *pTile);
- void Render8x8Tile_Mask_FlipY_Clip(UINT16* pDestDraw, INT32 nTileNumber, INT32 StartX, INT32 StartY, INT32 nTilePalette, INT32 nColourDepth, INT32 nMaskColour, INT32 nPaletteOffset, UINT8 *pTile);
- void Render8x8Tile_Mask_FlipXY(UINT16* pDestDraw, INT32 nTileNumber, INT32 StartX, INT32 StartY, INT32 nTilePalette, INT32 nColourDepth, INT32 nMaskColour, INT32 nPaletteOffset, UINT8 *pTile);
- void Render8x8Tile_Mask_FlipXY_Clip(UINT16* pDestDraw, INT32 nTileNumber, INT32 StartX, INT32 StartY, INT32 nTilePalette, INT32 nColourDepth, INT32 nMaskColour, INT32 nPaletteOffset, UINT8 *pTile);
- void Render16x16Tile(UINT16* pDestDraw, INT32 nTileNumber, INT32 StartX, INT32 StartY, INT32 nTilePalette, INT32 nColourDepth, INT32 nPaletteOffset, UINT8 *pTile);
- void Render16x16Tile_Clip(UINT16* pDestDraw, INT32 nTileNumber, INT32 StartX, INT32 StartY, INT32 nTilePalette, INT32 nColourDepth, INT32 nPaletteOffset, UINT8 *pTile);
- void Render16x16Tile_FlipX(UINT16* pDestDraw, INT32 nTileNumber, INT32 StartX, INT32 StartY, INT32 nTilePalette, INT32 nColourDepth, INT32 nPaletteOffset, UINT8 *pTile);
- void Render16x16Tile_FlipX_Clip(UINT16* pDestDraw, INT32 nTileNumber, INT32 StartX, INT32 StartY, INT32 nTilePalette, INT32 nColourDepth, INT32 nPaletteOffset, UINT8 *pTile);
- void Render16x16Tile_FlipY(UINT16* pDestDraw, INT32 nTileNumber, INT32 StartX, INT32 StartY, INT32 nTilePalette, INT32 nColourDepth, INT32 nPaletteOffset, UINT8 *pTile);
- void Render16x16Tile_FlipY_Clip(UINT16* pDestDraw, INT32 nTileNumber, INT32 StartX, INT32 StartY, INT32 nTilePalette, INT32 nColourDepth, INT32 nPaletteOffset, UINT8 *pTile);
- void Render16x16Tile_FlipXY(UINT16* pDestDraw, INT32 nTileNumber, INT32 StartX, INT32 StartY, INT32 nTilePalette, INT32 nColourDepth, INT32 nPaletteOffset, UINT8 *pTile);
- void Render16x16Tile_FlipXY_Clip(UINT16* pDestDraw, INT32 nTileNumber, INT32 StartX, INT32 StartY, INT32 nTilePalette, INT32 nColourDepth, INT32 nPaletteOffset, UINT8 *pTile);
- void Render16x16Tile_Mask(UINT16* pDestDraw, INT32 nTileNumber, INT32 StartX, INT32 StartY, INT32 nTilePalette, INT32 nColourDepth, INT32 nMaskColour, INT32 nPaletteOffset, UINT8 *pTile);
- void Render16x16Tile_Mask_Clip(UINT16* pDestDraw, INT32 nTileNumber, INT32 StartX, INT32 StartY, INT32 nTilePalette, INT32 nColourDepth, INT32 nMaskColour, INT32 nPaletteOffset, UINT8 *pTile);
- void Render16x16Tile_Mask_FlipX(UINT16* pDestDraw, INT32 nTileNumber, INT32 StartX, INT32 StartY, INT32 nTilePalette, INT32 nColourDepth, INT32 nMaskColour, INT32 nPaletteOffset, UINT8 *pTile);
- void Render16x16Tile_Mask_FlipX_Clip(UINT16* pDestDraw, INT32 nTileNumber, INT32 StartX, INT32 StartY, INT32 nTilePalette, INT32 nColourDepth, INT32 nMaskColour, INT32 nPaletteOffset, UINT8 *pTile);
- void Render16x16Tile_Mask_FlipY(UINT16* pDestDraw, INT32 nTileNumber, INT32 StartX, INT32 StartY, INT32 nTilePalette, INT32 nColourDepth, INT32 nMaskColour, INT32 nPaletteOffset, UINT8 *pTile);
- void Render16x16Tile_Mask_FlipY_Clip(UINT16* pDestDraw, INT32 nTileNumber, INT32 StartX, INT32 StartY, INT32 nTilePalette, INT32 nColourDepth, INT32 nMaskColour, INT32 nPaletteOffset, UINT8 *pTile);
- void Render16x16Tile_Mask_FlipXY(UINT16* pDestDraw, INT32 nTileNumber, INT32 StartX, INT32 StartY, INT32 nTilePalette, INT32 nColourDepth, INT32 nMaskColour, INT32 nPaletteOffset, UINT8 *pTile);
- void Render16x16Tile_Mask_FlipXY_Clip(UINT16* pDestDraw, INT32 nTileNumber, INT32 StartX, INT32 StartY, INT32 nTilePalette, INT32 nColourDepth, INT32 nMaskColour, INT32 nPaletteOffset, UINT8 *pTile);
- void Render32x32Tile(UINT16* pDestDraw, INT32 nTileNumber, INT32 StartX, INT32 StartY, INT32 nTilePalette, INT32 nColourDepth, INT32 nPaletteOffset, UINT8 *pTile);
- void Render32x32Tile_Clip(UINT16* pDestDraw, INT32 nTileNumber, INT32 StartX, INT32 StartY, INT32 nTilePalette, INT32 nColourDepth, INT32 nPaletteOffset, UINT8 *pTile);
- void Render32x32Tile_FlipX(UINT16* pDestDraw, INT32 nTileNumber, INT32 StartX, INT32 StartY, INT32 nTilePalette, INT32 nColourDepth, INT32 nPaletteOffset, UINT8 *pTile);
- void Render32x32Tile_FlipX_Clip(UINT16* pDestDraw, INT32 nTileNumber, INT32 StartX, INT32 StartY, INT32 nTilePalette, INT32 nColourDepth, INT32 nPaletteOffset, UINT8 *pTile);
- void Render32x32Tile_FlipY(UINT16* pDestDraw, INT32 nTileNumber, INT32 StartX, INT32 StartY, INT32 nTilePalette, INT32 nColourDepth, INT32 nPaletteOffset, UINT8 *pTile);
- void Render32x32Tile_FlipY_Clip(UINT16* pDestDraw, INT32 nTileNumber, INT32 StartX, INT32 StartY, INT32 nTilePalette, INT32 nColourDepth, INT32 nPaletteOffset, UINT8 *pTile);
- void Render32x32Tile_FlipXY(UINT16* pDestDraw, INT32 nTileNumber, INT32 StartX, INT32 StartY, INT32 nTilePalette, INT32 nColourDepth, INT32 nPaletteOffset, UINT8 *pTile);
- void Render32x32Tile_FlipXY_Clip(UINT16* pDestDraw, INT32 nTileNumber, INT32 StartX, INT32 StartY, INT32 nTilePalette, INT32 nColourDepth, INT32 nPaletteOffset, UINT8 *pTile);
- void Render32x32Tile_Mask(UINT16* pDestDraw, INT32 nTileNumber, INT32 StartX, INT32 StartY, INT32 nTilePalette, INT32 nColourDepth, INT32 nMaskColour, INT32 nPaletteOffset, UINT8 *pTile);
- void Render32x32Tile_Mask_Clip(UINT16* pDestDraw, INT32 nTileNumber, INT32 StartX, INT32 StartY, INT32 nTilePalette, INT32 nColourDepth, INT32 nMaskColour, INT32 nPaletteOffset, UINT8 *pTile);
- void Render32x32Tile_Mask_FlipX(UINT16* pDestDraw, INT32 nTileNumber, INT32 StartX, INT32 StartY, INT32 nTilePalette, INT32 nColourDepth, INT32 nMaskColour, INT32 nPaletteOffset, UINT8 *pTile);
- void Render32x32Tile_Mask_FlipX_Clip(UINT16* pDestDraw, INT32 nTileNumber, INT32 StartX, INT32 StartY, INT32 nTilePalette, INT32 nColourDepth, INT32 nMaskColour, INT32 nPaletteOffset, UINT8 *pTile);
- void Render32x32Tile_Mask_FlipY(UINT16* pDestDraw, INT32 nTileNumber, INT32 StartX, INT32 StartY, INT32 nTilePalette, INT32 nColourDepth, INT32 nMaskColour, INT32 nPaletteOffset, UINT8 *pTile);
- void Render32x32Tile_Mask_FlipY_Clip(UINT16* pDestDraw, INT32 nTileNumber, INT32 StartX, INT32 StartY, INT32 nTilePalette, INT32 nColourDepth, INT32 nMaskColour, INT32 nPaletteOffset, UINT8 *pTile);
- void Render32x32Tile_Mask_FlipXY(UINT16* pDestDraw, INT32 nTileNumber, INT32 StartX, INT32 StartY, INT32 nTilePalette, INT32 nColourDepth, INT32 nMaskColour, INT32 nPaletteOffset, UINT8 *pTile);
- void Render32x32Tile_Mask_FlipXY_Clip(UINT16* pDestDraw, INT32 nTileNumber, INT32 StartX, INT32 StartY, INT32 nTilePalette, INT32 nColourDepth, INT32 nMaskColour, INT32 nPaletteOffset, UINT8 *pTile);
- void RenderCustomTile(UINT16* pDestDraw, INT32 nWidth, INT32 nHeight, INT32 nTileNumber, INT32 StartX, INT32 StartY, INT32 nTilePalette, INT32 nColourDepth, INT32 nPaletteOffset, UINT8 *pTile);
- void RenderCustomTile_Clip(UINT16* pDestDraw, INT32 nWidth, INT32 nHeight, INT32 nTileNumber, INT32 StartX, INT32 StartY, INT32 nTilePalette, INT32 nColourDepth, INT32 nPaletteOffset, UINT8 *pTile);
- void RenderCustomTile_FlipX(UINT16* pDestDraw, INT32 nWidth, INT32 nHeight, INT32 nTileNumber, INT32 StartX, INT32 StartY, INT32 nTilePalette, INT32 nColourDepth, INT32 nPaletteOffset, UINT8 *pTile);
- void RenderCustomTile_FlipX_Clip(UINT16* pDestDraw, INT32 nWidth, INT32 nHeight, INT32 nTileNumber, INT32 StartX, INT32 StartY, INT32 nTilePalette, INT32 nColourDepth, INT32 nPaletteOffset, UINT8 *pTile);
- void RenderCustomTile_FlipY(UINT16* pDestDraw, INT32 nWidth, INT32 nHeight, INT32 nTileNumber, INT32 StartX, INT32 StartY, INT32 nTilePalette, INT32 nColourDepth, INT32 nPaletteOffset, UINT8 *pTile);
- void RenderCustomTile_FlipY_Clip(UINT16* pDestDraw, INT32 nWidth, INT32 nHeight, INT32 nTileNumber, INT32 StartX, INT32 StartY, INT32 nTilePalette, INT32 nColourDepth, INT32 nPaletteOffset, UINT8 *pTile);
- void RenderCustomTile_FlipXY(UINT16* pDestDraw, INT32 nWidth, INT32 nHeight, INT32 nTileNumber, INT32 StartX, INT32 StartY, INT32 nTilePalette, INT32 nColourDepth, INT32 nPaletteOffset, UINT8 *pTile);
- void RenderCustomTile_FlipXY_Clip(UINT16* pDestDraw, INT32 nWidth, INT32 nHeight, INT32 nTileNumber, INT32 StartX, INT32 StartY, INT32 nTilePalette, INT32 nColourDepth, INT32 nPaletteOffset, UINT8 *pTile);
- void RenderCustomTile_Mask(UINT16* pDestDraw, INT32 nWidth, INT32 nHeight, INT32 nTileNumber, INT32 StartX, INT32 StartY, INT32 nTilePalette, INT32 nColourDepth, INT32 nMaskColour, INT32 nPaletteOffset, UINT8 *pTile);
- void RenderCustomTile_Mask_Clip(UINT16* pDestDraw, INT32 nWidth, INT32 nHeight, INT32 nTileNumber, INT32 StartX, INT32 StartY, INT32 nTilePalette, INT32 nColourDepth, INT32 nMaskColour, INT32 nPaletteOffset, UINT8 *pTile);
- void RenderCustomTile_Mask_FlipX(UINT16* pDestDraw, INT32 nWidth, INT32 nHeight, INT32 nTileNumber, INT32 StartX, INT32 StartY, INT32 nTilePalette, INT32 nColourDepth, INT32 nMaskColour, INT32 nPaletteOffset, UINT8 *pTile);
- void RenderCustomTile_Mask_FlipX_Clip(UINT16* pDestDraw, INT32 nWidth, INT32 nHeight, INT32 nTileNumber, INT32 StartX, INT32 StartY, INT32 nTilePalette, INT32 nColourDepth, INT32 nMaskColour, INT32 nPaletteOffset, UINT8 *pTile);
- void RenderCustomTile_Mask_FlipY(UINT16* pDestDraw, INT32 nWidth, INT32 nHeight, INT32 nTileNumber, INT32 StartX, INT32 StartY, INT32 nTilePalette, INT32 nColourDepth, INT32 nMaskColour, INT32 nPaletteOffset, UINT8 *pTile);
- void RenderCustomTile_Mask_FlipY_Clip(UINT16* pDestDraw, INT32 nWidth, INT32 nHeight, INT32 nTileNumber, INT32 StartX, INT32 StartY, INT32 nTilePalette, INT32 nColourDepth, INT32 nMaskColour, INT32 nPaletteOffset, UINT8 *pTile);
- void RenderCustomTile_Mask_FlipXY(UINT16* pDestDraw, INT32 nWidth, INT32 nHeight, INT32 nTileNumber, INT32 StartX, INT32 StartY, INT32 nTilePalette, INT32 nColourDepth, INT32 nMaskColour, INT32 nPaletteOffset, UINT8 *pTile);
- void RenderCustomTile_Mask_FlipXY_Clip(UINT16* pDestDraw, INT32 nWidth, INT32 nHeight, INT32 nTileNumber, INT32 StartX, INT32 StartY, INT32 nTilePalette, INT32 nColourDepth, INT32 nMaskColour, INT32 nPaletteOffset, UINT8 *pTile);
- # 5 "src/burn/drv/dataeast/d_cninja.cpp" 2
- # 1 "src/cpu/sek.h" 1
- # 17 "src/cpu/sek.h"
- # 1 "src/cpu/m68k/m68k.h" 1
- extern "C" {
- # 66 "src/cpu/m68k/m68k.h"
- enum
- {
- M68K_CPU_TYPE_INVALID,
- M68K_CPU_TYPE_68000,
- M68K_CPU_TYPE_68008,
- M68K_CPU_TYPE_68010,
- M68K_CPU_TYPE_68EC020,
- M68K_CPU_TYPE_68020,
- M68K_CPU_TYPE_68030,
- M68K_CPU_TYPE_68040
- };
- typedef enum
- {
- M68K_REG_D0,
- M68K_REG_D1,
- M68K_REG_D2,
- M68K_REG_D3,
- M68K_REG_D4,
- M68K_REG_D5,
- M68K_REG_D6,
- M68K_REG_D7,
- M68K_REG_A0,
- M68K_REG_A1,
- M68K_REG_A2,
- M68K_REG_A3,
- M68K_REG_A4,
- M68K_REG_A5,
- M68K_REG_A6,
- M68K_REG_A7,
- M68K_REG_PC,
- M68K_REG_SR,
- M68K_REG_SP,
- M68K_REG_USP,
- M68K_REG_ISP,
- M68K_REG_MSP,
- M68K_REG_SFC,
- M68K_REG_DFC,
- M68K_REG_VBR,
- M68K_REG_CACR,
- M68K_REG_CAAR,
- M68K_REG_PREF_ADDR,
- M68K_REG_PREF_DATA,
- M68K_REG_PPC,
- M68K_REG_IR,
- M68K_REG_CPU_TYPE
- } m68k_register_t;
- # 148 "src/cpu/m68k/m68k.h"
- unsigned int m68k_read_memory_8(unsigned int address);
- unsigned int m68k_read_memory_16(unsigned int address);
- unsigned int m68k_read_memory_32(unsigned int address);
- unsigned int m68k_read_immediate_16(unsigned int address);
- unsigned int m68k_read_immediate_32(unsigned int address);
- unsigned int m68k_read_pcrelative_8(unsigned int address);
- unsigned int m68k_read_pcrelative_16(unsigned int address);
- unsigned int m68k_read_pcrelative_32(unsigned int address);
- unsigned int m68k_read_disassembler_8 (unsigned int address);
- unsigned int m68k_read_disassembler_16 (unsigned int address);
- unsigned int m68k_read_disassembler_32 (unsigned int address);
- void m68k_write_memory_8(unsigned int address, unsigned int value);
- void m68k_write_memory_16(unsigned int address, unsigned int value);
- void m68k_write_memory_32(unsigned int address, unsigned int value);
- # 178 "src/cpu/m68k/m68k.h"
- void m68k_write_memory_32_pd(unsigned int address, unsigned int value);
- # 204 "src/cpu/m68k/m68k.h"
- void m68k_set_int_ack_callback(int (*callback)(int int_level));
- # 213 "src/cpu/m68k/m68k.h"
- void m68k_set_bkpt_ack_callback(void (*callback)(unsigned int data));
- void m68k_set_reset_instr_callback(void (*callback)(void));
- void m68k_set_cmpild_instr_callback(void (*callback)(unsigned int val, int reg));
- void m68k_set_rte_instr_callback(void (*callback)(void));
- # 246 "src/cpu/m68k/m68k.h"
- void m68k_set_pc_changed_callback(void (*callback)(unsigned int new_pc));
- # 256 "src/cpu/m68k/m68k.h"
- void m68k_set_fc_callback(void (*callback)(unsigned int new_fc));
- # 265 "src/cpu/m68k/m68k.h"
- void m68k_set_instr_hook_callback(void (*callback)(void));
- # 277 "src/cpu/m68k/m68k.h"
- void m68k_set_cpu_type(unsigned int cpu_type);
- void m68k_init(void);
- void m68k_pulse_reset(void);
- int m68k_execute(int num_cycles);
- int m68k_cycles_run(void);
- int m68k_cycles_remaining(void);
- void m68k_modify_timeslice(int cycles);
- void m68k_end_timeslice(void);
- void m68k_set_irq(unsigned int int_level);
- void m68k_pulse_halt(void);
- unsigned int m68k_context_size(void);
- unsigned int m68k_get_context(void* dst);
- void m68k_set_context(void* dst);
- void m68k_state_register(const char *type);
- unsigned int m68k_get_reg(void* context, m68k_register_t reg);
- void m68k_set_reg(m68k_register_t reg, unsigned int value);
- unsigned int m68k_is_valid_instruction(unsigned int instruction, unsigned int cpu_type);
- unsigned int m68k_disassemble(char* str_buff, unsigned int pc, unsigned int cpu_type);
- # 1 "src/cpu/m68k/m68kconf.h" 1
- # 181 "src/cpu/m68k/m68kconf.h"
- extern "C" {
- # 190 "src/cpu/m68k/m68kconf.h"
- void M68KResetCallback(void);
- int M68KIRQAcknowledge(int nIRQ);
- void M68KRTECallback(void);
- void M68KcmpildCallback(unsigned int val, int reg);
- unsigned int M68KFetchByte(unsigned int a);
- unsigned int M68KFetchWord(unsigned int a);
- unsigned int M68KFetchLong(unsigned int a);
- extern unsigned int (*SekDbgFetchByteDisassembler)(unsigned int);
- extern unsigned int (*SekDbgFetchWordDisassembler)(unsigned int);
- extern unsigned int (*SekDbgFetchLongDisassembler)(unsigned int);
- # 212 "src/cpu/m68k/m68kconf.h"
- unsigned int M68KReadByte(unsigned int a);
- unsigned int M68KReadWord(unsigned int a);
- unsigned int M68KReadLong(unsigned int a);
- void M68KWriteByte(unsigned int a, unsigned int d);
- void M68KWriteWord(unsigned int a, unsigned int d);
- void M68KWriteLong(unsigned int a, unsigned int d);
- }
- # 355 "src/cpu/m68k/m68k.h" 2
- }
- # 18 "src/cpu/sek.h" 2
- # 62 "src/cpu/sek.h"
- extern "C" INT32 nSekM68KContextSize[(4)];
- extern "C" INT8* SekM68KContext[(4)];
- extern "C" INT32 m68k_ICount;
- typedef UINT8 ( *pSekReadByteHandler)(UINT32 a);
- typedef void ( *pSekWriteByteHandler)(UINT32 a, UINT8 d);
- typedef UINT16 ( *pSekReadWordHandler)(UINT32 a);
- typedef void ( *pSekWriteWordHandler)(UINT32 a, UINT16 d);
- typedef UINT32 ( *pSekReadLongHandler)(UINT32 a);
- typedef void ( *pSekWriteLongHandler)(UINT32 a, UINT32 d);
- typedef INT32 ( *pSekResetCallback)();
- typedef INT32 ( *pSekRTECallback)();
- typedef INT32 ( *pSekIrqCallback)(INT32 irq);
- typedef INT32 ( *pSekCmpCallback)(UINT32 val, INT32 reg);
- extern INT32 nSekCycles[(4)], nSekCPUType[(4)];
- struct SekExt {
- UINT8* MemMap[(1 << (24 - (10))) * 3];
- pSekReadByteHandler ReadByte[(10)];
- pSekWriteByteHandler WriteByte[(10)];
- pSekReadWordHandler ReadWord[(10)];
- pSekWriteWordHandler WriteWord[(10)];
- pSekReadLongHandler ReadLong[(10)];
- pSekWriteLongHandler WriteLong[(10)];
- pSekResetCallback ResetCallback;
- pSekRTECallback RTECallback;
- pSekIrqCallback IrqCallback;
- pSekCmpCallback CmpCallback;
- };
- extern struct SekExt *SekExt[(4)], *pSekExt;
- extern INT32 nSekActive;
- extern INT32 nSekCyclesTotal, nSekCyclesScanline, nSekCyclesSegment, nSekCyclesDone, nSekCyclesToDo;
- UINT32 SekReadByte(UINT32 a);
- UINT32 SekReadWord(UINT32 a);
- UINT32 SekReadLong(UINT32 a);
- UINT32 SekFetchByte(UINT32 a);
- UINT32 SekFetchWord(UINT32 a);
- UINT32 SekFetchLong(UINT32 a);
- void SekWriteByte(UINT32 a, UINT8 d);
- void SekWriteWord(UINT32 a, UINT16 d);
- void SekWriteLong(UINT32 a, UINT32 d);
- void SekWriteByteROM(UINT32 a, UINT8 d);
- void SekWriteWordROM(UINT32 a, UINT16 d);
- void SekWriteLongROM(UINT32 a, UINT32 d);
- INT32 SekInit(INT32 nCount, INT32 nCPUType);
- INT32 SekExit();
- void SekNewFrame();
- void SekSetCyclesScanline(INT32 nCycles);
- void SekClose();
- void SekOpen(const INT32 i);
- INT32 SekGetActive();
- void SekSetIRQLine(const INT32 line, const INT32 status);
- void SekReset();
- void SekRunEnd();
- void SekRunAdjust(const INT32 nCycles);
- INT32 SekRun(const INT32 nCycles);
- inline static INT32 SekIdle(INT32 nCycles)
- {
- nSekCyclesTotal += nCycles;
- return nCycles;
- }
- inline static INT32 SekSegmentCycles()
- {
- return nSekCyclesDone + nSekCyclesToDo - m68k_ICount;
- }
- inline static INT32 SekTotalCycles()
- {
- return nSekCyclesTotal + nSekCyclesToDo - m68k_ICount;
- }
- inline static INT32 SekCurrentScanline()
- {
- return SekTotalCycles() / nSekCyclesScanline;
- }
- # 213 "src/cpu/sek.h"
- INT32 SekMapMemory(UINT8* pMemory, UINT32 nStart, UINT32 nEnd, INT32 nType);
- INT32 SekMapHandler(uintptr_t nHandler, UINT32 nStart, UINT32 nEnd, INT32 nType);
- INT32 SekSetReadByteHandler(INT32 i, pSekReadByteHandler pHandler);
- INT32 SekSetWriteByteHandler(INT32 i, pSekWriteByteHandler pHandler);
- INT32 SekSetReadWordHandler(INT32 i, pSekReadWordHandler pHandler);
- INT32 SekSetWriteWordHandler(INT32 i, pSekWriteWordHandler pHandler);
- INT32 SekSetReadLongHandler(INT32 i, pSekReadLongHandler pHandler);
- INT32 SekSetWriteLongHandler(INT32 i, pSekWriteLongHandler pHandler);
- INT32 SekSetResetCallback(pSekResetCallback pCallback);
- INT32 SekSetRTECallback(pSekRTECallback pCallback);
- INT32 SekSetIrqCallback(pSekIrqCallback pCallback);
- INT32 SekSetCmpCallback(pSekCmpCallback pCallback);
- INT32 SekGetPC(INT32 n);
- INT32 SekScan(INT32 nAction);
- # 6 "src/burn/drv/dataeast/d_cninja.cpp" 2
- # 1 "src/cpu/zet.h" 1
- # 1 "src/cpu/z80/z80.h" 1
- # 9 "src/cpu/z80/z80.h"
- typedef union
- {
- struct { UINT8 l,h,h2,h3; } b;
- struct { UINT16 l,h; } w;
- UINT32 d;
- } Z80_PAIR;
- typedef struct
- {
- Z80_PAIR prvpc,pc,sp,af,bc,de,hl,ix,iy;
- Z80_PAIR af2,bc2,de2,hl2;
- UINT8 r,r2,iff1,iff2,halt,im,i;
- UINT8 nmi_state;
- UINT8 nmi_pending;
- UINT8 irq_state;
- UINT8 after_ei;
- INT32 cycles_left;
- const struct z80_irq_daisy_chain *daisy;
- int (*irq_callback)(int irqline);
- } Z80_Regs;
- enum {
- Z80_PC=1, Z80_SP,
- Z80_A, Z80_B, Z80_C, Z80_D, Z80_E, Z80_H, Z80_L,
- Z80_AF, Z80_BC, Z80_DE, Z80_HL,
- Z80_IX, Z80_IY, Z80_AF2, Z80_BC2, Z80_DE2, Z80_HL2,
- Z80_R, Z80_I, Z80_IM, Z80_IFF1, Z80_IFF2, Z80_HALT,
- Z80_DC0, Z80_DC1, Z80_DC2, Z80_DC3
- };
- enum {
- Z80_TABLE_op,
- Z80_TABLE_cb,
- Z80_TABLE_ed,
- Z80_TABLE_xy,
- Z80_TABLE_xycb,
- Z80_TABLE_ex
- };
- enum
- {
- CPUINFO_PTR_Z80_CYCLE_TABLE = 0x18000,
- CPUINFO_PTR_Z80_CYCLE_TABLE_LAST = CPUINFO_PTR_Z80_CYCLE_TABLE + Z80_TABLE_ex
- };
- void Z80Init();
- void Z80Reset();
- void Z80Exit();
- int Z80Execute(int cycles);
- void Z80Burn(int cycles);
- void Z80SetIrqLine(int irqline, int state);
- void Z80GetContext (void *dst);
- void Z80SetContext (void *src);
- int Z80Scan(int nAction);
- INT32 z80TotalCycles();
- extern unsigned char Z80Vector;
- extern int z80_ICount;
- extern UINT32 EA;
- typedef unsigned char ( *Z80ReadIoHandler)(unsigned int a);
- typedef void ( *Z80WriteIoHandler)(unsigned int a, unsigned char v);
- typedef unsigned char ( *Z80ReadProgHandler)(unsigned int a);
- typedef void ( *Z80WriteProgHandler)(unsigned int a, unsigned char v);
- typedef unsigned char ( *Z80ReadOpHandler)(unsigned int a);
- typedef unsigned char ( *Z80ReadOpArgHandler)(unsigned int a);
- void Z80SetIOReadHandler(Z80ReadIoHandler handler);
- void Z80SetIOWriteHandler(Z80WriteIoHandler handler);
- void Z80SetProgramReadHandler(Z80ReadProgHandler handler);
- void Z80SetProgramWriteHandler(Z80WriteProgHandler handler);
- void Z80SetCPUOpReadHandler(Z80ReadOpHandler handler);
- void Z80SetCPUOpArgReadHandler(Z80ReadOpArgHandler handler);
- int ActiveZ80GetPC();
- int ActiveZ80GetBC();
- int ActiveZ80GetDE();
- int ActiveZ80GetHL();
- # 9 "src/cpu/zet.h" 2
- extern INT32 nHasZet;
- void ZetWriteByte(UINT16 address, UINT8 data);
- UINT8 ZetReadByte(UINT16 address);
- void ZetWriteRom(UINT16 address, UINT8 data);
- INT32 ZetInit(INT32 nCount);
- void ZetExit();
- void ZetNewFrame();
- void ZetOpen(INT32 nCPU);
- void ZetClose();
- INT32 ZetGetActive();
- INT32 ZetMemCallback(INT32 nStart,INT32 nEnd,INT32 nMode);
- INT32 ZetMemEnd();
- INT32 ZetMapArea(INT32 nStart, INT32 nEnd, INT32 nMode, UINT8 *Mem);
- INT32 ZetMapArea(INT32 nStart, INT32 nEnd, INT32 nMode, UINT8 *Mem01, UINT8 *Mem02);
- void ZetReset();
- INT32 ZetPc(INT32 n);
- INT32 ZetBc(INT32 n);
- INT32 ZetDe(INT32 n);
- INT32 ZetHL(INT32 n);
- INT32 ZetScan(INT32 nAction);
- INT32 ZetRun(INT32 nCycles);
- void ZetRunEnd();
- void ZetSetIRQLine(const INT32 line, const INT32 status);
- void ZetSetVector(INT32 vector);
- INT32 ZetNmi();
- INT32 ZetIdle(INT32 nCycles);
- INT32 ZetSegmentCycles();
- INT32 ZetTotalCycles();
- # 46 "src/cpu/zet.h"
- void ZetSetReadHandler(UINT8 ( *pHandler)(UINT16));
- void ZetSetWriteHandler(void ( *pHandler)(UINT16, UINT8));
- void ZetSetInHandler(UINT8 ( *pHandler)(UINT16));
- void ZetSetOutHandler(void ( *pHandler)(UINT16, UINT8));
- void ZetSetBUSREQLine(INT32 nStatus);
- # 7 "src/burn/drv/dataeast/d_cninja.cpp" 2
- # 1 "src/cpu/h6280_intf.h" 1
- void h6280_set_irq_line(INT32 irqline, INT32 state);
- void h6280_init(INT32 (*irqcallback)(INT32));
- # 13 "src/cpu/h6280_intf.h"
- void h6280MapMemory(UINT8 *src, UINT32 start, UINT32 finish, INT32 type);
- void h6280SetIrqCallbackHandler(INT32 (*callback)(INT32));
- void h6280SetlinesCallback(void (*setlines_callback)(INT32 lines));
- void h6280SetWritePortHandler(void (*write)(UINT8, UINT8));
- void h6280SetWriteHandler(void (*write)(UINT32, UINT8));
- void h6280SetReadHandler(UINT8 (*read)(UINT32));
- void h6280_write_port(UINT8 port, UINT8 data);
- void h6280_write(UINT32 address, UINT8 data);
- UINT8 h6280_read(UINT32 address);
- UINT8 h6280_fetch(UINT32 address);
- void h6280Init(INT32);
- void h6280Open(INT32);
- void h6280Reset();
- INT32 h6280Run(INT32 cycles);
- void h6280Close();
- void h6280Exit();
- extern INT32 nh6280CpuCount;
- void h6280SetIRQLine(INT32 line, INT32 state);
- INT32 h6280CpuScan(INT32 nAction);
- INT32 h6280TotalCycles();
- void h6280NewFrame();
- void h6280RunEnd();
- INT32 h6280GetActive();
- void h6280_write_rom(UINT32 address, UINT8 data);
- UINT8 h6280_irq_status_r(UINT32 offset);
- void h6280_irq_status_w(UINT32 offset, UINT8 data);
- UINT8 h6280_timer_r(UINT32);
- void h6280_timer_w(UINT32 offset, UINT8 data);
- UINT8 h6280io_get_buffer(void);
- void h6280io_set_buffer(UINT8);
- # 8 "src/burn/drv/dataeast/d_cninja.cpp" 2
- # 1 "src/burn/bitswap.h" 1
- # 9 "src/burn/drv/dataeast/d_cninja.cpp" 2
- # 1 "src/burn/drv/dataeast/deco16ic.h" 1
- extern UINT16 *deco16_pf_control[2];
- extern UINT8 *deco16_pf_ram[4];
- extern UINT8 *deco16_pf_rowscroll[4];
- extern UINT16 deco16_priority;
- void deco16_set_bank_callback(INT32 tmap, INT32 (*callback)(const INT32 bank));
- void deco16_set_color_base(INT32 tmap, INT32 base);
- void deco16_set_color_mask(INT32 tmap, INT32 mask);
- void deco16_set_transparency_mask(INT32 tmap, INT32 mask);
- void deco16_set_gfxbank(INT32 tmap, INT32 small, INT32 big);
- void deco16_set_global_offsets(INT32 x, INT32 y);
- void deco16_set_scroll_offs(INT32 tmap, INT32 size, INT32 offsetx, INT32 offsety);
- INT32 deco16_get_tilemap_size(INT32 tmap);
- extern UINT8 *deco16_prio_map;
- void deco16_clear_prio_map();
- void deco16_draw_prio_sprite(UINT16 *dest, UINT8 *gfx, INT32 code, INT32 color, INT32 sx, INT32 sy, INT32 flipx, INT32 flipy, INT32 pri);
- void deco16_draw_prio_sprite(UINT16 *dest, UINT8 *gfx, INT32 code, INT32 color, INT32 sx, INT32 sy, INT32 flipx, INT32 flipy, INT32 pri, INT32 spri);
- void deco16_draw_alphaprio_sprite(UINT32 *palette, UINT8 *gfx, INT32 code, INT32 color, INT32 sx, INT32 sy, INT32 flipx, INT32 flipy, INT32 pri, INT32 spri, INT32 alpha);
- void deco16_set_graphics(UINT8 *gfx0, INT32 len0, UINT8 *gfx1, INT32 len1, UINT8 *gfx2, INT32 len2);
- void deco16_set_graphics(INT32 num, UINT8 *gfx, INT32 len, INT32 size );
- void deco16Init(INT32 no_pf34, INT32 split, INT32 full_width);
- void deco16Reset();
- void deco16Exit();
- void deco16Scan();
- void deco16_pf12_update();
- void deco16_pf34_update();
- # 47 "src/burn/drv/dataeast/deco16ic.h"
- void deco16_draw_layer(INT32 tmap, UINT16 *dest, INT32 flags);
- void deco16_tile_decode(UINT8 *src, UINT8 *dst, INT32 len, INT32 type);
- void deco16_sprite_decode(UINT8 *gfx, INT32 len);
- void deco16_palette_recalculate(UINT32 *palette, UINT8 *pal);
- # 71 "src/burn/drv/dataeast/deco16ic.h"
- extern INT32 deco16_soundlatch;
- void deco16SoundReset();
- void deco16SoundInit(UINT8 *rom, UINT8 *ram, INT32 huc_clock, INT32 ym2203, void (ym2151_port)(UINT32,UINT32), double ym2151vol, INT32 msmclk0, double msmvol0, INT32 msmclk1, double msmvol1);
- void deco16SoundExit();
- void deco16SoundUpdate(INT16 *buf, INT32 len);
- void deco16SoundScan(INT32 nAction, INT32 *pnMin);
- void deco56_decrypt_gfx(UINT8 *rom, INT32 len);
- void deco74_decrypt_gfx(UINT8 *rom, INT32 len);
- void deco56_remap_gfx(UINT8 *rom, INT32 len);
- void deco102_decrypt_cpu(UINT8 *data, UINT8 *ops, INT32 size, INT32 address_xor, INT32 data_select_xor, INT32 opcode_select_xor);
- void deco156_decrypt(UINT8 *src, INT32 len);
- extern UINT16 *deco16_prot_ram;
- extern UINT16 *deco16_prot_inputs;
- extern UINT16 *deco16_buffer_ram;
- extern INT32 deco16_vblank;
- void deco16_66_prot_w(INT32 offset, UINT16 data, INT32 mask);
- UINT16 deco16_66_prot_r(INT32 offset);
- void deco16_60_prot_w(INT32 offset, UINT16 data, INT32 mask);
- UINT16 deco16_60_prot_r(INT32 offset);
- UINT16 deco16_104_cninja_prot_r(INT32 offset);
- UINT16 deco16_146_funkyjet_prot_r(INT32 offset);
- void deco16_104_rohga_prot_w(INT32 offset, UINT16 data, INT32 mask);
- UINT16 deco16_104_rohga_prot_r(INT32 offset);
- UINT16 deco16_104_prot_r(INT32 offset);
- void deco16_146_nitroball_prot_w(INT32 offset, UINT16 data, INT32 mask);
- UINT16 deco16_146_nitroball_prot_r(INT32 offset);
- void deco16_146_fghthist_prot_w(INT32 offset, UINT32 data, UINT32 mem_mask);
- UINT32 deco16_146_fghthist_prot_r(INT32 offset);
- # 10 "src/burn/drv/dataeast/d_cninja.cpp" 2
- # 1 "src/burn/snd/burn_ym2203.h" 1
- # 1 "src/burn/driver.h" 1
- # 11 "src/burn/driver.h"
- # 1 "/usr/include/math.h" 1 3 4
- # 30 "/usr/include/math.h" 3 4
- extern "C" {
- # 1 "/usr/include/arm-linux-gnueabihf/bits/huge_val.h" 1 3 4
- # 35 "/usr/include/math.h" 2 3 4
- # 1 "/usr/include/arm-linux-gnueabihf/bits/huge_valf.h" 1 3 4
- # 37 "/usr/include/math.h" 2 3 4
- # 1 "/usr/include/arm-linux-gnueabihf/bits/huge_vall.h" 1 3 4
- # 38 "/usr/include/math.h" 2 3 4
- # 1 "/usr/include/arm-linux-gnueabihf/bits/inf.h" 1 3 4
- # 41 "/usr/include/math.h" 2 3 4
- # 1 "/usr/include/arm-linux-gnueabihf/bits/nan.h" 1 3 4
- # 44 "/usr/include/math.h" 2 3 4
- # 1 "/usr/include/arm-linux-gnueabihf/bits/mathdef.h" 1 3 4
- # 28 "/usr/include/arm-linux-gnueabihf/bits/mathdef.h" 3 4
- typedef float float_t;
- typedef double double_t;
- # 48 "/usr/include/math.h" 2 3 4
- # 71 "/usr/include/math.h" 3 4
- # 1 "/usr/include/arm-linux-gnueabihf/bits/mathcalls.h" 1 3 4
- # 53 "/usr/include/arm-linux-gnueabihf/bits/mathcalls.h" 3 4
- extern double acos (double __x) throw (); extern double __acos (double __x) throw ();
- extern double asin (double __x) throw (); extern double __asin (double __x) throw ();
- extern double atan (double __x) throw (); extern double __atan (double __x) throw ();
- extern double atan2 (double __y, double __x) throw (); extern double __atan2 (double __y, double __x) throw ();
- extern double cos (double __x) throw (); extern double __cos (double __x) throw ();
- extern double sin (double __x) throw (); extern double __sin (double __x) throw ();
- extern double tan (double __x) throw (); extern double __tan (double __x) throw ();
- extern double cosh (double __x) throw (); extern double __cosh (double __x) throw ();
- extern double sinh (double __x) throw (); extern double __sinh (double __x) throw ();
- extern double tanh (double __x) throw (); extern double __tanh (double __x) throw ();
- extern void sincos (double __x, double *__sinx, double *__cosx) throw (); extern void __sincos (double __x, double *__sinx, double *__cosx) throw ()
- ;
- extern double acosh (double __x) throw (); extern double __acosh (double __x) throw ();
- extern double asinh (double __x) throw (); extern double __asinh (double __x) throw ();
- extern double atanh (double __x) throw (); extern double __atanh (double __x) throw ();
- extern double exp (double __x) throw (); extern double __exp (double __x) throw ();
- extern double frexp (double __x, int *__exponent) throw (); extern double __frexp (double __x, int *__exponent) throw ();
- extern double ldexp (double __x, int __exponent) throw (); extern double __ldexp (double __x, int __exponent) throw ();
- extern double log (double __x) throw (); extern double __log (double __x) throw ();
- extern double log10 (double __x) throw (); extern double __log10 (double __x) throw ();
- extern double modf (double __x, double *__iptr) throw (); extern double __modf (double __x, double *__iptr) throw ();
- extern double exp10 (double __x) throw (); extern double __exp10 (double __x) throw ();
- extern double pow10 (double __x) throw (); extern double __pow10 (double __x) throw ();
- extern double expm1 (double __x) throw (); extern double __expm1 (double __x) throw ();
- extern double log1p (double __x) throw (); extern double __log1p (double __x) throw ();
- extern double logb (double __x) throw (); extern double __logb (double __x) throw ();
- extern double exp2 (double __x) throw (); extern double __exp2 (double __x) throw ();
- extern double log2 (double __x) throw (); extern double __log2 (double __x) throw ();
- extern double pow (double __x, double __y) throw (); extern double __pow (double __x, double __y) throw ();
- extern double sqrt (double __x) throw (); extern double __sqrt (double __x) throw ();
- extern double hypot (double __x, double __y) throw (); extern double __hypot (double __x, double __y) throw ();
- extern double cbrt (double __x) throw (); extern double __cbrt (double __x) throw ();
- extern double ceil (double __x) throw () __attribute__ ((__const__)); extern double __ceil (double __x) throw () __attribute__ ((__const__));
- extern double fabs (double __x) throw () __attribute__ ((__const__)); extern double __fabs (double __x) throw () __attribute__ ((__const__));
- extern double floor (double __x) throw () __attribute__ ((__const__)); extern double __floor (double __x) throw () __attribute__ ((__const__));
- extern double fmod (double __x, double __y) throw (); extern double __fmod (double __x, double __y) throw ();
- extern int __isinf (double __value) throw () __attribute__ ((__const__));
- extern int __finite (double __value) throw () __attribute__ ((__const__));
- extern int isinf (double __value) throw () __attribute__ ((__const__));
- extern int finite (double __value) throw () __attribute__ ((__const__));
- extern double drem (double __x, double __y) throw (); extern double __drem (double __x, double __y) throw ();
- extern double significand (double __x) throw (); extern double __significand (double __x) throw ();
- extern double copysign (double __x, double __y) throw () __attribute__ ((__const__)); extern double __copysign (double __x, double __y) throw () __attribute__ ((__const__));
- extern double nan (__const char *__tagb) throw () __attribute__ ((__const__)); extern double __nan (__const char *__tagb) throw () __attribute__ ((__const__));
- extern int __isnan (double __value) throw () __attribute__ ((__const__));
- extern int isnan (double __value) throw () __attribute__ ((__const__));
- extern double j0 (double) throw (); extern double __j0 (double) throw ();
- extern double j1 (double) throw (); extern double __j1 (double) throw ();
- extern double jn (int, double) throw (); extern double __jn (int, double) throw ();
- extern double y0 (double) throw (); extern double __y0 (double) throw ();
- extern double y1 (double) throw (); extern double __y1 (double) throw ();
- extern double yn (int, double) throw (); extern double __yn (int, double) throw ();
- extern double erf (double) throw (); extern double __erf (double) throw ();
- extern double erfc (double) throw (); extern double __erfc (double) throw ();
- extern double lgamma (double) throw (); extern double __lgamma (double) throw ();
- extern double tgamma (double) throw (); extern double __tgamma (double) throw ();
- extern double gamma (double) throw (); extern double __gamma (double) throw ();
- extern double lgamma_r (double, int *__signgamp) throw (); extern double __lgamma_r (double, int *__signgamp) throw ();
- extern double rint (double __x) throw (); extern double __rint (double __x) throw ();
- extern double nextafter (double __x, double __y) throw () __attribute__ ((__const__)); extern double __nextafter (double __x, double __y) throw () __attribute__ ((__const__));
- extern double nexttoward (double __x, long double __y) throw () __attribute__ ((__const__)); extern double __nexttoward (double __x, long double __y) throw () __attribute__ ((__const__));
- extern double remainder (double __x, double __y) throw (); extern double __remainder (double __x, double __y) throw ();
- extern double scalbn (double __x, int __n) throw (); extern double __scalbn (double __x, int __n) throw ();
- extern int ilogb (double __x) throw (); extern int __ilogb (double __x) throw ();
- extern double scalbln (double __x, long int __n) throw (); extern double __scalbln (double __x, long int __n) throw ();
- extern double nearbyint (double __x) throw (); extern double __nearbyint (double __x) throw ();
- extern double round (double __x) throw () __attribute__ ((__const__)); extern double __round (double __x) throw () __attribute__ ((__const__));
- extern double trunc (double __x) throw () __attribute__ ((__const__)); extern double __trunc (double __x) throw () __attribute__ ((__const__));
- extern double remquo (double __x, double __y, int *__quo) throw (); extern double __remquo (double __x, double __y, int *__quo) throw ();
- extern long int lrint (double __x) throw (); extern long int __lrint (double __x) throw ();
- extern long long int llrint (double __x) throw (); extern long long int __llrint (double __x) throw ();
- extern long int lround (double __x) throw (); extern long int __lround (double __x) throw ();
- extern long long int llround (double __x) throw (); extern long long int __llround (double __x) throw ();
- extern double fdim (double __x, double __y) throw (); extern double __fdim (double __x, double __y) throw ();
- extern double fmax (double __x, double __y) throw (); extern double __fmax (double __x, double __y) throw ();
- extern double fmin (double __x, double __y) throw (); extern double __fmin (double __x, double __y) throw ();
- extern int __fpclassify (double __value) throw ()
- __attribute__ ((__const__));
- extern int __signbit (double __value) throw ()
- __attribute__ ((__const__));
- extern double fma (double __x, double __y, double __z) throw (); extern double __fma (double __x, double __y, double __z) throw ();
- extern double scalb (double __x, double __n) throw (); extern double __scalb (double __x, double __n) throw ();
- # 72 "/usr/include/math.h" 2 3 4
- # 94 "/usr/include/math.h" 3 4
- # 1 "/usr/include/arm-linux-gnueabihf/bits/mathcalls.h" 1 3 4
- # 53 "/usr/include/arm-linux-gnueabihf/bits/mathcalls.h" 3 4
- extern float acosf (float __x) throw (); extern float __acosf (float __x) throw ();
- extern float asinf (float __x) throw (); extern float __asinf (float __x) throw ();
- extern float atanf (float __x) throw (); extern float __atanf (float __x) throw ();
- extern float atan2f (float __y, float __x) throw (); extern float __atan2f (float __y, float __x) throw ();
- extern float cosf (float __x) throw (); extern float __cosf (float __x) throw ();
- extern float sinf (float __x) throw (); extern float __sinf (float __x) throw ();
- extern float tanf (float __x) throw (); extern float __tanf (float __x) throw ();
- extern float coshf (float __x) throw (); extern float __coshf (float __x) throw ();
- extern float sinhf (float __x) throw (); extern float __sinhf (float __x) throw ();
- extern float tanhf (float __x) throw (); extern float __tanhf (float __x) throw ();
- extern void
- sincosf
- # 82 "/usr/include/arm-linux-gnueabihf/bits/mathcalls.h" 3 4
- (float __x, float *__sinx, float *__cosx) throw (); extern void
- __sincosf
- # 82 "/usr/include/arm-linux-gnueabihf/bits/mathcalls.h" 3 4
- (float __x, float *__sinx, float *__cosx) throw ()
- ;
- extern float acoshf (float __x) throw (); extern float __acoshf (float __x) throw ();
- extern float asinhf (float __x) throw (); extern float __asinhf (float __x) throw ();
- extern float atanhf (float __x) throw (); extern float __atanhf (float __x) throw ();
- extern float expf (float __x) throw (); extern float __expf (float __x) throw ();
- extern float frexpf (float __x, int *__exponent) throw (); extern float __frexpf (float __x, int *__exponent) throw ();
- extern float ldexpf (float __x, int __exponent) throw (); extern float __ldexpf (float __x, int __exponent) throw ();
- extern float logf (float __x) throw (); extern float __logf (float __x) throw ();
- extern float log10f (float __x) throw (); extern float __log10f (float __x) throw ();
- extern float modff (float __x, float *__iptr) throw (); extern float __modff (float __x, float *__iptr) throw ();
- extern float exp10f (float __x) throw (); extern float __exp10f (float __x) throw ();
- extern float pow10f (float __x) throw (); extern float __pow10f (float __x) throw ();
- extern float expm1f (float __x) throw (); extern float __expm1f (float __x) throw ();
- extern float log1pf (float __x) throw (); extern float __log1pf (float __x) throw ();
- extern float logbf (float __x) throw (); extern float __logbf (float __x) throw ();
- extern float exp2f (float __x) throw (); extern float __exp2f (float __x) throw ();
- extern float log2f (float __x) throw (); extern float __log2f (float __x) throw ();
- extern float powf (float __x, float __y) throw (); extern float __powf (float __x, float __y) throw ();
- extern float sqrtf (float __x) throw (); extern float __sqrtf (float __x) throw ();
- extern float hypotf (float __x, float __y) throw (); extern float __hypotf (float __x, float __y) throw ();
- extern float cbrtf (float __x) throw (); extern float __cbrtf (float __x) throw ();
- extern float ceilf (float __x) throw () __attribute__ ((__const__)); extern float __ceilf (float __x) throw () __attribute__ ((__const__));
- extern float fabsf (float __x) throw () __attribute__ ((__const__)); extern float __fabsf (float __x) throw () __attribute__ ((__const__));
- extern float floorf (float __x) throw () __attribute__ ((__const__)); extern float __floorf (float __x) throw () __attribute__ ((__const__));
- extern float fmodf (float __x, float __y) throw (); extern float __fmodf (float __x, float __y) throw ();
- extern int __isinff (float __value) throw () __attribute__ ((__const__));
- extern int __finitef (float __value) throw () __attribute__ ((__const__));
- extern int isinff (float __value) throw () __attribute__ ((__const__));
- extern int finitef (float __value) throw () __attribute__ ((__const__));
- extern float dremf (float __x, float __y) throw (); extern float __dremf (float __x, float __y) throw ();
- extern float significandf (float __x) throw (); extern float __significandf (float __x) throw ();
- extern float copysignf (float __x, float __y) throw () __attribute__ ((__const__)); extern float __copysignf (float __x, float __y) throw () __attribute__ ((__const__));
- extern float nanf (__const char *__tagb) throw () __attribute__ ((__const__)); extern float __nanf (__const char *__tagb) throw () __attribute__ ((__const__));
- extern int __isnanf (float __value) throw () __attribute__ ((__const__));
- extern int isnanf (float __value) throw () __attribute__ ((__const__));
- extern float j0f (float) throw (); extern float __j0f (float) throw ();
- extern float j1f (float) throw (); extern float __j1f (float) throw ();
- extern float jnf (int, float) throw (); extern float __jnf (int, float) throw ();
- extern float y0f (float) throw (); extern float __y0f (float) throw ();
- extern float y1f (float) throw (); extern float __y1f (float) throw ();
- extern float ynf (int, float) throw (); extern float __ynf (int, float) throw ();
- extern float erff (float) throw (); extern float __erff (float) throw ();
- extern float erfcf (float) throw (); extern float __erfcf (float) throw ();
- extern float lgammaf (float) throw (); extern float __lgammaf (float) throw ();
- extern float tgammaf (float) throw (); extern float __tgammaf (float) throw ();
- extern float gammaf (float) throw (); extern float __gammaf (float) throw ();
- extern float lgammaf_r (float, int *__signgamp) throw (); extern float __lgammaf_r (float, int *__signgamp) throw ();
- extern float rintf (float __x) throw (); extern float __rintf (float __x) throw ();
- extern float nextafterf (float __x, float __y) throw () __attribute__ ((__const__)); extern float __nextafterf (float __x, float __y) throw () __attribute__ ((__const__));
- extern float nexttowardf (float __x, long double __y) throw () __attribute__ ((__const__)); extern float __nexttowardf (float __x, long double __y) throw () __attribute__ ((__const__));
- extern float remainderf (float __x, float __y) throw (); extern float __remainderf (float __x, float __y) throw ();
- extern float scalbnf (float __x, int __n) throw (); extern float __scalbnf (float __x, int __n) throw ();
- extern int ilogbf (float __x) throw (); extern int __ilogbf (float __x) throw ();
- extern float scalblnf (float __x, long int __n) throw (); extern float __scalblnf (float __x, long int __n) throw ();
- extern float nearbyintf (float __x) throw (); extern float __nearbyintf (float __x) throw ();
- extern float roundf (float __x) throw () __attribute__ ((__const__)); extern float __roundf (float __x) throw () __attribute__ ((__const__));
- extern float truncf (float __x) throw () __attribute__ ((__const__)); extern float __truncf (float __x) throw () __attribute__ ((__const__));
- extern float remquof (float __x, float __y, int *__quo) throw (); extern float __remquof (float __x, float __y, int *__quo) throw ();
- extern long int lrintf (float __x) throw (); extern long int __lrintf (float __x) throw ();
- extern long long int llrintf (float __x) throw (); extern long long int __llrintf (float __x) throw ();
- extern long int lroundf (float __x) throw (); extern long int __lroundf (float __x) throw ();
- extern long long int llroundf (float __x) throw (); extern long long int __llroundf (float __x) throw ();
- extern float fdimf (float __x, float __y) throw (); extern float __fdimf (float __x, float __y) throw ();
- extern float fmaxf (float __x, float __y) throw (); extern float __fmaxf (float __x, float __y) throw ();
- extern float fminf (float __x, float __y) throw (); extern float __fminf (float __x, float __y) throw ();
- extern int __fpclassifyf (float __value) throw ()
- __attribute__ ((__const__));
- extern int __signbitf (float __value) throw ()
- __attribute__ ((__const__));
- extern float fmaf (float __x, float __y, float __z) throw (); extern float __fmaf (float __x, float __y, float __z) throw ();
- extern float scalbf (float __x, float __n) throw (); extern float __scalbf (float __x, float __n) throw ();
- # 95 "/usr/include/math.h" 2 3 4
- # 145 "/usr/include/math.h" 3 4
- # 1 "/usr/include/arm-linux-gnueabihf/bits/mathcalls.h" 1 3 4
- # 53 "/usr/include/arm-linux-gnueabihf/bits/mathcalls.h" 3 4
- extern long double acosl (long double __x) throw () __asm__ ("" "acos"); extern long double __acosl (long double __x) throw () __asm__ ("" "__acos");
- extern long double asinl (long double __x) throw () __asm__ ("" "asin"); extern long double __asinl (long double __x) throw () __asm__ ("" "__asin");
- extern long double atanl (long double __x) throw () __asm__ ("" "atan"); extern long double __atanl (long double __x) throw () __asm__ ("" "__atan");
- extern long double atan2l (long double __y, long double __x) throw () __asm__ ("" "atan2"); extern long double __atan2l (long double __y, long double __x) throw () __asm__ ("" "__atan2");
- extern long double cosl (long double __x) throw () __asm__ ("" "cos"); extern long double __cosl (long double __x) throw () __asm__ ("" "__cos");
- extern long double sinl (long double __x) throw () __asm__ ("" "sin"); extern long double __sinl (long double __x) throw () __asm__ ("" "__sin");
- extern long double tanl (long double __x) throw () __asm__ ("" "tan"); extern long double __tanl (long double __x) throw () __asm__ ("" "__tan");
- extern long double coshl (long double __x) throw () __asm__ ("" "cosh"); extern long double __coshl (long double __x) throw () __asm__ ("" "__cosh");
- extern long double sinhl (long double __x) throw () __asm__ ("" "sinh"); extern long double __sinhl (long double __x) throw () __asm__ ("" "__sinh");
- extern long double tanhl (long double __x) throw () __asm__ ("" "tanh"); extern long double __tanhl (long double __x) throw () __asm__ ("" "__tanh");
- extern void sincosl (long double __x, long double *__sinx, long double *__cosx) throw () __asm__ ("" "sincos"); extern void __sincosl (long double __x, long double *__sinx, long double *__cosx) throw () __asm__ ("" "__sincos")
- ;
- extern long double acoshl (long double __x) throw () __asm__ ("" "acosh"); extern long double __acoshl (long double __x) throw () __asm__ ("" "__acosh");
- extern long double asinhl (long double __x) throw () __asm__ ("" "asinh"); extern long double __asinhl (long double __x) throw () __asm__ ("" "__asinh");
- extern long double atanhl (long double __x) throw () __asm__ ("" "atanh"); extern long double __atanhl (long double __x) throw () __asm__ ("" "__atanh");
- extern long double expl (long double __x) throw () __asm__ ("" "exp"); extern long double __expl (long double __x) throw () __asm__ ("" "__exp");
- extern long double frexpl (long double __x, int *__exponent) throw () __asm__ ("" "frexp"); extern long double __frexpl (long double __x, int *__exponent) throw () __asm__ ("" "__frexp");
- extern long double ldexpl (long double __x, int __exponent) throw () __asm__ ("" "ldexp"); extern long double __ldexpl (long double __x, int __exponent) throw () __asm__ ("" "__ldexp");
- extern long double logl (long double __x) throw () __asm__ ("" "log"); extern long double __logl (long double __x) throw () __asm__ ("" "__log");
- extern long double log10l (long double __x) throw () __asm__ ("" "log10"); extern long double __log10l (long double __x) throw () __asm__ ("" "__log10");
- extern long double modfl (long double __x, long double *__iptr) throw () __asm__ ("" "modf"); extern long double __modfl (long double __x, long double *__iptr) throw () __asm__ ("" "__modf");
- extern long double exp10l (long double __x) throw () __asm__ ("" "exp10"); extern long double __exp10l (long double __x) throw () __asm__ ("" "__exp10");
- extern long double pow10l (long double __x) throw () __asm__ ("" "pow10"); extern long double __pow10l (long double __x) throw () __asm__ ("" "__pow10");
- extern long double expm1l (long double __x) throw () __asm__ ("" "expm1"); extern long double __expm1l (long double __x) throw () __asm__ ("" "__expm1");
- extern long double log1pl (long double __x) throw () __asm__ ("" "log1p"); extern long double __log1pl (long double __x) throw () __asm__ ("" "__log1p");
- extern long double logbl (long double __x) throw () __asm__ ("" "logb"); extern long double __logbl (long double __x) throw () __asm__ ("" "__logb");
- extern long double exp2l (long double __x) throw () __asm__ ("" "exp2"); extern long double __exp2l (long double __x) throw () __asm__ ("" "__exp2");
- extern long double log2l (long double __x) throw () __asm__ ("" "log2"); extern long double __log2l (long double __x) throw () __asm__ ("" "__log2");
- extern long double powl (long double __x, long double __y) throw () __asm__ ("" "pow"); extern long double __powl (long double __x, long double __y) throw () __asm__ ("" "__pow");
- extern long double sqrtl (long double __x) throw () __asm__ ("" "sqrt"); extern long double __sqrtl (long double __x) throw () __asm__ ("" "__sqrt");
- extern long double hypotl (long double __x, long double __y) throw () __asm__ ("" "hypot"); extern long double __hypotl (long double __x, long double __y) throw () __asm__ ("" "__hypot");
- extern long double cbrtl (long double __x) throw () __asm__ ("" "cbrt"); extern long double __cbrtl (long double __x) throw () __asm__ ("" "__cbrt");
- extern long double ceill (long double __x) throw () __asm__ ("" "ceil") __attribute__ ((__const__)); extern long double __ceill (long double __x) throw () __asm__ ("" "__ceil") __attribute__ ((__const__));
- extern long double fabsl (long double __x) throw () __asm__ ("" "fabs") __attribute__ ((__const__)); extern long double __fabsl (long double __x) throw () __asm__ ("" "__fabs") __attribute__ ((__const__));
- extern long double floorl (long double __x) throw () __asm__ ("" "floor") __attribute__ ((__const__)); extern long double __floorl (long double __x) throw () __asm__ ("" "__floor") __attribute__ ((__const__));
- extern long double fmodl (long double __x, long double __y) throw () __asm__ ("" "fmod"); extern long double __fmodl (long double __x, long double __y) throw () __asm__ ("" "__fmod");
- extern int __isinfl (long double __value) throw () __asm__ ("" "__isinf") __attribute__ ((__const__));
- extern int __finitel (long double __value) throw () __asm__ ("" "__finite") __attribute__ ((__const__));
- extern int isinfl (long double __value) throw () __asm__ ("" "isinf") __attribute__ ((__const__));
- extern int finitel (long double __value) throw () __asm__ ("" "finite") __attribute__ ((__const__));
- extern long double dreml (long double __x, long double __y) throw () __asm__ ("" "drem"); extern long double __dreml (long double __x, long double __y) throw () __asm__ ("" "__drem");
- extern long double significandl (long double __x) throw () __asm__ ("" "significand"); extern long double __significandl (long double __x) throw () __asm__ ("" "__significand");
- extern long double copysignl (long double __x, long double __y) throw () __asm__ ("" "copysign") __attribute__ ((__const__)); extern long double __copysignl (long double __x, long double __y) throw () __asm__ ("" "__copysign") __attribute__ ((__const__));
- extern long double nanl (__const char *__tagb) throw () __asm__ ("" "nan") __attribute__ ((__const__)); extern long double __nanl (__const char *__tagb) throw () __asm__ ("" "__nan") __attribute__ ((__const__));
- extern int __isnanl (long double __value) throw () __asm__ ("" "__isnan") __attribute__ ((__const__));
- extern int isnanl (long double __value) throw () __asm__ ("" "isnan") __attribute__ ((__const__));
- extern long double j0l (long double) throw () __asm__ ("" "j0"); extern long double __j0l (long double) throw () __asm__ ("" "__j0");
- extern long double j1l (long double) throw () __asm__ ("" "j1"); extern long double __j1l (long double) throw () __asm__ ("" "__j1");
- extern long double jnl (int, long double) throw () __asm__ ("" "jn"); extern long double __jnl (int, long double) throw () __asm__ ("" "__jn");
- extern long double y0l (long double) throw () __asm__ ("" "y0"); extern long double __y0l (long double) throw () __asm__ ("" "__y0");
- extern long double y1l (long double) throw () __asm__ ("" "y1"); extern long double __y1l (long double) throw () __asm__ ("" "__y1");
- extern long double ynl (int, long double) throw () __asm__ ("" "yn"); extern long double __ynl (int, long double) throw () __asm__ ("" "__yn");
- extern long double erfl (long double) throw () __asm__ ("" "erf"); extern long double __erfl (long double) throw () __asm__ ("" "__erf");
- extern long double erfcl (long double) throw () __asm__ ("" "erfc"); extern long double __erfcl (long double) throw () __asm__ ("" "__erfc");
- extern long double lgammal (long double) throw () __asm__ ("" "lgamma"); extern long double __lgammal (long double) throw () __asm__ ("" "__lgamma");
- extern long double tgammal (long double) throw () __asm__ ("" "tgamma"); extern long double __tgammal (long double) throw () __asm__ ("" "__tgamma");
- extern long double gammal (long double) throw () __asm__ ("" "gamma"); extern long double __gammal (long double) throw () __asm__ ("" "__gamma");
- extern long double lgammal_r (long double, int *__signgamp) throw () __asm__ ("" "lgamma_r"); extern long double __lgammal_r (long double, int *__signgamp) throw () __asm__ ("" "__lgamma_r");
- extern long double rintl (long double __x) throw () __asm__ ("" "rint"); extern long double __rintl (long double __x) throw () __asm__ ("" "__rint");
- extern long double nextafterl (long double __x, long double __y) throw () __asm__ ("" "nextafter") __attribute__ ((__const__)); extern long double __nextafterl (long double __x, long double __y) throw () __asm__ ("" "__nextafter") __attribute__ ((__const__));
- extern long double nexttowardl (long double __x, long double __y) throw () __asm__ ("" "nexttoward") __attribute__ ((__const__)); extern long double __nexttowardl (long double __x, long double __y) throw () __asm__ ("" "__nexttoward") __attribute__ ((__const__));
- extern long double remainderl (long double __x, long double __y) throw () __asm__ ("" "remainder"); extern long double __remainderl (long double __x, long double __y) throw () __asm__ ("" "__remainder");
- extern long double scalbnl (long double __x, int __n) throw () __asm__ ("" "scalbn"); extern long double __scalbnl (long double __x, int __n) throw () __asm__ ("" "__scalbn");
- extern int ilogbl (long double __x) throw () __asm__ ("" "ilogb"); extern int __ilogbl (long double __x) throw () __asm__ ("" "__ilogb");
- extern long double scalblnl (long double __x, long int __n) throw () __asm__ ("" "scalbln"); extern long double __scalblnl (long double __x, long int __n) throw () __asm__ ("" "__scalbln");
- extern long double nearbyintl (long double __x) throw () __asm__ ("" "nearbyint"); extern long double __nearbyintl (long double __x) throw () __asm__ ("" "__nearbyint");
- extern long double roundl (long double __x) throw () __asm__ ("" "round") __attribute__ ((__const__)); extern long double __roundl (long double __x) throw () __asm__ ("" "__round") __attribute__ ((__const__));
- extern long double truncl (long double __x) throw () __asm__ ("" "trunc") __attribute__ ((__const__)); extern long double __truncl (long double __x) throw () __asm__ ("" "__trunc") __attribute__ ((__const__));
- extern long double remquol (long double __x, long double __y, int *__quo) throw () __asm__ ("" "remquo"); extern long double __remquol (long double __x, long double __y, int *__quo) throw () __asm__ ("" "__remquo");
- extern long int lrintl (long double __x) throw () __asm__ ("" "lrint"); extern long int __lrintl (long double __x) throw () __asm__ ("" "__lrint");
- extern long long int llrintl (long double __x) throw () __asm__ ("" "llrint"); extern long long int __llrintl (long double __x) throw () __asm__ ("" "__llrint");
- extern long int lroundl (long double __x) throw () __asm__ ("" "lround"); extern long int __lroundl (long double __x) throw () __asm__ ("" "__lround");
- extern long long int llroundl (long double __x) throw () __asm__ ("" "llround"); extern long long int __llroundl (long double __x) throw () __asm__ ("" "__llround");
- extern long double fdiml (long double __x, long double __y) throw () __asm__ ("" "fdim"); extern long double __fdiml (long double __x, long double __y) throw () __asm__ ("" "__fdim");
- extern long double fmaxl (long double __x, long double __y) throw () __asm__ ("" "fmax"); extern long double __fmaxl (long double __x, long double __y) throw () __asm__ ("" "__fmax");
- extern long double fminl (long double __x, long double __y) throw () __asm__ ("" "fmin"); extern long double __fminl (long double __x, long double __y) throw () __asm__ ("" "__fmin");
- extern int __fpclassifyl (long double __value) throw () __asm__ ("" "__fpclassify")
- __attribute__ ((__const__));
- extern int __signbitl (long double __value) throw () __asm__ ("" "__signbit")
- __attribute__ ((__const__));
- extern long double fmal (long double __x, long double __y, long double __z) throw () __asm__ ("" "fma"); extern long double __fmal (long double __x, long double __y, long double __z) throw () __asm__ ("" "__fma");
- extern long double scalbl (long double __x, long double __n) throw () __asm__ ("" "scalb"); extern long double __scalbl (long double __x, long double __n) throw () __asm__ ("" "__scalb");
- # 146 "/usr/include/math.h" 2 3 4
- # 161 "/usr/include/math.h" 3 4
- extern int signgam;
- # 202 "/usr/include/math.h" 3 4
- enum
- {
- FP_NAN,
- FP_INFINITE,
- FP_ZERO,
- FP_SUBNORMAL,
- FP_NORMAL
- };
- # 295 "/usr/include/math.h" 3 4
- typedef enum
- {
- _IEEE_ = -1,
- _SVID_,
- _XOPEN_,
- _POSIX_,
- _ISOC_
- } _LIB_VERSION_TYPE;
- extern _LIB_VERSION_TYPE _LIB_VERSION;
- # 318 "/usr/include/math.h" 3 4
- struct __exception
- {
- int type;
- char *name;
- double arg1;
- double arg2;
- double retval;
- };
- extern int matherr (struct __exception *__exc) throw ();
- # 420 "/usr/include/math.h" 3 4
- # 1 "/usr/include/arm-linux-gnueabihf/bits/mathinline.h" 1 3 4
- # 421 "/usr/include/math.h" 2 3 4
- # 476 "/usr/include/math.h" 3 4
- }
- # 12 "src/burn/driver.h" 2
- # 23 "src/burn/driver.h"
- typedef unsigned char UINT8;
- typedef signed char INT8;
- typedef unsigned short UINT16;
- typedef signed short INT16;
- typedef unsigned int UINT32;
- typedef signed int INT32;
- __extension__ typedef unsigned long long UINT64;
- __extension__ typedef long long INT64;
- # 50 "src/burn/driver.h"
- enum {
- CLEAR_LINE = 0,
- ASSERT_LINE,
- HOLD_LINE,
- PULSE_LINE
- };
- extern "C" {
- double BurnTimerGetTime(void);
- typedef UINT8 (*read8_handler)(UINT32 offset);
- typedef void (*write8_handler)(UINT32 offset, UINT32 data);
- }
- # 3 "src/burn/snd/burn_ym2203.h" 2
- extern "C" {
- # 1 "src/burn/snd/ay8910.h" 1
- struct AY8910interface
- {
- INT32 num;
- INT32 baseclock;
- INT32 mixing_level[5];
- read8_handler portAread[5];
- read8_handler portBread[5];
- write8_handler portAwrite[5];
- write8_handler portBwrite[5];
- void (*handler[5])(INT32 irq);
- };
- extern INT32 ay8910_index_ym;
- void AY8910_set_clock(INT32 chip, INT32 clock);
- void AY8910Reset(INT32 chip);
- void AY8910Update(INT32 chip, INT16** buffer, INT32 length);
- void AY8910Write(INT32 chip, INT32 a, INT32 data);
- INT32 AY8910Read(INT32 chip);
- void AY8910Reset(INT32 chip);
- void AY8910Exit(INT32 chip);
- INT32 AY8910Init(INT32 chip, INT32 clock, INT32 sample_rate,
- read8_handler portAread, read8_handler portBread,
- write8_handler portAwrite, write8_handler portBwrite);
- INT32 AY8910InitYM(INT32 chip, INT32 clock, INT32 sample_rate,
- read8_handler portAread, read8_handler portBread,
- write8_handler portAwrite, write8_handler portBwrite,
- void (*update_callback)(void));
- INT32 AY8910Scan(INT32 nAction, INT32* pnMin);
- INT32 AY8910SetPorts(INT32 chip, read8_handler portAread, read8_handler portBread,
- write8_handler portAwrite, write8_handler portBwrite);
- # 5 "src/burn/snd/burn_ym2203.h" 2
- # 1 "src/burn/snd/fm.h" 1
- # 61 "src/burn/snd/fm.h"
- void BurnYM2203UpdateRequest(void);
- void BurnYM2608UpdateRequest(void);
- void BurnYM2610UpdateRequest(void);
- void BurnYM2612UpdateRequest(void);
- # 106 "src/burn/snd/fm.h"
- typedef INT16 FMSAMPLE;
- typedef void (*FM_TIMERHANDLER)(int n,int c,int cnt,double stepTime);
- typedef void (*FM_IRQHANDLER)(int n,int irq);
- # 138 "src/burn/snd/fm.h"
- int YM2203Init(int num, int baseclock, int rate,
- FM_TIMERHANDLER TimerHandler,FM_IRQHANDLER IRQHandler);
- void YM2203Shutdown(void);
- void YM2203ResetChip(int num);
- void YM2203UpdateOne(int num, INT16 *buffer, int length);
- int YM2203Write(int n,int a,unsigned char v);
- unsigned char YM2203Read(int n,int a);
- int YM2203TimerOver(int n, int c);
- int YM2608Init(int num, int baseclock, int rate,
- void **pcmroma,int *pcmsizea,
- FM_TIMERHANDLER TimerHandler,FM_IRQHANDLER IRQHandler);
- void YM2608Shutdown(void);
- void YM2608ResetChip(int num);
- void YM2608UpdateOne(int num, INT16 **buffer, int length);
- int YM2608Write(int n, int a,unsigned char v);
- unsigned char YM2608Read(int n,int a);
- int YM2608TimerOver(int n, int c );
- int YM2610Init(int num, int baseclock, int rate,
- void **pcmroma,int *pcmasize,void **pcmromb,int *pcmbsize,
- FM_TIMERHANDLER TimerHandler,FM_IRQHANDLER IRQHandler);
- void YM2610SetRom(int num,
- void *pcmroma,int pcmsizea,void *pcmromb,int pcmsizeb);
- void YM2610Shutdown(void);
- void YM2610ResetChip(int num);
- void YM2610UpdateOne(int num, INT16 **buffer, int length);
- void YM2610BUpdateOne(int num, INT16 **buffer, int length);
- int YM2610Write(int n, int a,unsigned char v);
- unsigned char YM2610Read(int n,int a);
- int YM2610TimerOver(int n, int c );
- int YM2612Init(int num, int baseclock, int rate,
- FM_TIMERHANDLER TimerHandler,FM_IRQHANDLER IRQHandler);
- void YM2612Shutdown(void);
- void YM2612ResetChip(int num);
- void YM2612UpdateOne(int num, INT16 **buffer, int length);
- int YM2612Write(int n, int a,unsigned char v);
- unsigned char YM2612Read(int n,int a);
- int YM2612TimerOver(int n, int c );
- # 6 "src/burn/snd/burn_ym2203.h" 2
- }
- # 1 "src/burn/timer.h" 1
- extern "C" double BurnTimerGetTime();
- void BurnOPNTimerCallback(INT32 n, INT32 c, INT32 cnt, double stepTime);
- void BurnOPLTimerCallback(INT32 c, double period);
- void BurnYMFTimerCallback(INT32 n, INT32 c, double period);
- void BurnTimerSetRetrig(INT32 c, double period);
- void BurnTimerSetOneshot(INT32 c, double period);
- extern double dTime;
- void BurnTimerExit();
- void BurnTimerReset();
- INT32 BurnTimerInit(INT32 (*pOverCallback)(INT32, INT32), double (*pTimeCallback)());
- INT32 BurnTimerAttachSek(INT32 nClockspeed);
- INT32 BurnTimerAttachZet(INT32 nClockspeed);
- INT32 BurnTimerAttachM6809(INT32 nClockspeed);
- INT32 BurnTimerAttachHD6309(INT32 nClockspeed);
- INT32 BurnTimerAttachM6800(INT32 nClockspeed);
- INT32 BurnTimerAttachHD63701(INT32 nClockspeed);
- INT32 BurnTimerAttachM6803(INT32 nClockspeed);
- INT32 BurnTimerAttachM6502(INT32 nClockspeed);
- INT32 BurnTimerAttachSh2(INT32 nClockspeed);
- INT32 BurnTimerAttachH6280(INT32 nClockspeed);
- void BurnTimerScan(INT32 nAction, INT32* pnMin);
- INT32 BurnTimerUpdate(INT32 nCycles);
- void BurnTimerUpdateEnd();
- void BurnTimerEndFrame(INT32 nCycles);
- # 8 "src/burn/snd/burn_ym2203.h" 2
- extern "C" void BurnYM2203UpdateRequest();
- INT32 BurnYM2203Init(INT32 num, INT32 nClockFrequency, FM_IRQHANDLER IRQCallback, INT32 (*StreamCallback)(INT32), double (*GetTimeCallback)(), INT32 bAddSignal);
- void BurnYM2203SetVolumeShift(INT32 Shift);
- void BurnYM2203Reset();
- void BurnYM2203Exit();
- extern void (*BurnYM2203Update)(INT16* pSoundBuf, INT32 nSegmentEnd);
- void BurnYM2203Scan(INT32 nAction, INT32* pnMin);
- # 11 "src/burn/drv/dataeast/d_cninja.cpp" 2
- # 1 "src/burn/snd/burn_ym2151.h" 1
- extern "C" {
- # 1 "src/burn/snd/ym2151.h" 1
- # 39 "src/burn/snd/ym2151.h"
- typedef INT16 SAMP;
- # 52 "src/burn/snd/ym2151.h"
- int YM2151Init(int num, int clock, int rate);
- void YM2151Shutdown(void);
- void YM2151ResetChip(int num);
- # 67 "src/burn/snd/ym2151.h"
- void YM2151UpdateOne(int num, INT16 **buffers, int length);
- void YM2151WriteReg(int n, int r, int v);
- int YM2151ReadStatus(int n);
- void YM2151SetIrqHandler(int n, void (*handler)(int irq));
- void YM2151SetPortWriteHandler(int n, write8_handler handler);
- # 5 "src/burn/snd/burn_ym2151.h" 2
- }
- INT32 BurnYM2151Init(INT32 nClockFrequency, float nVolume);
- void BurnYM2151Reset();
- void BurnYM2151Exit();
- extern void (*BurnYM2151Render)(INT16* pSoundBuf, INT32 nSegmentLength);
- void BurnYM2151Scan(INT32 nAction);
- static inline void BurnYM2151SelectRegister(const UINT8 nRegister)
- {
- extern UINT32 nBurnCurrentYM2151Register;
- nBurnCurrentYM2151Register = nRegister;
- }
- static inline void BurnYM2151WriteRegister(const UINT8 nValue)
- {
- extern UINT32 nBurnCurrentYM2151Register;
- extern UINT8 BurnYM2151Registers[0x0100];
- BurnYM2151Registers[nBurnCurrentYM2151Register] = nValue;
- YM2151WriteReg(0, nBurnCurrentYM2151Register, nValue);
- }
- # 12 "src/burn/drv/dataeast/d_cninja.cpp" 2
- # 1 "src/burn/snd/msm6295.h" 1
- INT32 MSM6295Init(INT32 nChip, INT32 nSamplerate, float fMaxVolume, bool bAddSignal);
- void MSM6295Reset(INT32 nChip);
- void MSM6295Exit(INT32 nChip);
- INT32 MSM6295Render(INT32 nChip, INT16* pSoundBuf, INT32 nSegmenLength);
- void MSM6295Command(INT32 nChip, UINT8 nCommand);
- INT32 MSM6295Scan(INT32 nChip, INT32 nAction);
- extern UINT8* MSM6295ROM;
- extern UINT8* MSM6295SampleInfo[(2)][4];
- extern UINT8* MSM6295SampleData[(2)][4];
- inline static UINT32 MSM6295ReadStatus(const INT32 nChip)
- {
- extern UINT32 nMSM6295Status[(2)];
- return nMSM6295Status[nChip];
- }
- # 13 "src/burn/drv/dataeast/d_cninja.cpp" 2
- # 1 "src/burn/timer.h" 1
- extern "C" double BurnTimerGetTime();
- void BurnOPNTimerCallback(INT32 n, INT32 c, INT32 cnt, double stepTime);
- void BurnOPLTimerCallback(INT32 c, double period);
- void BurnYMFTimerCallback(INT32 n, INT32 c, double period);
- void BurnTimerSetRetrig(INT32 c, double period);
- void BurnTimerSetOneshot(INT32 c, double period);
- extern double dTime;
- void BurnTimerExit();
- void BurnTimerReset();
- INT32 BurnTimerInit(INT32 (*pOverCallback)(INT32, INT32), double (*pTimeCallback)());
- INT32 BurnTimerAttachSek(INT32 nClockspeed);
- INT32 BurnTimerAttachZet(INT32 nClockspeed);
- INT32 BurnTimerAttachM6809(INT32 nClockspeed);
- INT32 BurnTimerAttachHD6309(INT32 nClockspeed);
- INT32 BurnTimerAttachM6800(INT32 nClockspeed);
- INT32 BurnTimerAttachHD63701(INT32 nClockspeed);
- INT32 BurnTimerAttachM6803(INT32 nClockspeed);
- INT32 BurnTimerAttachM6502(INT32 nClockspeed);
- INT32 BurnTimerAttachSh2(INT32 nClockspeed);
- INT32 BurnTimerAttachH6280(INT32 nClockspeed);
- void BurnTimerScan(INT32 nAction, INT32* pnMin);
- INT32 BurnTimerUpdate(INT32 nCycles);
- void BurnTimerUpdateEnd();
- void BurnTimerEndFrame(INT32 nCycles);
- # 14 "src/burn/drv/dataeast/d_cninja.cpp" 2
- static UINT8 *AllMem;
- static UINT8 *MemEnd;
- static UINT8 *AllRam;
- static UINT8 *RamEnd;
- static UINT8 *Drv68KROM;
- static UINT8 *DrvZ80ROM;
- static UINT8 *DrvHucROM;
- static UINT8 *DrvGfxROM0;
- static UINT8 *DrvGfxROM1;
- static UINT8 *DrvGfxROM2;
- static UINT8 *DrvGfxROM3;
- static UINT8 *DrvGfxROM4;
- static UINT8 *DrvSndROM0;
- static UINT8 *DrvSndROM1;
- static UINT8 *Drv68KRAM;
- static UINT8 *DrvHucRAM;
- static UINT8 *DrvPalRAM;
- static UINT8 *DrvSprRAM;
- static UINT8 *DrvSprRAM1;
- static UINT8 *DrvSprBuf;
- static UINT8 *DrvSprBuf1;
- static UINT8 *DrvPrtRAM;
- static UINT8 *DrvZ80RAM;
- static UINT32 *DrvPalette;
- static UINT8 DrvRecalc;
- static INT16 *SoundBuffer;
- static UINT8 *soundlatch;
- static UINT8 *flipscreen;
- static UINT8 DrvJoy1[16];
- static UINT8 DrvJoy2[16];
- static UINT8 DrvDips[3];
- static UINT8 DrvReset;
- static UINT16 DrvInputs[3];
- static INT32 scanline;
- static INT32 irq_mask;
- static INT32 irq_timer;
- static INT32 DrvOkiBank;
- static INT32 has_z80 = 0;
- static struct BurnInputInfo DrvInputList[] = {
- {"P1 Coin", (1), DrvJoy2 + 0, "p1 coin" },
- {"P1 Start", (1), DrvJoy1 + 7, "p1 start" },
- {"P1 Up", (1), DrvJoy1 + 0, "p1 up" },
- {"P1 Down", (1), DrvJoy1 + 1, "p1 down" },
- {"P1 Left", (1), DrvJoy1 + 2, "p1 left" },
- {"P1 Right", (1), DrvJoy1 + 3, "p1 right" },
- {"P1 Button 1", (1), DrvJoy1 + 4, "p1 fire 1" },
- {"P1 Button 2", (1), DrvJoy1 + 5, "p1 fire 2" },
- {"P2 Coin", (1), DrvJoy2 + 1, "p2 coin" },
- {"P2 Start", (1), DrvJoy1 + 15, "p2 start" },
- {"P2 Up", (1), DrvJoy1 + 8, "p2 up" },
- {"P2 Down", (1), DrvJoy1 + 9, "p2 down" },
- {"P2 Left", (1), DrvJoy1 + 10, "p2 left" },
- {"P2 Right", (1), DrvJoy1 + 11, "p2 right" },
- {"P2 Button 1", (1), DrvJoy1 + 12, "p2 fire 1" },
- {"P2 Button 2", (1), DrvJoy1 + 13, "p2 fire 2" },
- {"Reset", (1), &DrvReset, "reset" },
- {"Service", (1), DrvJoy2 + 2, "service" },
- {"Dip A", (9), DrvDips + 0, "dip" },
- {"Dip B", (9), DrvDips + 1, "dip" },
- };
- static INT32 DrvInputInfo(struct BurnInputInfo* pii, UINT32 i) { if (i >= sizeof(DrvInputList) / sizeof(DrvInputList[0])) { return 1; } if (pii) { *pii = DrvInputList[i]; } return 0; }
- static struct BurnInputInfo Robocop2InputList[] = {
- {"P1 Coin", (1), DrvJoy2 + 0, "p1 coin" },
- {"P1 Start", (1), DrvJoy1 + 7, "p1 start" },
- {"P1 Up", (1), DrvJoy1 + 0, "p1 up" },
- {"P1 Down", (1), DrvJoy1 + 1, "p1 down" },
- {"P1 Left", (1), DrvJoy1 + 2, "p1 left" },
- {"P1 Right", (1), DrvJoy1 + 3, "p1 right" },
- {"P1 Button 1", (1), DrvJoy1 + 4, "p1 fire 1" },
- {"P1 Button 2", (1), DrvJoy1 + 5, "p1 fire 2" },
- {"P1 Button 3", (1), DrvJoy1 + 6, "p1 fire 3" },
- {"P2 Coin", (1), DrvJoy2 + 1, "p2 coin" },
- {"P2 Start", (1), DrvJoy1 + 15, "p2 start" },
- {"P2 Up", (1), DrvJoy1 + 8, "p2 up" },
- {"P2 Down", (1), DrvJoy1 + 9, "p2 down" },
- {"P2 Left", (1), DrvJoy1 + 10, "p2 left" },
- {"P2 Right", (1), DrvJoy1 + 11, "p2 right" },
- {"P2 Button 1", (1), DrvJoy1 + 12, "p2 fire 1" },
- {"P2 Button 2", (1), DrvJoy1 + 13, "p2 fire 2" },
- {"P2 Button 3", (1), DrvJoy1 + 14, "p2 fire 3" },
- {"Reset", (1), &DrvReset, "reset" },
- {"Service", (1), DrvJoy2 + 2, "service" },
- {"Dip A", (9), DrvDips + 0, "dip" },
- {"Dip B", (9), DrvDips + 1, "dip" },
- {"Dip C", (9), DrvDips + 2, "dip" },
- };
- static INT32 Robocop2InputInfo(struct BurnInputInfo* pii, UINT32 i) { if (i >= sizeof(Robocop2InputList) / sizeof(Robocop2InputList[0])) { return 1; } if (pii) { *pii = Robocop2InputList[i]; } return 0; }
- static struct BurnDIPInfo CninjaDIPList[]=
- {
- {0x12, 0xff, 0xff, 0xff, __null },
- {0x13, 0xff, 0xff, 0x7f, __null },
- {0 , 0xfe, 0 , 8, "Coin A" },
- {0x12, 0x01, 0x07, 0x00, "3 Coins 1 Credits" },
- {0x12, 0x01, 0x07, 0x01, "2 Coins 1 Credits" },
- {0x12, 0x01, 0x07, 0x07, "1 Coin 1 Credits" },
- {0x12, 0x01, 0x07, 0x06, "1 Coin 2 Credits" },
- {0x12, 0x01, 0x07, 0x05, "1 Coin 3 Credits" },
- {0x12, 0x01, 0x07, 0x04, "1 Coin 4 Credits" },
- {0x12, 0x01, 0x07, 0x03, "1 Coin 5 Credits" },
- {0x12, 0x01, 0x07, 0x02, "1 Coin 6 Credits" },
- {0 , 0xfe, 0 , 8, "Coin B" },
- {0x12, 0x01, 0x38, 0x00, "3 Coins 1 Credits" },
- {0x12, 0x01, 0x38, 0x08, "2 Coins 1 Credits" },
- {0x12, 0x01, 0x38, 0x38, "1 Coin 1 Credits" },
- {0x12, 0x01, 0x38, 0x30, "1 Coin 2 Credits" },
- {0x12, 0x01, 0x38, 0x28, "1 Coin 3 Credits" },
- {0x12, 0x01, 0x38, 0x20, "1 Coin 4 Credits" },
- {0x12, 0x01, 0x38, 0x18, "1 Coin 5 Credits" },
- {0x12, 0x01, 0x38, 0x10, "1 Coin 6 Credits" },
- {0 , 0xfe, 0 , 2, "Flip Screen" },
- {0x12, 0x01, 0x40, 0x40, "Off" },
- {0x12, 0x01, 0x40, 0x00, "On" },
- {0 , 0xfe, 0 , 4, "Lives" },
- {0x13, 0x01, 0x03, 0x01, "1" },
- {0x13, 0x01, 0x03, 0x00, "2" },
- {0x13, 0x01, 0x03, 0x03, "3" },
- {0x13, 0x01, 0x03, 0x02, "4" },
- {0 , 0xfe, 0 , 4, "Difficulty" },
- {0x13, 0x01, 0x0c, 0x08, "Easy" },
- {0x13, 0x01, 0x0c, 0x0c, "Normal" },
- {0x13, 0x01, 0x0c, 0x04, "Hard" },
- {0x13, 0x01, 0x0c, 0x00, "Hardest" },
- {0 , 0xfe, 0 , 2, "Restore Life Meter" },
- {0x13, 0x01, 0x10, 0x10, "Off" },
- {0x13, 0x01, 0x10, 0x00, "On" },
- {0 , 0xfe, 0 , 2, "Demo Sounds" },
- {0x13, 0x01, 0x80, 0x80, "Off" },
- {0x13, 0x01, 0x80, 0x00, "On" },
- };
- static INT32 CninjaDIPInfo(struct BurnDIPInfo* pdi, UINT32 i) { if (i >= sizeof(CninjaDIPList) / sizeof(CninjaDIPList[0])) { return 1; } if (pdi) { *pdi = CninjaDIPList[i]; } return 0; }
- static struct BurnDIPInfo CninjauDIPList[]=
- {
- {0x12, 0xff, 0xff, 0xff, __null },
- {0x13, 0xff, 0xff, 0x7f, __null },
- {0 , 0xfe, 0 , 8, "Coin A" },
- {0x12, 0x01, 0x07, 0x00, "3 Coins 1 Credits" },
- {0x12, 0x01, 0x07, 0x01, "2 Coins 1 Credits" },
- {0x12, 0x01, 0x07, 0x07, "1 Coin 1 Credits" },
- {0x12, 0x01, 0x07, 0x06, "1 Coin 2 Credits" },
- {0x12, 0x01, 0x07, 0x05, "1 Coin 3 Credits" },
- {0x12, 0x01, 0x07, 0x04, "1 Coin 4 Credits" },
- {0x12, 0x01, 0x07, 0x03, "1 Coin 5 Credits" },
- {0x12, 0x01, 0x07, 0x02, "1 Coin 6 Credits" },
- {0 , 0xfe, 0 , 8, "Coin B" },
- {0x12, 0x01, 0x38, 0x00, "3 Coins 1 Credits" },
- {0x12, 0x01, 0x38, 0x08, "2 Coins 1 Credits" },
- {0x12, 0x01, 0x38, 0x38, "1 Coin 1 Credits" },
- {0x12, 0x01, 0x38, 0x30, "1 Coin 2 Credits" },
- {0x12, 0x01, 0x38, 0x28, "1 Coin 3 Credits" },
- {0x12, 0x01, 0x38, 0x20, "1 Coin 4 Credits" },
- {0x12, 0x01, 0x38, 0x18, "1 Coin 5 Credits" },
- {0x12, 0x01, 0x38, 0x10, "1 Coin 6 Credits" },
- {0 , 0xfe, 0 , 2, "Flip Screen" },
- {0x12, 0x01, 0x40, 0x40, "Off" },
- {0x12, 0x01, 0x40, 0x00, "On" },
- {0 , 0xfe, 0 , 2, "Credit(s) to Start" },
- {0x12, 0x01, 0x80, 0x80, "1" },
- {0x12, 0x01, 0x80, 0x00, "2" },
- {0 , 0xfe, 0 , 4, "Lives" },
- {0x13, 0x01, 0x03, 0x01, "1" },
- {0x13, 0x01, 0x03, 0x00, "2" },
- {0x13, 0x01, 0x03, 0x03, "3" },
- {0x13, 0x01, 0x03, 0x02, "4" },
- {0 , 0xfe, 0 , 4, "Difficulty" },
- {0x13, 0x01, 0x0c, 0x08, "Easy" },
- {0x13, 0x01, 0x0c, 0x0c, "Normal" },
- {0x13, 0x01, 0x0c, 0x04, "Hard" },
- {0x13, 0x01, 0x0c, 0x00, "Hardest" },
- {0 , 0xfe, 0 , 2, "Restore Life Meter" },
- {0x13, 0x01, 0x10, 0x10, "Off" },
- {0x13, 0x01, 0x10, 0x00, "On" },
- {0 , 0xfe, 0 , 2, "Demo Sounds" },
- {0x13, 0x01, 0x80, 0x80, "Off" },
- {0x13, 0x01, 0x80, 0x00, "On" },
- };
- static INT32 CninjauDIPInfo(struct BurnDIPInfo* pdi, UINT32 i) { if (i >= sizeof(CninjauDIPList) / sizeof(CninjauDIPList[0])) { return 1; } if (pdi) { *pdi = CninjauDIPList[i]; } return 0; }
- static struct BurnDIPInfo MutantfDIPList[]=
- {
- {0x12, 0xff, 0xff, 0xff, __null },
- {0x13, 0xff, 0xff, 0x7f, __null },
- {0 , 0xfe, 0 , 8, "Coin A" },
- {0x12, 0x01, 0x07, 0x00, "3 Coins 1 Credits" },
- {0x12, 0x01, 0x07, 0x01, "2 Coins 1 Credits" },
- {0x12, 0x01, 0x07, 0x07, "1 Coin 1 Credits" },
- {0x12, 0x01, 0x07, 0x06, "1 Coin 2 Credits" },
- {0x12, 0x01, 0x07, 0x05, "1 Coin 3 Credits" },
- {0x12, 0x01, 0x07, 0x04, "1 Coin 4 Credits" },
- {0x12, 0x01, 0x07, 0x03, "1 Coin 5 Credits" },
- {0x12, 0x01, 0x07, 0x02, "1 Coin 6 Credits" },
- {0 , 0xfe, 0 , 8, "Coin B" },
- {0x12, 0x01, 0x38, 0x00, "3 Coins 1 Credits" },
- {0x12, 0x01, 0x38, 0x08, "2 Coins 1 Credits" },
- {0x12, 0x01, 0x38, 0x38, "1 Coin 1 Credits" },
- {0x12, 0x01, 0x38, 0x30, "1 Coin 2 Credits" },
- {0x12, 0x01, 0x38, 0x28, "1 Coin 3 Credits" },
- {0x12, 0x01, 0x38, 0x20, "1 Coin 4 Credits" },
- {0x12, 0x01, 0x38, 0x18, "1 Coin 5 Credits" },
- {0x12, 0x01, 0x38, 0x10, "1 Coin 6 Credits" },
- {0 , 0xfe, 0 , 2, "Flip Screen" },
- {0x12, 0x01, 0x40, 0x40, "Off" },
- {0x12, 0x01, 0x40, 0x00, "On" },
- {0 , 0xfe, 0 , 2, "Credit(s) to Start" },
- {0x12, 0x01, 0x80, 0x80, "1" },
- {0x12, 0x01, 0x80, 0x00, "2" },
- {0 , 0xfe, 0 , 4, "Timer Decrement" },
- {0x13, 0x01, 0x03, 0x01, "Slow" },
- {0x13, 0x01, 0x03, 0x03, "Normal" },
- {0x13, 0x01, 0x03, 0x02, "Fast" },
- {0x13, 0x01, 0x03, 0x00, "Very Fast" },
- {0 , 0xfe, 0 , 4, "Difficulty" },
- {0x13, 0x01, 0x0c, 0x08, "Easy" },
- {0x13, 0x01, 0x0c, 0x0c, "Normal" },
- {0x13, 0x01, 0x0c, 0x04, "Hard" },
- {0x13, 0x01, 0x0c, 0x00, "Hardest" },
- {0 , 0xfe, 0 , 4, "Life Per Stage" },
- {0x13, 0x01, 0x30, 0x00, "Least" },
- {0x13, 0x01, 0x30, 0x10, "Little" },
- {0x13, 0x01, 0x30, 0x20, "Less" },
- {0x13, 0x01, 0x30, 0x30, "Normal" },
- {0 , 0xfe, 0 , 2, "Continues" },
- {0x13, 0x01, 0x40, 0x00, "Off" },
- {0x13, 0x01, 0x40, 0x40, "On" },
- {0 , 0xfe, 0 , 2, "Demo Sounds" },
- {0x13, 0x01, 0x80, 0x80, "Off" },
- {0x13, 0x01, 0x80, 0x00, "On" },
- };
- static INT32 MutantfDIPInfo(struct BurnDIPInfo* pdi, UINT32 i) { if (i >= sizeof(MutantfDIPList) / sizeof(MutantfDIPList[0])) { return 1; } if (pdi) { *pdi = MutantfDIPList[i]; } return 0; }
- static struct BurnDIPInfo EdrandyDIPList[]=
- {
- {0x12, 0xff, 0xff, 0xbf, __null },
- {0x13, 0xff, 0xff, 0x7f, __null },
- {0 , 0xfe, 0 , 8, "Coin A" },
- {0x12, 0x01, 0x07, 0x00, "3 Coins 1 Credits" },
- {0x12, 0x01, 0x07, 0x01, "2 Coins 1 Credits" },
- {0x12, 0x01, 0x07, 0x07, "1 Coin 1 Credits" },
- {0x12, 0x01, 0x07, 0x06, "1 Coin 2 Credits" },
- {0x12, 0x01, 0x07, 0x05, "1 Coin 3 Credits" },
- {0x12, 0x01, 0x07, 0x04, "1 Coin 4 Credits" },
- {0x12, 0x01, 0x07, 0x03, "1 Coin 5 Credits" },
- {0x12, 0x01, 0x07, 0x02, "1 Coin 6 Credits" },
- {0 , 0xfe, 0 , 8, "Coin B" },
- {0x12, 0x01, 0x38, 0x00, "3 Coins 1 Credits" },
- {0x12, 0x01, 0x38, 0x08, "2 Coins 1 Credits" },
- {0x12, 0x01, 0x38, 0x38, "1 Coin 1 Credits" },
- {0x12, 0x01, 0x38, 0x30, "1 Coin 2 Credits" },
- {0x12, 0x01, 0x38, 0x28, "1 Coin 3 Credits" },
- {0x12, 0x01, 0x38, 0x20, "1 Coin 4 Credits" },
- {0x12, 0x01, 0x38, 0x18, "1 Coin 5 Credits" },
- {0x12, 0x01, 0x38, 0x10, "1 Coin 6 Credits" },
- {0 , 0xfe, 0 , 2, "Flip Screen" },
- {0x12, 0x01, 0x40, 0x00, "Off" },
- {0x12, 0x01, 0x40, 0x40, "On" },
- {0 , 0xfe, 0 , 2, "Credit(s) to Start" },
- {0x12, 0x01, 0x80, 0x80, "1" },
- {0x12, 0x01, 0x80, 0x00, "2" },
- {0 , 0xfe, 0 , 4, "Player's Power" },
- {0x13, 0x01, 0x03, 0x01, "Very Low" },
- {0x13, 0x01, 0x03, 0x00, "Low" },
- {0x13, 0x01, 0x03, 0x03, "Medium" },
- {0x13, 0x01, 0x03, 0x02, "High" },
- {0 , 0xfe, 0 , 4, "Difficulty" },
- {0x13, 0x01, 0x0c, 0x08, "Easy" },
- {0x13, 0x01, 0x0c, 0x0c, "Normal" },
- {0x13, 0x01, 0x0c, 0x04, "Hard" },
- {0x13, 0x01, 0x0c, 0x00, "Hardest" },
- {0 , 0xfe, 0 , 2, "Continues" },
- {0x13, 0x01, 0x40, 0x00, "Off" },
- {0x13, 0x01, 0x40, 0x40, "On" },
- {0 , 0xfe, 0 , 2, "Demo Sounds" },
- {0x13, 0x01, 0x80, 0x80, "Off" },
- {0x13, 0x01, 0x80, 0x00, "On" },
- };
- static INT32 EdrandyDIPInfo(struct BurnDIPInfo* pdi, UINT32 i) { if (i >= sizeof(EdrandyDIPList) / sizeof(EdrandyDIPList[0])) { return 1; } if (pdi) { *pdi = EdrandyDIPList[i]; } return 0; }
- static struct BurnDIPInfo EdrandcDIPList[]=
- {
- {0x12, 0xff, 0xff, 0xbf, __null },
- {0x13, 0xff, 0xff, 0x7f, __null },
- {0 , 0xfe, 0 , 8, "Coin A" },
- {0x12, 0x01, 0x07, 0x00, "3 Coins 1 Credits" },
- {0x12, 0x01, 0x07, 0x01, "2 Coins 1 Credits" },
- {0x12, 0x01, 0x07, 0x07, "1 Coin 1 Credits" },
- {0x12, 0x01, 0x07, 0x06, "1 Coin 2 Credits" },
- {0x12, 0x01, 0x07, 0x05, "1 Coin 3 Credits" },
- {0x12, 0x01, 0x07, 0x04, "1 Coin 4 Credits" },
- {0x12, 0x01, 0x07, 0x03, "1 Coin 5 Credits" },
- {0x12, 0x01, 0x07, 0x02, "1 Coin 6 Credits" },
- {0 , 0xfe, 0 , 8, "Coin B" },
- {0x12, 0x01, 0x38, 0x00, "3 Coins 1 Credits" },
- {0x12, 0x01, 0x38, 0x08, "2 Coins 1 Credits" },
- {0x12, 0x01, 0x38, 0x38, "1 Coin 1 Credits" },
- {0x12, 0x01, 0x38, 0x30, "1 Coin 2 Credits" },
- {0x12, 0x01, 0x38, 0x28, "1 Coin 3 Credits" },
- {0x12, 0x01, 0x38, 0x20, "1 Coin 4 Credits" },
- {0x12, 0x01, 0x38, 0x18, "1 Coin 5 Credits" },
- {0x12, 0x01, 0x38, 0x10, "1 Coin 6 Credits" },
- {0 , 0xfe, 0 , 2, "Flip Screen" },
- {0x12, 0x01, 0x40, 0x00, "Off" },
- {0x12, 0x01, 0x40, 0x40, "On" },
- {0 , 0xfe, 0 , 2, "Unknown" },
- {0x12, 0x01, 0x80, 0x80, "Off" },
- {0x12, 0x01, 0x80, 0x00, "On" },
- {0 , 0xfe, 0 , 4, "Player's Power" },
- {0x13, 0x01, 0x03, 0x01, "Very Low" },
- {0x13, 0x01, 0x03, 0x00, "Low" },
- {0x13, 0x01, 0x03, 0x03, "Medium" },
- {0x13, 0x01, 0x03, 0x02, "High" },
- {0 , 0xfe, 0 , 4, "Difficulty" },
- {0x13, 0x01, 0x0c, 0x08, "Easy" },
- {0x13, 0x01, 0x0c, 0x0c, "Normal" },
- {0x13, 0x01, 0x0c, 0x04, "Hard" },
- {0x13, 0x01, 0x0c, 0x00, "Hardest" },
- {0 , 0xfe, 0 , 2, "Continues" },
- {0x13, 0x01, 0x40, 0x00, "Off" },
- {0x13, 0x01, 0x40, 0x40, "On" },
- {0 , 0xfe, 0 , 2, "Demo Sounds" },
- {0x13, 0x01, 0x80, 0x80, "Off" },
- {0x13, 0x01, 0x80, 0x00, "On" },
- };
- static INT32 EdrandcDIPInfo(struct BurnDIPInfo* pdi, UINT32 i) { if (i >= sizeof(EdrandcDIPList) / sizeof(EdrandcDIPList[0])) { return 1; } if (pdi) { *pdi = EdrandcDIPList[i]; } return 0; }
- static struct BurnDIPInfo Robocop2DIPList[]=
- {
- {0x14, 0xff, 0xff, 0xbf, __null },
- {0x15, 0xff, 0xff, 0x7f, __null },
- {0x16, 0xff, 0xff, 0xff, __null },
- {0 , 0xfe, 0 , 8, "Coin A" },
- {0x14, 0x01, 0x07, 0x00, "3 Coins 1 Credits" },
- {0x14, 0x01, 0x07, 0x01, "2 Coins 1 Credits" },
- {0x14, 0x01, 0x07, 0x07, "1 Coin 1 Credits" },
- {0x14, 0x01, 0x07, 0x06, "1 Coin 2 Credits" },
- {0x14, 0x01, 0x07, 0x05, "1 Coin 3 Credits" },
- {0x14, 0x01, 0x07, 0x04, "1 Coin 4 Credits" },
- {0x14, 0x01, 0x07, 0x03, "1 Coin 5 Credits" },
- {0x14, 0x01, 0x07, 0x02, "1 Coin 6 Credits" },
- {0 , 0xfe, 0 , 8, "Coin B" },
- {0x14, 0x01, 0x38, 0x00, "3 Coins 1 Credits" },
- {0x14, 0x01, 0x38, 0x08, "2 Coins 1 Credits" },
- {0x14, 0x01, 0x38, 0x38, "1 Coin 1 Credits" },
- {0x14, 0x01, 0x38, 0x30, "1 Coin 2 Credits" },
- {0x14, 0x01, 0x38, 0x28, "1 Coin 3 Credits" },
- {0x14, 0x01, 0x38, 0x20, "1 Coin 4 Credits" },
- {0x14, 0x01, 0x38, 0x18, "1 Coin 5 Credits" },
- {0x14, 0x01, 0x38, 0x10, "1 Coin 6 Credits" },
- {0 , 0xfe, 0 , 2, "Flip Screen" },
- {0x14, 0x01, 0x40, 0x00, "Off" },
- {0x14, 0x01, 0x40, 0x40, "On" },
- {0 , 0xfe, 0 , 4, "Lives" },
- {0x15, 0x01, 0x03, 0x01, "1" },
- {0x15, 0x01, 0x03, 0x00, "2" },
- {0x15, 0x01, 0x03, 0x03, "3" },
- {0x15, 0x01, 0x03, 0x02, "4" },
- {0 , 0xfe, 0 , 4, "Time" },
- {0x15, 0x01, 0x0c, 0x08, "400 Seconds" },
- {0x15, 0x01, 0x0c, 0x0c, "300 Seconds" },
- {0x15, 0x01, 0x0c, 0x04, "200 Seconds" },
- {0x15, 0x01, 0x0c, 0x00, "100 Seconds" },
- {0 , 0xfe, 0 , 4, "Health" },
- {0x15, 0x01, 0x30, 0x00, "17" },
- {0x15, 0x01, 0x30, 0x10, "24" },
- {0x15, 0x01, 0x30, 0x30, "33" },
- {0x15, 0x01, 0x30, 0x20, "40" },
- {0 , 0xfe, 0 , 2, "Continues" },
- {0x15, 0x01, 0x40, 0x00, "Off" },
- {0x15, 0x01, 0x40, 0x40, "On" },
- {0 , 0xfe, 0 , 2, "Demo Sounds" },
- {0x15, 0x01, 0x80, 0x80, "Off" },
- {0x15, 0x01, 0x80, 0x00, "On" },
- {0 , 0xfe, 0 , 4, "Bullets" },
- {0x16, 0x01, 0x03, 0x00, "Least" },
- {0x16, 0x01, 0x03, 0x01, "Less" },
- {0x16, 0x01, 0x03, 0x03, "Normal" },
- {0x16, 0x01, 0x03, 0x02, "More" },
- {0 , 0xfe, 0 , 4, "Enemy Movement" },
- {0x16, 0x01, 0x0c, 0x08, "Slow" },
- {0x16, 0x01, 0x0c, 0x0c, "Normal" },
- {0x16, 0x01, 0x0c, 0x04, "Fast" },
- {0x16, 0x01, 0x0c, 0x00, "Fastest" },
- {0 , 0xfe, 0 , 4, "Enemy Strength" },
- {0x16, 0x01, 0x30, 0x20, "Less" },
- {0x16, 0x01, 0x30, 0x30, "Normal" },
- {0x16, 0x01, 0x30, 0x10, "More" },
- {0x16, 0x01, 0x30, 0x00, "Most" },
- {0 , 0xfe, 0 , 2, "Enemy Weapon Speed" },
- {0x16, 0x01, 0x40, 0x40, "Normal" },
- {0x16, 0x01, 0x40, 0x00, "Fast" },
- {0 , 0xfe, 0 , 2, "Game Over Message" },
- {0x16, 0x01, 0x80, 0x80, "Off" },
- {0x16, 0x01, 0x80, 0x00, "On" },
- };
- static INT32 Robocop2DIPInfo(struct BurnDIPInfo* pdi, UINT32 i) { if (i >= sizeof(Robocop2DIPList) / sizeof(Robocop2DIPList[0])) { return 1; } if (pdi) { *pdi = Robocop2DIPList[i]; } return 0; }
- void cninja_main_write_word(UINT32 address, UINT16 data)
- {
- if ((address & 0xfffffff0) == 0x140000) { deco16_pf_control[0][(address & 0x0f)/2] = data; return; }
- if ((address & 0xfffffff0) == 0x150000) { deco16_pf_control[1][(address & 0x0f)/2] = data; return; }
- switch (address)
- {
- case 0x190000:
- case 0x1a4000:
- irq_mask = data & 0xff;
- return;
- case 0x190002:
- case 0x1a4002:
- {
- scanline = data & 0xff;
- if ((!(((scanline)>>(1))&1)) && (scanline > 0) && (scanline < 240)) {
- irq_timer = scanline;
- } else {
- irq_timer = -1;
- }
- }
- return;
- case 0x1ac000:
- case 0x1b4000:
- memcpy (DrvSprBuf, DrvSprRAM, 0x800);
- return;
- case 0x17ff2a:
- case 0x198064:
- case 0x1bc0a8:
- if (has_z80) {
- *soundlatch = data & 0xff;
- ZetNmi();
- } else {
- deco16_soundlatch = data & 0xff;
- h6280SetIRQLine(0, 1);
- }
- break;
- }
- if ((address & 0xfffff800) == 0x198000) {
- deco16_66_prot_w(address, data, 0xffff);
- return;
- }
- if ((address & 0xffffff00) == 0x1bc000) {
- UINT16 *ProtRam = (UINT16*)deco16_prot_ram;
- ProtRam[(address - 0x1bc000) >> 1] = data;
- return;
- }
- }
- void cninja_main_write_byte(UINT32 address, UINT8 data)
- {
- switch (address)
- {
- case 0x190001:
- case 0x1a4001:
- irq_mask = data & 0xff;
- return;
- case 0x190003:
- case 0x1a4003:
- {
- scanline = data & 0xff;
- if ((~irq_mask & 0x02) && (scanline > 0) && (scanline < 240)) {
- irq_timer = scanline;
- } else {
- irq_timer = -1;
- }
- }
- return;
- case 0x1ac001:
- case 0x1b4001:
- memcpy (DrvSprBuf, DrvSprRAM, 0x800);
- return;
- case 0x198065:
- case 0x1bc0a9:
- if (has_z80) {
- *soundlatch = data;
- ZetNmi();
- } else {
- deco16_soundlatch = data;
- h6280SetIRQLine(0, 1);
- }
- break;
- }
- if ((address & 0xfffff800) == 0x198000) {
- deco16_66_prot_w(address, data, 0x00ff << ((address & 1) << 3));
- return;
- }
- if ((address & 0xffffff00) == 0x1bc000) {
- DrvPrtRAM[(address & 0xff)^1] = data;
- return;
- }
- {};
- }
- UINT16 cninja_main_read_word(UINT32 address)
- {
- switch (address)
- {
- case 0x17ff22:
- return (DrvDips[1] << 8) | (DrvDips[0] << 0);
- case 0x17ff28:
- return (DrvInputs[1] & 0x07) | (deco16_vblank & 0x08);
- case 0x17ff2c:
- return DrvInputs[0];
- case 0x1a4002:
- case 0x190002:
- return scanline;
- case 0x1a4004:
- case 0x190004:
- SekSetIRQLine(3, (0x0000));
- SekSetIRQLine(4, (0x0000));
- return 0;
- }
- if ((address & 0xfffffc00) == 0x1bc000) {
- return deco16_104_cninja_prot_r(address);
- }
- if ((address & 0xfffff800) == 0x198000) {
- return deco16_60_prot_r(address);
- }
- {};
- return 0;
- }
- UINT8 cninja_main_read_byte(UINT32 address)
- {
- switch (address)
- {
- case 0x17ff22:
- return DrvDips[1];
- case 0x17ff23:
- return DrvDips[0];
- case 0x17ff29:
- return (DrvInputs[1] & 0x07) | (deco16_vblank & 0x08);
- case 0x17ff2c:
- return DrvInputs[0] >> 8;
- case 0x17ff2d:
- return DrvInputs[0];
- case 0x1a4003:
- case 0x190003:
- return scanline;
- case 0x1a4005:
- case 0x190005:
- SekSetIRQLine(3, (0x0000));
- SekSetIRQLine(4, (0x0000));
- return 0;
- }
- if ((address & 0xfffff800) == 0x198000) {
- return deco16_60_prot_r(address) >> ((~address & 1) << 3);
- }
- if ((address & 0xfffffc00) == 0x1bc000) {
- return deco16_104_cninja_prot_r(address) >> ((~address & 1) << 3);
- }
- {};
- return 0;
- }
- void mutantf_main_write_word(UINT32 address, UINT16 data)
- {
- if ((address & 0xfffffff0) == 0x300000) { deco16_pf_control[0][(address & 0x0f)/2] = data; return; }
- if ((address & 0xfffffff0) == 0x310000) { deco16_pf_control[1][(address & 0x0f)/2] = data; return; }
- switch (address)
- {
- case 0x180000:
- deco16_priority = data;
- return;
- case 0x1a0064:
- deco16_soundlatch = data & 0xff;
- h6280SetIRQLine(0, 1);
- break;
- case 0x1c0000:
- memcpy (DrvSprBuf, DrvSprRAM, 0x800);
- return;
- case 0x1e0000:
- memcpy (DrvSprBuf1, DrvSprRAM1, 0x800);
- return;
- }
- if ((address & 0xfffff800) == 0x1a0000) {
- deco16_66_prot_w(address, data, 0xffff);
- return;
- }
- }
- void mutantf_main_write_byte(UINT32 address, UINT8 data)
- {
- switch (address)
- {
- case 0x180000:
- case 0x180001:
- deco16_priority = data;
- return;
- case 0x1c0000:
- case 0x1c0001:
- memcpy (DrvSprBuf, DrvSprRAM, 0x800);
- return;
- case 0x1e0000:
- case 0x1e0001:
- memcpy (DrvSprBuf1, DrvSprRAM1, 0x800);
- return;
- case 0x1a0065:
- deco16_soundlatch = data;
- h6280SetIRQLine(0, 1);
- break;
- }
- if ((address & 0xfffff800) == 0x1a0000) {
- deco16_66_prot_w(address, data, 0x00ff << ((address & 1) << 3));
- return;
- }
- }
- UINT16 mutantf_main_read_word(UINT32 address)
- {
- if ((address & 0xfffff800) == 0x1a0000) {
- return deco16_66_prot_r(address);
- }
- return 0;
- }
- UINT8 mutantf_main_read_byte(UINT32 address)
- {
- if (address == 0x1c0001) return (0xffff) & 0xff;
- if ((address & 0xfffff800) == 0x1a0000) {
- return deco16_66_prot_r(address) >> ((~address & 1) << 3);
- }
- return 0;
- }
- void robocop2_main_write_word(UINT32 address, UINT16 data)
- {
- if ((address & 0xfffffff0) == 0x140000) { deco16_pf_control[0][(address & 0x0f)/2] = data; return; }
- if ((address & 0xfffffff0) == 0x150000) { deco16_pf_control[1][(address & 0x0f)/2] = data; return; }
- switch (address)
- {
- case 0x1b0000:
- irq_mask = data & 0xff;
- return;
- case 0x1b0002: {
- scanline = data & 0xff;
- if ((!(((scanline)>>(1))&1)) && (scanline > 0) && (scanline < 240)) {
- irq_timer = scanline;
- } else {
- irq_timer = -1;
- }
- }
- return;
- case 0x198000:
- memcpy (DrvSprBuf, DrvSprRAM, 0x800);
- return;
- case 0x18c064:
- deco16_soundlatch = data & 0xff;
- h6280SetIRQLine(0, 1);
- return;;
- case 0x1f0000:
- deco16_priority = data;
- return;
- }
- }
- void robocop2_main_write_byte(UINT32 address, UINT8 data)
- {
- switch (address)
- {
- case 0x1b0000:
- case 0x1b0001:
- irq_mask = data & 0xff;
- return;
- case 0x1b0002:
- case 0x1b0003: {
- scanline = data & 0xff;
- if ((~irq_mask & 0x02) && (scanline > 0) && (scanline < 240)) {
- irq_timer = scanline;
- } else {
- irq_timer = -1;
- }
- }
- return;
- case 0x198000:
- case 0x198001:
- memcpy (DrvSprBuf, DrvSprRAM, 0x800);
- return;
- case 0x18c065:
- deco16_soundlatch = data;
- h6280SetIRQLine(0, 1);
- break;
- case 0x1f0000:
- case 0x1f0001:
- deco16_priority = data;
- return;
- }
- }
- UINT16 robocop2_main_read_word(UINT32 address)
- {
- switch (address)
- {
- case 0x18c41a:
- return DrvInputs[0];
- case 0x18c320:
- return (DrvInputs[1] & 0x07) | (deco16_vblank & 0x08);
- case 0x18c4e6:
- return (DrvDips[1] << 8) | (DrvDips[0] << 0);
- case 0x18c504:
- return 0x0084;
- case 0x1b0002:
- return scanline;
- case 0x1b0004:
- SekSetIRQLine(3, (0x0000));
- SekSetIRQLine(4, (0x0000));
- return 0;
- case 0x1f8000:
- return DrvDips[2];
- }
- return 0;
- }
- UINT8 robocop2_main_read_byte(UINT32 address)
- {
- switch (address)
- {
- case 0x18c41a:
- return DrvInputs[0] >> 8;
- case 0x18c41b:
- return DrvInputs[0] >> 0;
- case 0x18c320:
- case 0x18c321:
- return (DrvInputs[1] & 0x07) | (deco16_vblank & 0x08);
- case 0x18c4e6:
- return DrvDips[0];
- case 0x18c4e7:
- return DrvDips[1];
- case 0x18c504:
- case 0x18c505:
- return 0x0084;
- case 0x1b0002:
- case 0x1b0003:
- return scanline;
- case 0x1b0004:
- case 0x1b0005:
- SekSetIRQLine(3, (0x0000));
- SekSetIRQLine(4, (0x0000));
- return 0;
- case 0x1f8000:
- case 0x1f8001:
- return DrvDips[2];
- }
- return 0;
- }
- void stoneage_sound_write(UINT16 address, UINT8 data)
- {
- switch (address)
- {
- case 0x8800:
- BurnYM2151SelectRegister(data);
- return;
- case 0x8801:
- BurnYM2151WriteRegister(data);
- return;
- case 0x9800:
- MSM6295Command(0, data);
- return;
- }
- }
- UINT8 stoneage_sound_read(UINT16 address)
- {
- switch (address)
- {
- case 0x8800:
- case 0x8801:
- return YM2151ReadStatus(0);
- case 0x9800:
- return MSM6295ReadStatus(0);
- case 0xa000:
- ZetSetIRQLine(0x20, 0);
- return *soundlatch;
- }
- return 0;
- }
- static void DrvYM2151IrqHandler(INT32 state)
- {
- ZetSetIRQLine(0, state ? 1 : 0);
- }
- static void DrvYM2151WritePort(UINT32, UINT32 data)
- {
- DrvOkiBank = data & 1;
- memcpy (DrvSndROM1, DrvSndROM1 + 0x40000 + (data & 1) * 0x40000, 0x40000);
- }
- static INT32 cninja_bank_callback(const INT32 bank)
- {
- if ((bank >> 4) & 0xf) return 0x0000;
- return 0x1000;
- }
- static INT32 mutantf_1_bank_callback(const INT32 bank)
- {
- return ((bank >> 4) & 0x3) << 12;
- }
- static INT32 mutantf_2_bank_callback(const INT32 bank)
- {
- return ((bank >> 5) & 0x1) << 14;
- }
- static INT32 robocop2_bank_callback(const INT32 bank)
- {
- return (bank & 0x30) << 8;
- }
- static INT32 DrvDoReset()
- {
- memset (AllRam, 0, RamEnd - AllRam);
- SekOpen(0);
- SekReset();
- SekClose();
- if (has_z80) {
- ZetOpen(0);
- ZetReset();
- ZetClose();
- MSM6295Reset(0);
- MSM6295Reset(1);
- BurnYM2151Reset();
- } else {
- deco16SoundReset();
- }
- DrvYM2151WritePort(0, 0);
- deco16Reset();
- scanline = 0;
- irq_mask = 0;
- irq_timer = -1;
- return 0;
- }
- static void DrvBootlegCharDecode(UINT8 *gfx, INT32 len)
- {
- UINT8 *dst = (UINT8*)BurnMalloc(len);
- memcpy (dst, gfx, len);
- for (INT32 r = 0; r < len; r+=4) {
- for (INT32 i = 0; i < 8; i++) {
- INT32 t0 = (dst[r + 3] >> (7 - (i & 7))) & 1;
- INT32 t1 = (dst[r + 1] >> (7 - (i & 7))) & 1;
- INT32 t2 = (dst[r + 2] >> (7 - (i & 7))) & 1;
- INT32 t3 = (dst[r + 0] >> (7 - (i & 7))) & 1;
- gfx[(r * 2) + i] = (t0 << 3) | (t1 << 2) | (t2 << 1) | (t3 << 0);
- }
- }
- _BurnFree(dst); dst = __null;;
- }
- static INT32 MemIndex()
- {
- UINT8 *Next; Next = AllMem;
- Drv68KROM = Next; Next += 0x100000;
- DrvZ80ROM = Next;
- DrvHucROM = Next; Next += 0x010000;
- DrvGfxROM0 = Next; Next += 0x200000;
- DrvGfxROM1 = Next; Next += 0x200000;
- DrvGfxROM2 = Next; Next += 0x300000;
- DrvGfxROM3 = Next; Next += 0xa00000;
- DrvGfxROM4 = Next; Next += 0x100000;
- MSM6295ROM = Next;
- DrvSndROM0 = Next; Next += 0x100000;
- DrvSndROM1 = Next; Next += 0x0c0000;
- DrvPalette = (UINT32*)Next; Next += 0x0800 * sizeof(UINT32);
- AllRam = Next;
- Drv68KRAM = Next; Next += 0x008000;
- DrvHucRAM = Next; Next += 0x002000;
- DrvSprRAM = Next; Next += 0x000800;
- DrvSprBuf = Next; Next += 0x000800;
- DrvSprRAM1 = Next; Next += 0x000800;
- DrvSprBuf1 = Next; Next += 0x000800;
- DrvPalRAM = Next; Next += 0x002000;
- deco16_prot_ram = (UINT16*)Next;
- DrvPrtRAM = Next; Next += 0x000800;
- DrvZ80RAM = Next; Next += 0x000800;
- soundlatch = Next; Next += 0x000001;
- flipscreen = Next; Next += 0x000001;
- RamEnd = Next;
- SoundBuffer = (INT16*)Next; Next += nBurnSoundLen * 2 * sizeof(INT16);
- MemEnd = Next;
- return 0;
- }
- static void cninja_patch()
- {
- UINT16 *rom = (UINT16 *)Drv68KROM;
- for (INT32 i = 0; i < 0x80000 / 2; i++)
- {
- if (rom[i] == 0x66ff || rom[i] == 0x67ff)
- {
- if (rom[i - 4] == 0x0c39 || rom[i - 4] == 0x0839)
- {
- rom[i - 0] = 0x4e71;
- rom[i - 1] = 0x4e71;
- rom[i - 2] = 0x4e71;
- rom[i - 3] = 0x4e71;
- rom[i - 4] = 0x4e71;
- }
- }
- }
- }
- static INT32 CninjaInit()
- {
- BurnSetRefreshRate(58.00);
- AllMem = __null;
- MemIndex();
- INT32 nLen = MemEnd - (UINT8 *)0;
- if ((AllMem = (UINT8 *)BurnMalloc(nLen)) == __null) return 1;
- memset(AllMem, 0, nLen);
- MemIndex();
- {
- if (BurnLoadRom(Drv68KROM + 0x00001, 0, 2)) return 1;
- if (BurnLoadRom(Drv68KROM + 0x00000, 1, 2)) return 1;
- if (BurnLoadRom(Drv68KROM + 0x40001, 2, 2)) return 1;
- if (BurnLoadRom(Drv68KROM + 0x40000, 3, 2)) return 1;
- if (BurnLoadRom(Drv68KROM + 0x80001, 4, 2)) return 1;
- if (BurnLoadRom(Drv68KROM + 0x80000, 5, 2)) return 1;
- if (BurnLoadRom(DrvHucROM + 0x00000, 6, 1)) return 1;
- if (BurnLoadRom(DrvGfxROM0 + 0x00001, 7, 2)) return 1;
- if (BurnLoadRom(DrvGfxROM0 + 0x00000, 8, 2)) return 1;
- if (BurnLoadRom(DrvGfxROM1 + 0x00000, 9, 1)) return 1;
- if (BurnLoadRom(DrvGfxROM2 + 0x00000, 10, 1)) return 1;
- if (BurnLoadRom(DrvGfxROM2 + 0x80000, 11, 1)) return 1;
- for (INT32 i = 0; i < 0x40000; i++) {
- INT32 n = DrvGfxROM2[i + 0x40000];
- DrvGfxROM2[i + 0x40000] = DrvGfxROM2[i + 0x80000];
- DrvGfxROM2[i + 0x80000] = n;
- }
- if (BurnLoadRom(DrvGfxROM3 + 0x000000, 12, 2)) return 1;
- if (BurnLoadRom(DrvGfxROM3 + 0x000001, 13, 2)) return 1;
- if (BurnLoadRom(DrvGfxROM3 + 0x100000, 14, 2)) return 1;
- if (BurnLoadRom(DrvGfxROM3 + 0x100001, 15, 2)) return 1;
- BurnByteswap(DrvGfxROM3, 0x200000);
- if (BurnLoadRom(DrvSndROM0 + 0x00000, 16, 1)) return 1;
- if (BurnLoadRom(DrvSndROM1 + 0x40000, 17, 1)) return 1;
- deco16_tile_decode(DrvGfxROM0, DrvGfxROM0, 0x020000, 1);
- deco16_tile_decode(DrvGfxROM1, DrvGfxROM1, 0x080000, 0);
- deco16_tile_decode(DrvGfxROM2, DrvGfxROM2, 0x100000, 0);
- deco16_sprite_decode(DrvGfxROM3, 0x200000);
- cninja_patch();
- }
- deco16Init(0, 1, 1);
- deco16_set_graphics(DrvGfxROM0, 0x20000 * 2, DrvGfxROM1, 0x080000 * 2, DrvGfxROM2, 0x100000 * 2);
- deco16_set_global_offsets(0, 8);
- deco16_set_color_base(2, 0x200 + 0x000);
- deco16_set_color_base(3, 0x200 + 0x300);
- deco16_set_bank_callback(2, cninja_bank_callback);
- deco16_set_bank_callback(3, cninja_bank_callback);
- SekInit(0, 0x68000);
- SekOpen(0);
- SekMapMemory(Drv68KROM, 0x000000, 0x0bffff, ((1) | (4)));
- SekMapMemory(deco16_pf_ram[0], 0x144000, 0x144fff, ((1) | (2) | (4)));
- SekMapMemory(deco16_pf_ram[1], 0x146000, 0x146fff, ((1) | (2) | (4)));
- SekMapMemory(deco16_pf_rowscroll[0], 0x14c000, 0x14c7ff, ((1) | (2) | (4)));
- SekMapMemory(deco16_pf_rowscroll[1], 0x14e000, 0x14e7ff, ((1) | (2) | (4)));
- SekMapMemory(deco16_pf_ram[2], 0x154000, 0x154fff, ((1) | (2) | (4)));
- SekMapMemory(deco16_pf_ram[3], 0x156000, 0x156fff, ((1) | (2) | (4)));
- SekMapMemory(deco16_pf_rowscroll[2], 0x15c000, 0x15c7ff, ((1) | (2) | (4)));
- SekMapMemory(deco16_pf_rowscroll[3], 0x15e000, 0x15e7ff, ((1) | (2) | (4)));
- SekMapMemory(Drv68KRAM, 0x184000, 0x187fff, ((1) | (2) | (4)));
- SekMapMemory(DrvPalRAM, 0x19c000, 0x19dfff, ((1) | (2) | (4)));
- SekMapMemory(DrvSprRAM, 0x1a4000, 0x1a47ff, ((1) | (2) | (4)));
- SekSetWriteWordHandler(0, cninja_main_write_word);
- SekSetWriteByteHandler(0, cninja_main_write_byte);
- SekSetReadWordHandler(0, cninja_main_read_word);
- SekSetReadByteHandler(0, cninja_main_read_byte);
- SekClose();
- deco16SoundInit(DrvHucROM, DrvHucRAM, 8055000, 1, DrvYM2151WritePort, 40.0, 1006875, 75.0, 2013750, 60.0);
- GenericTilesInit();
- DrvDoReset();
- return 0;
- }
- static INT32 EdrandyInit()
- {
- BurnSetRefreshRate(58.00);
- AllMem = __null;
- MemIndex();
- INT32 nLen = MemEnd - (UINT8 *)0;
- if ((AllMem = (UINT8 *)BurnMalloc(nLen)) == __null) return 1;
- memset(AllMem, 0, nLen);
- MemIndex();
- {
- if (BurnLoadRom(Drv68KROM + 0x00001, 0, 2)) return 1;
- if (BurnLoadRom(Drv68KROM + 0x00000, 1, 2)) return 1;
- if (BurnLoadRom(Drv68KROM + 0x40001, 2, 2)) return 1;
- if (BurnLoadRom(Drv68KROM + 0x40000, 3, 2)) return 1;
- if (BurnLoadRom(Drv68KROM + 0x80001, 4, 2)) return 1;
- if (BurnLoadRom(Drv68KROM + 0x80000, 5, 2)) return 1;
- if (BurnLoadRom(Drv68KROM + 0xc0001, 6, 2)) return 1;
- if (BurnLoadRom(Drv68KROM + 0xc0000, 7, 2)) return 1;
- if (BurnLoadRom(DrvHucROM + 0x00000, 8, 1)) return 1;
- if (BurnLoadRom(DrvGfxROM0 + 0x00001, 9, 2)) return 1;
- if (BurnLoadRom(DrvGfxROM0 + 0x00000, 10, 2)) return 1;
- if (BurnLoadRom(DrvGfxROM1 + 0x00000, 11, 1)) return 1;
- if (BurnLoadRom(DrvGfxROM2 + 0x00000, 12, 1)) return 1;
- if (BurnLoadRom(DrvGfxROM2 + 0x80000, 13, 1)) return 1;
- for (INT32 i = 0; i < 0x40000; i++) {
- INT32 n = DrvGfxROM2[i + 0x40000];
- DrvGfxROM2[i + 0x40000] = DrvGfxROM2[i + 0x80000];
- DrvGfxROM2[i + 0x80000] = n;
- }
- if (BurnLoadRom(DrvGfxROM3 + 0x000000, 14, 2)) return 1;
- if (BurnLoadRom(DrvGfxROM3 + 0x000001, 15, 2)) return 1;
- if (BurnLoadRom(DrvGfxROM3 + 0x100000, 16, 2)) return 1;
- if (BurnLoadRom(DrvGfxROM3 + 0x100001, 17, 2)) return 1;
- if (BurnLoadRom(DrvGfxROM3 + 0x200000, 18, 2)) return 1;
- if (BurnLoadRom(DrvGfxROM3 + 0x200001, 19, 2)) return 1;
- if (BurnLoadRom(DrvGfxROM3 + 0x300000, 20, 2)) return 1;
- if (BurnLoadRom(DrvGfxROM3 + 0x300001, 21, 2)) return 1;
- if (BurnLoadRom(DrvGfxROM3 + 0x400000, 22, 2)) return 1;
- if (BurnLoadRom(DrvGfxROM3 + 0x400001, 23, 2)) return 1;
- BurnByteswap(DrvGfxROM3, 0x500000);
- if (BurnLoadRom(DrvSndROM0 + 0x00000, 24, 1)) return 1;
- if (BurnLoadRom(DrvSndROM1 + 0x40000, 25, 1)) return 1;
- deco16_tile_decode(DrvGfxROM0, DrvGfxROM0, 0x020000, 1);
- deco16_tile_decode(DrvGfxROM1, DrvGfxROM1, 0x080000, 0);
- deco16_tile_decode(DrvGfxROM2, DrvGfxROM2, 0x100000, 0);
- deco16_sprite_decode(DrvGfxROM3, 0x500000);
- }
- deco16Init(0, 0, 1);
- deco16_set_graphics(DrvGfxROM0, 0x20000 * 2, DrvGfxROM1, 0x080000 * 2, DrvGfxROM2, 0x100000 * 2);
- deco16_set_global_offsets(0, 8);
- deco16_set_color_base(2, 0x200 + 0x000);
- deco16_set_color_base(3, 0x200 + 0x300);
- deco16_set_bank_callback(2, cninja_bank_callback);
- deco16_set_bank_callback(3, cninja_bank_callback);
- SekInit(0, 0x68000);
- SekOpen(0);
- SekMapMemory(Drv68KROM, 0x000000, 0x0fffff, ((1) | (4)));
- SekMapMemory(deco16_pf_ram[0], 0x144000, 0x144fff, ((1) | (2) | (4)));
- SekMapMemory(deco16_pf_ram[1], 0x146000, 0x146fff, ((1) | (2) | (4)));
- SekMapMemory(deco16_pf_rowscroll[0], 0x14c000, 0x14c7ff, ((1) | (2) | (4)));
- SekMapMemory(deco16_pf_rowscroll[1], 0x14e000, 0x14e7ff, ((1) | (2) | (4)));
- SekMapMemory(deco16_pf_ram[2], 0x154000, 0x154fff, ((1) | (2) | (4)));
- SekMapMemory(deco16_pf_ram[3], 0x156000, 0x156fff, ((1) | (2) | (4)));
- SekMapMemory(deco16_pf_rowscroll[2], 0x15c000, 0x15c7ff, ((1) | (2) | (4)));
- SekMapMemory(deco16_pf_rowscroll[3], 0x15e000, 0x15e7ff, ((1) | (2) | (4)));
- SekMapMemory(DrvPalRAM, 0x188000, 0x189fff, ((1) | (2) | (4)));
- SekMapMemory(Drv68KRAM, 0x194000, 0x197fff, ((1) | (2) | (4)));
- SekMapMemory(DrvSprRAM, 0x1bc000, 0x1bc7ff, ((1) | (2) | (4)));
- SekSetWriteWordHandler(0, cninja_main_write_word);
- SekSetWriteByteHandler(0, cninja_main_write_byte);
- SekSetReadWordHandler(0, cninja_main_read_word);
- SekSetReadByteHandler(0, cninja_main_read_byte);
- SekClose();
- deco16SoundInit(DrvHucROM, DrvHucRAM, 8055000, 1, DrvYM2151WritePort, 40.0, 1006875, 75.0, 2013750, 60.0);
- GenericTilesInit();
- DrvDoReset();
- return 0;
- }
- static INT32 MutantfInit()
- {
- BurnSetRefreshRate(58.00);
- AllMem = __null;
- MemIndex();
- INT32 nLen = MemEnd - (UINT8 *)0;
- if ((AllMem = (UINT8 *)BurnMalloc(nLen)) == __null) return 1;
- memset(AllMem, 0, nLen);
- MemIndex();
- {
- if (BurnLoadRom(Drv68KROM + 0x00001, 0, 2)) return 1;
- if (BurnLoadRom(Drv68KROM + 0x00000, 1, 2)) return 1;
- if (BurnLoadRom(Drv68KROM + 0x40001, 2, 2)) return 1;
- if (BurnLoadRom(Drv68KROM + 0x40000, 3, 2)) return 1;
- if (BurnLoadRom(DrvHucROM + 0x00000, 4, 1)) return 1;
- if (BurnLoadRom(DrvGfxROM0 + 0x00000, 5, 2)) return 1;
- if (BurnLoadRom(DrvGfxROM0 + 0x00001, 6, 2)) return 1;
- if (BurnLoadRom(DrvGfxROM1 + 0x00000, 7, 1)) return 1;
- memcpy (DrvGfxROM0 + 0x50000, DrvGfxROM0 + 0x10000, 0x10000);
- memcpy (DrvGfxROM0 + 0x10000, DrvGfxROM1 + 0x00000, 0x40000);
- memcpy (DrvGfxROM0 + 0x60000, DrvGfxROM1 + 0x40000, 0x40000);
- if (BurnLoadRom(DrvGfxROM2 + 0x00000, 8, 1)) return 1;
- if (BurnLoadRom(DrvGfxROM2 + 0x80000, 9, 1)) return 1;
- for (INT32 i = 0; i < 0x40000; i++) {
- INT32 n = DrvGfxROM2[i + 0x40000];
- DrvGfxROM2[i + 0x40000] = DrvGfxROM2[i + 0x80000];
- DrvGfxROM2[i + 0x80000] = n;
- }
- if (BurnLoadRom(DrvGfxROM3 + 0x000000, 10, 2)) return 1;
- if (BurnLoadRom(DrvGfxROM3 + 0x000001, 13, 2)) return 1;
- if (BurnLoadRom(DrvGfxROM3 + 0x200000, 11, 2)) return 1;
- if (BurnLoadRom(DrvGfxROM3 + 0x200001, 14, 2)) return 1;
- if (BurnLoadRom(DrvGfxROM3 + 0x400000, 12, 2)) return 1;
- if (BurnLoadRom(DrvGfxROM3 + 0x400001, 15, 2)) return 1;
- if (BurnLoadRom(DrvGfxROM4 + 0x000001, 16, 4)) return 1;
- if (BurnLoadRom(DrvGfxROM4 + 0x000003, 17, 4)) return 1;
- if (BurnLoadRom(DrvGfxROM4 + 0x000000, 18, 4)) return 1;
- if (BurnLoadRom(DrvGfxROM4 + 0x000002, 19, 4)) return 1;
- BurnByteswap(DrvGfxROM3, 0x500000);
- BurnByteswap(DrvGfxROM4, 0x040000);
- if (BurnLoadRom(DrvSndROM0 + 0x00000, 20, 1)) return 1;
- if (BurnLoadRom(DrvSndROM1 + 0x40000, 21, 1)) return 1;
- deco56_decrypt_gfx(DrvGfxROM0, 0xa0000);
- deco56_decrypt_gfx(DrvGfxROM1, 0x80000);
- deco16_tile_decode(DrvGfxROM0, DrvGfxROM0, 0x0a0000, 1);
- deco16_tile_decode(DrvGfxROM1, DrvGfxROM1, 0x080000, 0);
- deco16_tile_decode(DrvGfxROM2, DrvGfxROM2, 0x100000, 0);
- deco16_sprite_decode(DrvGfxROM3, 0x500000);
- deco16_sprite_decode(DrvGfxROM4, 0x040000);
- }
- deco16Init(0, 0, 1);
- deco16_set_graphics(DrvGfxROM0, 0xa0000 * 2, DrvGfxROM1, 0x080000 * 2, DrvGfxROM2, 0x100000 * 2);
- deco16_set_global_offsets(0, 8);
- deco16_set_color_base(0, 0x000);
- deco16_set_color_base(1, 0x300);
- deco16_set_color_base(2, 0x200);
- deco16_set_color_base(3, 0x400);
- deco16_set_bank_callback(0, mutantf_1_bank_callback);
- deco16_set_bank_callback(1, mutantf_2_bank_callback);
- deco16_set_bank_callback(2, mutantf_1_bank_callback);
- deco16_set_bank_callback(3, mutantf_1_bank_callback);
- SekInit(0, 0x68000);
- SekOpen(0);
- SekMapMemory(Drv68KROM, 0x000000, 0x07ffff, ((1) | (4)));
- SekMapMemory(Drv68KRAM, 0x100000, 0x103fff, ((1) | (2) | (4)));
- SekMapMemory(DrvSprRAM, 0x120000, 0x1207ff, ((1) | (2) | (4)));
- SekMapMemory(DrvSprRAM1, 0x140000, 0x1407ff, ((1) | (2) | (4)));
- SekMapMemory(DrvPalRAM, 0x160000, 0x161fff, ((1) | (2) | (4)));
- SekMapMemory(deco16_pf_ram[0], 0x304000, 0x305fff, ((1) | (2) | (4)));
- SekMapMemory(deco16_pf_ram[1], 0x306000, 0x307fff, ((1) | (2) | (4)));
- SekMapMemory(deco16_pf_rowscroll[0], 0x308000, 0x3087ff, ((1) | (2) | (4)));
- SekMapMemory(deco16_pf_rowscroll[1], 0x30a000, 0x30a7ff, ((1) | (2) | (4)));
- SekMapMemory(deco16_pf_ram[2], 0x314000, 0x315fff, ((1) | (2) | (4)));
- SekMapMemory(deco16_pf_ram[3], 0x316000, 0x317fff, ((1) | (2) | (4)));
- SekMapMemory(deco16_pf_rowscroll[2], 0x318000, 0x3187ff, ((1) | (2) | (4)));
- SekMapMemory(deco16_pf_rowscroll[3], 0x31a000, 0x31a7ff, ((1) | (2) | (4)));
- SekSetWriteWordHandler(0, mutantf_main_write_word);
- SekSetWriteByteHandler(0, mutantf_main_write_byte);
- SekSetReadWordHandler(0, mutantf_main_read_word);
- SekSetReadByteHandler(0, mutantf_main_read_byte);
- SekClose();
- deco16SoundInit(DrvHucROM, DrvHucRAM, 8055000, 0, DrvYM2151WritePort, 40.0, 1006875, 75.0, 2013750, 60.0);
- GenericTilesInit();
- DrvDoReset();
- return 0;
- }
- static INT32 CninjablInit()
- {
- BurnSetRefreshRate(58.00);
- AllMem = __null;
- MemIndex();
- INT32 nLen = MemEnd - (UINT8 *)0;
- if ((AllMem = (UINT8 *)BurnMalloc(nLen)) == __null) return 1;
- memset(AllMem, 0, nLen);
- MemIndex();
- {
- if (BurnLoadRom(Drv68KROM + 0x00000, 0, 1)) return 1;
- if (BurnLoadRom(Drv68KROM + 0x80000, 1, 1)) return 1;
- if (BurnLoadRom(DrvZ80ROM + 0x00000, 2, 1)) return 1;
- UINT8 *tmp = (UINT8*)malloc(0x400000);
- if (BurnLoadRom(tmp + 0x00000, 3, 2)) return 1;
- if (BurnLoadRom(tmp + 0x00001, 4, 2)) return 1;
- BurnByteswap(tmp, 0x400000);
- for (INT32 i = 0; i < 0x200000; i++) tmp[i] ^= 0xff;
- memcpy (DrvGfxROM0 + 0x000000, tmp + 0x000000, 0x020000);
- memcpy (DrvGfxROM1 + 0x000000, tmp + 0x080000, 0x080000);
- memcpy (DrvGfxROM2 + 0x000000, tmp + 0x180000, 0x080000);
- memcpy (DrvGfxROM2 + 0x080000, tmp + 0x100000, 0x080000);
- memcpy (DrvGfxROM3 + 0x000000, tmp + 0x200000, 0x200000);
- if (tmp) {
- free (tmp);
- tmp = __null;
- }
- if (BurnLoadRom(DrvSndROM0 + 0x00000, 5, 1)) return 1;
- DrvBootlegCharDecode(DrvGfxROM0, 0x020000);
- deco16_sprite_decode(DrvGfxROM1, 0x080000);
- deco16_sprite_decode(DrvGfxROM2, 0x100000);
- deco16_sprite_decode(DrvGfxROM3, 0x200000);
- }
- deco16Init(0, 1, 1);
- deco16_set_graphics(DrvGfxROM0, 0x20000 * 2, DrvGfxROM1, 0x080000 * 2, DrvGfxROM2, 0x100000 * 2);
- deco16_set_global_offsets(0, 8);
- deco16_set_scroll_offs(3, 1, 2, 0);
- deco16_set_scroll_offs(2, 1, 2, 0);
- deco16_set_color_base(2, 0x200 + 0x000);
- deco16_set_color_base(3, 0x200 + 0x300);
- deco16_set_bank_callback(2, cninja_bank_callback);
- deco16_set_bank_callback(3, cninja_bank_callback);
- SekInit(0, 0x68000);
- SekOpen(0);
- SekMapMemory(Drv68KROM, 0x000000, 0x0bffff, ((1) | (4)));
- SekMapMemory(DrvSprRAM, 0x138000, 0x1387ff, ((1) | (2) | (4)));
- SekMapMemory(deco16_pf_ram[0], 0x144000, 0x144fff, ((1) | (2) | (4)));
- SekMapMemory(deco16_pf_ram[1], 0x146000, 0x146fff, ((1) | (2) | (4)));
- SekMapMemory(deco16_pf_rowscroll[0], 0x14c000, 0x14c7ff, ((1) | (2) | (4)));
- SekMapMemory(deco16_pf_rowscroll[1], 0x14e000, 0x14e7ff, ((1) | (2) | (4)));
- SekMapMemory(deco16_pf_ram[2], 0x154000, 0x154fff, ((1) | (2) | (4)));
- SekMapMemory(deco16_pf_ram[3], 0x156000, 0x156fff, ((1) | (2) | (4)));
- SekMapMemory(deco16_pf_rowscroll[2], 0x15c000, 0x15c7ff, ((1) | (2) | (4)));
- SekMapMemory(deco16_pf_rowscroll[3], 0x15e000, 0x15e7ff, ((1) | (2) | (4)));
- SekMapMemory(Drv68KRAM, 0x180000, 0x187fff, ((1) | (2) | (4)));
- SekMapMemory(DrvPalRAM, 0x19c000, 0x19dfff, ((1) | (2) | (4)));
- SekSetWriteWordHandler(0, cninja_main_write_word);
- SekSetWriteByteHandler(0, cninja_main_write_byte);
- SekSetReadWordHandler(0, cninja_main_read_word);
- SekSetReadByteHandler(0, cninja_main_read_byte);
- SekClose();
- has_z80 = 1;
- ZetInit(0);
- ZetOpen(0);
- ZetMapArea(0x0000, 0x7fff, 0, DrvZ80ROM);
- ZetMapArea(0x0000, 0x7fff, 2, DrvZ80ROM);
- ZetMapArea(0x8000, 0x87ff, 0, DrvZ80RAM);
- ZetMapArea(0x8000, 0x87ff, 1, DrvZ80RAM);
- ZetMapArea(0x8000, 0x87ff, 2, DrvZ80RAM);
- ZetSetWriteHandler(stoneage_sound_write);
- ZetSetReadHandler(stoneage_sound_read);
- ZetMemEnd();
- ZetClose();
- BurnYM2151Init(3580000, 45.0);
- YM2151SetIrqHandler(0, &DrvYM2151IrqHandler);
- MSM6295Init(0, 1006875 / 132, 75.0, 1);
- MSM6295Init(1, 2013750 / 132, 60.0, 1);
- GenericTilesInit();
- DrvDoReset();
- return 0;
- }
- static INT32 StoneageInit()
- {
- BurnSetRefreshRate(58.00);
- AllMem = __null;
- MemIndex();
- INT32 nLen = MemEnd - (UINT8 *)0;
- if ((AllMem = (UINT8 *)BurnMalloc(nLen)) == __null) return 1;
- memset(AllMem, 0, nLen);
- MemIndex();
- {
- if (BurnLoadRom(Drv68KROM + 0x00001, 0, 2)) return 1;
- if (BurnLoadRom(Drv68KROM + 0x00000, 1, 2)) return 1;
- if (BurnLoadRom(Drv68KROM + 0x40001, 2, 2)) return 1;
- if (BurnLoadRom(Drv68KROM + 0x40000, 3, 2)) return 1;
- if (BurnLoadRom(Drv68KROM + 0x80001, 4, 2)) return 1;
- if (BurnLoadRom(Drv68KROM + 0x80000, 5, 2)) return 1;
- if (BurnLoadRom(DrvZ80ROM + 0x00000, 6, 1)) return 1;
- if (BurnLoadRom(DrvGfxROM0 + 0x00001, 7, 2)) return 1;
- if (BurnLoadRom(DrvGfxROM0 + 0x00000, 8, 2)) return 1;
- if (BurnLoadRom(DrvGfxROM1 + 0x00000, 9, 1)) return 1;
- if (BurnLoadRom(DrvGfxROM2 + 0x00000, 10, 1)) return 1;
- if (BurnLoadRom(DrvGfxROM2 + 0x80000, 11, 1)) return 1;
- for (INT32 i = 0; i < 0x40000; i++) {
- INT32 n = DrvGfxROM2[i + 0x40000];
- DrvGfxROM2[i + 0x40000] = DrvGfxROM2[i + 0x80000];
- DrvGfxROM2[i + 0x80000] = n;
- }
- if (BurnLoadRom(DrvGfxROM3 + 0x000000, 12, 2)) return 1;
- if (BurnLoadRom(DrvGfxROM3 + 0x000001, 13, 2)) return 1;
- if (BurnLoadRom(DrvGfxROM3 + 0x100000, 14, 2)) return 1;
- if (BurnLoadRom(DrvGfxROM3 + 0x100001, 15, 2)) return 1;
- BurnByteswap(DrvGfxROM3, 0x200000);
- if (BurnLoadRom(DrvSndROM0 + 0x00000, 16, 1)) return 1;
- memset (DrvSndROM1, 0xff, 0x80000);
- deco16_tile_decode(DrvGfxROM0, DrvGfxROM0, 0x020000, 1);
- deco16_tile_decode(DrvGfxROM1, DrvGfxROM1, 0x080000, 0);
- deco16_tile_decode(DrvGfxROM2, DrvGfxROM2, 0x100000, 0);
- deco16_sprite_decode(DrvGfxROM3, 0x200000);
- }
- deco16Init(0, 1, 1);
- deco16_set_graphics(DrvGfxROM0, 0x20000 * 2, DrvGfxROM1, 0x080000 * 2, DrvGfxROM2, 0x100000 * 2);
- deco16_set_global_offsets(0, 8);
- deco16_set_scroll_offs(3, 1, 10, 0);
- deco16_set_scroll_offs(1, 1, 10, 0);
- deco16_set_scroll_offs(0, 1, -2, 0);
- deco16_set_color_base(2, 0x200 + 0x000);
- deco16_set_color_base(3, 0x200 + 0x300);
- deco16_set_bank_callback(2, cninja_bank_callback);
- deco16_set_bank_callback(3, cninja_bank_callback);
- SekInit(0, 0x68000);
- SekOpen(0);
- SekMapMemory(Drv68KROM, 0x000000, 0x0bffff, ((1) | (4)));
- SekMapMemory(deco16_pf_ram[0], 0x144000, 0x144fff, ((1) | (2) | (4)));
- SekMapMemory(deco16_pf_ram[1], 0x146000, 0x146fff, ((1) | (2) | (4)));
- SekMapMemory(deco16_pf_rowscroll[0], 0x14c000, 0x14c7ff, ((1) | (2) | (4)));
- SekMapMemory(deco16_pf_rowscroll[1], 0x14e000, 0x14e7ff, ((1) | (2) | (4)));
- SekMapMemory(deco16_pf_ram[2], 0x154000, 0x154fff, ((1) | (2) | (4)));
- SekMapMemory(deco16_pf_ram[3], 0x156000, 0x156fff, ((1) | (2) | (4)));
- SekMapMemory(deco16_pf_rowscroll[2], 0x15c000, 0x15c7ff, ((1) | (2) | (4)));
- SekMapMemory(deco16_pf_rowscroll[3], 0x15e000, 0x15e7ff, ((1) | (2) | (4)));
- SekMapMemory(Drv68KRAM, 0x184000, 0x187fff, ((1) | (2) | (4)));
- SekMapMemory(DrvPalRAM, 0x19c000, 0x19dfff, ((1) | (2) | (4)));
- SekMapMemory(DrvSprRAM, 0x1a4000, 0x1a47ff, ((1) | (2) | (4)));
- SekSetWriteWordHandler(0, cninja_main_write_word);
- SekSetWriteByteHandler(0, cninja_main_write_byte);
- SekSetReadWordHandler(0, cninja_main_read_word);
- SekSetReadByteHandler(0, cninja_main_read_byte);
- SekClose();
- has_z80 = 1;
- ZetInit(0);
- ZetOpen(0);
- ZetMapArea(0x0000, 0x7fff, 0, DrvZ80ROM);
- ZetMapArea(0x0000, 0x7fff, 2, DrvZ80ROM);
- ZetMapArea(0x8000, 0x87ff, 0, DrvZ80RAM);
- ZetMapArea(0x8000, 0x87ff, 1, DrvZ80RAM);
- ZetMapArea(0x8000, 0x87ff, 2, DrvZ80RAM);
- ZetSetWriteHandler(stoneage_sound_write);
- ZetSetReadHandler(stoneage_sound_read);
- ZetMemEnd();
- ZetClose();
- MSM6295Init(0, 1006875 / 132, 75.0, 1);
- MSM6295Init(1, 2013750 / 132, 60.0, 1);
- BurnYM2151Init(3580000, 45.0);
- YM2151SetIrqHandler(0, &DrvYM2151IrqHandler);
- GenericTilesInit();
- DrvDoReset();
- return 0;
- }
- static INT32 Robocop2Init()
- {
- BurnSetRefreshRate(58.00);
- AllMem = __null;
- MemIndex();
- INT32 nLen = MemEnd - (UINT8 *)0;
- if ((AllMem = (UINT8 *)BurnMalloc(nLen)) == __null) return 1;
- memset(AllMem, 0, nLen);
- MemIndex();
- {
- if (BurnLoadRom(Drv68KROM + 0x00001, 0, 2)) return 1;
- if (BurnLoadRom(Drv68KROM + 0x00000, 1, 2)) return 1;
- if (BurnLoadRom(Drv68KROM + 0x40001, 2, 2)) return 1;
- if (BurnLoadRom(Drv68KROM + 0x40000, 3, 2)) return 1;
- if (BurnLoadRom(Drv68KROM + 0x80001, 4, 2)) return 1;
- if (BurnLoadRom(Drv68KROM + 0x80000, 5, 2)) return 1;
- if (BurnLoadRom(Drv68KROM + 0xc0001, 6, 2)) return 1;
- if (BurnLoadRom(Drv68KROM + 0xc0000, 7, 2)) return 1;
- if (BurnLoadRom(DrvHucROM + 0x00000, 8, 1)) return 1;
- if (BurnLoadRom(DrvGfxROM0 + 0x00001, 9, 2)) return 1;
- if (BurnLoadRom(DrvGfxROM0 + 0x00000, 10, 2)) return 1;
- if (BurnLoadRom(DrvGfxROM1 + 0x00000, 11, 1)) return 1;
- if (BurnLoadRom(DrvGfxROM1 + 0x80000, 12, 1)) return 1;
- for (INT32 i = 0; i < 0x40000; i++) {
- INT32 n = DrvGfxROM1[i + 0x40000];
- DrvGfxROM1[i + 0x40000] = DrvGfxROM1[i + 0x80000];
- DrvGfxROM1[i + 0x80000] = n;
- }
- if (BurnLoadRom(DrvGfxROM3 + 0x000000, 13, 1)) return 1;
- memcpy (DrvGfxROM2 + 0x000000, DrvGfxROM3 + 0x000000, 0x040000);
- memcpy (DrvGfxROM2 + 0x0c0000, DrvGfxROM3 + 0x040000, 0x040000);
- if (BurnLoadRom(DrvGfxROM3 + 0x000000, 14, 1)) return 1;
- memcpy (DrvGfxROM2 + 0x040000, DrvGfxROM3 + 0x000000, 0x040000);
- memcpy (DrvGfxROM2 + 0x100000, DrvGfxROM3 + 0x040000, 0x040000);
- if (BurnLoadRom(DrvGfxROM3 + 0x000000, 15, 1)) return 1;
- memcpy (DrvGfxROM2 + 0x080000, DrvGfxROM3 + 0x000000, 0x040000);
- memcpy (DrvGfxROM2 + 0x140000, DrvGfxROM3 + 0x040000, 0x040000);
- if (BurnLoadRom(DrvGfxROM3 + 0x000000, 16, 2)) return 1;
- if (BurnLoadRom(DrvGfxROM3 + 0x000001, 17, 2)) return 1;
- if (BurnLoadRom(DrvGfxROM3 + 0x100000, 18, 2)) return 1;
- if (BurnLoadRom(DrvGfxROM3 + 0x100001, 19, 2)) return 1;
- if (BurnLoadRom(DrvGfxROM3 + 0x200000, 20, 2)) return 1;
- if (BurnLoadRom(DrvGfxROM3 + 0x200001, 21, 2)) return 1;
- BurnByteswap(DrvGfxROM3, 0x300000);
- if (BurnLoadRom(DrvSndROM0 + 0x00000, 22, 1)) return 1;
- if (BurnLoadRom(DrvSndROM1 + 0x40000, 23, 1)) return 1;
- deco16_tile_decode(DrvGfxROM0, DrvGfxROM0, 0x020000, 1);
- deco16_tile_decode(DrvGfxROM1, DrvGfxROM1, 0x100000, 0);
- deco16_tile_decode(DrvGfxROM2, DrvGfxROM4, 0x180000, 2);
- deco16_tile_decode(DrvGfxROM2, DrvGfxROM2, 0x180000, 0);
- deco16_sprite_decode(DrvGfxROM3, 0x300000);
- }
- deco16Init(0, 0, 1);
- deco16_set_graphics(DrvGfxROM0, 0x20000 * 2, DrvGfxROM1, 0x100000 * 2, DrvGfxROM2, 0x180000 * 2);
- deco16_set_global_offsets(0, 8);
- deco16_set_color_base(2, 0x200 + 0x000);
- deco16_set_color_base(3, 0x200 + 0x300);
- deco16_set_bank_callback(1, robocop2_bank_callback);
- deco16_set_bank_callback(2, robocop2_bank_callback);
- deco16_set_bank_callback(3, robocop2_bank_callback);
- SekInit(0, 0x68000);
- SekOpen(0);
- SekMapMemory(Drv68KROM, 0x000000, 0x0fffff, ((1) | (4)));
- SekMapMemory(deco16_pf_ram[0], 0x144000, 0x144fff, ((1) | (2) | (4)));
- SekMapMemory(deco16_pf_ram[1], 0x146000, 0x146fff, ((1) | (2) | (4)));
- SekMapMemory(deco16_pf_rowscroll[0], 0x14c000, 0x14c7ff, ((1) | (2) | (4)));
- SekMapMemory(deco16_pf_rowscroll[1], 0x14e000, 0x14e7ff, ((1) | (2) | (4)));
- SekMapMemory(deco16_pf_ram[2], 0x154000, 0x154fff, ((1) | (2) | (4)));
- SekMapMemory(deco16_pf_ram[3], 0x156000, 0x156fff, ((1) | (2) | (4)));
- SekMapMemory(deco16_pf_rowscroll[2], 0x15c000, 0x15c7ff, ((1) | (2) | (4)));
- SekMapMemory(deco16_pf_rowscroll[3], 0x15e000, 0x15e7ff, ((1) | (2) | (4)));
- SekMapMemory(DrvSprRAM, 0x180000, 0x1807ff, ((1) | (2) | (4)));
- SekMapMemory(DrvPalRAM, 0x1a8000, 0x1a9fff, ((1) | (2) | (4)));
- SekMapMemory(Drv68KRAM, 0x1b8000, 0x1bbfff, ((1) | (2) | (4)));
- SekSetWriteWordHandler(0, robocop2_main_write_word);
- SekSetWriteByteHandler(0, robocop2_main_write_byte);
- SekSetReadWordHandler(0, robocop2_main_read_word);
- SekSetReadByteHandler(0, robocop2_main_read_byte);
- SekClose();
- deco16SoundInit(DrvHucROM, DrvHucRAM, 8055000, 1, DrvYM2151WritePort, 40.0, 1006875, 75.0, 2013750, 60.0);
- GenericTilesInit();
- DrvDoReset();
- return 0;
- }
- static INT32 DrvExit()
- {
- GenericTilesExit();
- deco16Exit();
- SekExit();
- if (has_z80) {
- ZetExit();
- has_z80 = 0;
- MSM6295Exit(0);
- MSM6295Exit(1);
- BurnYM2151Exit();
- } else {
- deco16SoundExit();
- }
- _BurnFree(AllMem); AllMem = __null;;
- MSM6295ROM = __null;
- return 0;
- }
- static void cninja_draw_sprites()
- {
- UINT16 *buffered_spriteram = (UINT16*)DrvSprBuf;
- for (INT32 offs = 0x400 - 4; offs >=0 ; offs -= 4)
- {
- INT32 x, y, sprite, color, multi, flipx, flipy, inc, flash, mult, pri = 0;
- sprite = buffered_spriteram[offs + 1];
- if (!sprite)
- continue;
- x = buffered_spriteram[offs + 2];
- switch (x & 0xc000)
- {
- case 0x0000: pri = 0; break;
- case 0x4000: pri = 0xf0; break;
- case 0x8000: pri = 0xf0 | 0xcc; break;
- case 0xc000: pri = 0xf0 | 0xcc; break;
- }
- y = buffered_spriteram[offs];
- flash = y & 0x1000;
- if (flash && (nCurrentFrame & 1))
- continue;
- color = (x >> 9) & 0x1f;
- flipx = y & 0x2000;
- flipy = y & 0x4000;
- multi = (1 << ((y & 0x0600) >> 9)) - 1;
- x = x & 0x01ff;
- y = y & 0x01ff;
- if (x >= nScreenWidth) x -= 512;
- if (y >= 256) y -= 512;
- x = 240 - x;
- y = 240 - y;
- sprite &= ~multi;
- if (flipy)
- inc = -1;
- else
- {
- sprite += multi;
- inc = 1;
- }
- if (*flipscreen)
- {
- y = 240 - y;
- x = (nScreenWidth - 16) - x;
- if (flipx) flipx = 0; else flipx = 1;
- if (flipy) flipy = 0; else flipy = 1;
- mult = 16;
- }
- else
- mult = -16;
- while (multi >= 0)
- {
- deco16_draw_prio_sprite(pTransDraw, DrvGfxROM3, sprite - multi * inc, (color << 4) + 0x300, x, y + mult * multi, flipx, flipy, pri);
- multi--;
- }
- }
- }
- static void cninjabl_draw_sprites()
- {
- UINT16 *buffered_spriteram = (UINT16*)DrvSprBuf;
- INT32 offs;
- INT32 endoffs;
- endoffs = 0x400 - 4;
- for (offs = 0; offs < 0x400 - 4 ; offs += 4)
- {
- INT32 y = buffered_spriteram[offs + 1];
- if (y == 0x180)
- {
- endoffs = offs;
- offs = 0x400 - 4;
- }
- }
- for (offs = endoffs; offs >=0 ; offs -= 4)
- {
- INT32 x, y, sprite, colour, multi, fx, fy, inc, flash, mult, pri = 0;
- sprite = buffered_spriteram[offs + 0];
- y = buffered_spriteram[offs + 1];
- if (!sprite)
- continue;
- x = buffered_spriteram[offs + 2];
- switch (x & 0xc000)
- {
- case 0x0000: pri = 0; break;
- case 0x4000: pri = 0xf0; break;
- case 0x8000: pri = 0xf0 | 0xcc; break;
- case 0xc000: pri = 0xf0 | 0xcc; break;
- }
- flash = y & 0x1000;
- if (flash && (nCurrentFrame & 1))
- continue;
- colour = (x >> 9) & 0x1f;
- fx = y & 0x2000;
- fy = y & 0x4000;
- multi = (1 << ((y & 0x0600) >> 9)) - 1;
- y -= multi * 16;
- y += 4;
- x = x & 0x01ff;
- y = y & 0x01ff;
- if (x >= 256) x -= 512;
- if (y >= 256) y -= 512;
- x = 240 - x;
- y = 240 - y;
- if (fy)
- inc = -1;
- else
- {
- sprite += multi;
- inc = 1;
- }
- if (*flipscreen)
- {
- y = 240 - y;
- x = 240 - x;
- if (fx) fx = 0; else fx = 1;
- if (fy) fy = 0; else fy = 1;
- mult = 16;
- }
- else
- mult = -16;
- while (multi >= 0)
- {
- deco16_draw_prio_sprite(pTransDraw, DrvGfxROM3, sprite - multi * inc, (colour << 4) + 0x300, x, y + mult * multi, fx, fy, pri);
- multi--;
- }
- }
- }
- static void mutantf_draw_sprites(UINT8 *ram, UINT8 *gfx, INT32 colbank, INT32 gfxbank)
- {
- UINT16 *spriteptr = (UINT16*)ram;
- INT32 offs, end, inc;
- if (gfxbank == 4)
- {
- offs = 0;
- end = 0x400;
- inc = 4;
- }
- else
- {
- offs = 0x3fc;
- end = -4;
- inc = -4;
- }
- while (offs != end)
- {
- INT32 x, y, sprite, colour, fx, fy, w, h, sx, sy, x_mult, y_mult;
- INT32 alpha = 0xff;
- sprite = spriteptr[offs + 3];
- if (!sprite)
- {
- offs += inc;
- continue;
- }
- sx = spriteptr[offs + 1];
- h = (spriteptr[offs + 2] & 0xf000) >> 12;
- w = (spriteptr[offs + 2] & 0x0f00) >> 8;
- sy = spriteptr[offs];
- if ((sy & 0x2000) && (nCurrentFrame & 1))
- {
- offs += inc;
- continue;
- }
- colour = (spriteptr[offs + 2] >> 0) & 0x1f;
- if (gfxbank == 4)
- {
- alpha = 0x80;
- colour &= 0xf;
- }
- fx = (spriteptr[offs + 0] & 0x4000);
- fy = (spriteptr[offs + 0] & 0x8000);
- if (*flipscreen)
- {
- if (fx) fx = 0; else fx = 1;
- if (fy) fy = 0; else fy = 1;
- sx = sx & 0x01ff;
- sy = sy & 0x01ff;
- if (sx > 0x180) sx = -(0x200 - sx);
- if (sy > 0x180) sy = -(0x200 - sy);
- if (fx) { x_mult = -16; sx += 16 * w; } else { x_mult = 16; sx -= 16; }
- if (fy) { y_mult = -16; sy += 16 * h; } else { y_mult = 16; sy -= 16; }
- }
- else
- {
- sx = sx & 0x01ff;
- sy = sy & 0x01ff;
- if (sx & 0x100) sx = -(0x100 - (sx & 0xff));
- if (sy & 0x100) sy = -(0x100 - (sy & 0xff));
- sx = 304 - sx;
- sy = 240 - sy;
- if (sx >= 432) sx -= 512;
- if (sy >= 384) sy -= 512;
- if (fx) { x_mult = -16; sx += 16; } else { x_mult = 16; sx -= 16*w; }
- if (fy) { y_mult = -16; sy += 16; } else { y_mult = 16; sy -= 16*h; }
- }
- for (x = 0; x < w; x++)
- {
- for (y = 0; y < h; y++)
- {
- deco16_draw_prio_sprite(pTransDraw, gfx, sprite + y + h * x, (colour << 4) + colbank, sx + x_mult * (w-x), sy + y_mult * (h-y), fx, fy, 0);
- }
- }
- offs += inc;
- }
- }
- static INT32 CninjaDraw()
- {
- deco16_palette_recalculate(DrvPalette, DrvPalRAM);
- DrvRecalc = 0;
- deco16_pf12_update();
- deco16_pf34_update();
- for (INT32 i = 0; i < nScreenWidth * nScreenHeight; i++) {
- pTransDraw[i] = 0x200;
- }
- deco16_clear_prio_map();
- if (nSpriteEnable & 1) deco16_draw_layer(3, pTransDraw, ((0x01) & 0xff) | 0x010000);
- if (nSpriteEnable & 2) deco16_draw_layer(2, pTransDraw, ((0x02) & 0xff));
- if (nSpriteEnable & 4) deco16_draw_layer(1, pTransDraw, ((0x02) & 0xff) | 0x000000);
- if (nSpriteEnable & 8) deco16_draw_layer(1, pTransDraw, ((0x04) & 0xff) | 0x000100);
- cninja_draw_sprites();
- if (nSpriteEnable & 16) deco16_draw_layer(0, pTransDraw, 0);
- BurnTransferCopy(DrvPalette);
- return 0;
- }
- static INT32 CninjablDraw()
- {
- deco16_palette_recalculate(DrvPalette, DrvPalRAM);
- DrvRecalc = 0;
- deco16_pf12_update();
- deco16_pf34_update();
- for (INT32 i = 0; i < nScreenWidth * nScreenHeight; i++) {
- pTransDraw[i] = 0x200;
- }
- deco16_clear_prio_map();
- if (nSpriteEnable & 1) deco16_draw_layer(3, pTransDraw, ((0x01) & 0xff) | 0x010000);
- if (nSpriteEnable & 2) deco16_draw_layer(2, pTransDraw, ((0x02) & 0xff));
- if (nSpriteEnable & 4) deco16_draw_layer(1, pTransDraw, ((0x02) & 0xff) | 0x000000);
- if (nSpriteEnable & 8) deco16_draw_layer(1, pTransDraw, ((0x04) & 0xff) | 0x000100);
- cninjabl_draw_sprites();
- if (nSpriteEnable & 16) deco16_draw_layer(0, pTransDraw, 0);
- BurnTransferCopy(DrvPalette);
- return 0;
- }
- static INT32 EdrandyDraw()
- {
- deco16_palette_recalculate(DrvPalette, DrvPalRAM);
- DrvRecalc = 0;
- deco16_pf12_update();
- deco16_pf34_update();
- for (INT32 i = 0; i < nScreenWidth * nScreenHeight; i++) {
- pTransDraw[i] = 0;
- }
- deco16_clear_prio_map();
- if (nSpriteEnable & 1) deco16_draw_layer(3, pTransDraw, ((0x01) & 0xff) | 0x010000);
- if (nSpriteEnable & 2) deco16_draw_layer(2, pTransDraw, ((0x02) & 0xff));
- if (nSpriteEnable & 4) deco16_draw_layer(1, pTransDraw, ((0x04) & 0xff));
- cninja_draw_sprites();
- if (nSpriteEnable & 8) deco16_draw_layer(0, pTransDraw, 0);
- BurnTransferCopy(DrvPalette);
- return 0;
- }
- static INT32 Robocop2Draw()
- {
- deco16_palette_recalculate(DrvPalette, DrvPalRAM);
- DrvRecalc = 0;
- deco16_pf12_update();
- deco16_pf34_update();
- for (INT32 i = 0; i < nScreenWidth * nScreenHeight; i++) {
- pTransDraw[i] = 0x200;
- }
- deco16_clear_prio_map();
- INT32 layer_8bpp = 0;
- if (deco16_priority & 4)
- {
- deco16_set_color_mask(2, 0);
- deco16_set_color_mask(3, 0);
- deco16_set_graphics(2, DrvGfxROM4, 0x100000, 16);
- layer_8bpp = 0x100000;
- }
- else
- {
- deco16_set_color_mask(2, 0xf);
- deco16_set_color_mask(3, 0xf);
- deco16_set_graphics(2, DrvGfxROM2, 0x300000, 16);
- if (nSpriteEnable & 1) deco16_draw_layer(3, pTransDraw, 0x010000 | ((0x01) & 0xff));
- }
- if (deco16_priority & 8) {
- if (nSpriteEnable & 2) deco16_draw_layer(1, pTransDraw, ((0x02) & 0xff));
- if (nSpriteEnable & 4) deco16_draw_layer(2, pTransDraw, ((0x04) & 0xff) | layer_8bpp);
- } else {
- if (nSpriteEnable & 2) deco16_draw_layer(2, pTransDraw, ((0x02) & 0xff) | layer_8bpp);
- if (nSpriteEnable & 4) deco16_draw_layer(1, pTransDraw, ((0x04) & 0xff));
- }
- cninja_draw_sprites();
- if (nSpriteEnable & 8) deco16_draw_layer(0, pTransDraw, 0);
- BurnTransferCopy(DrvPalette);
- return 0;
- }
- static INT32 MutantfDraw()
- {
- deco16_palette_recalculate(DrvPalette, DrvPalRAM);
- DrvRecalc = 0;
- deco16_pf12_update();
- deco16_pf34_update();
- for (INT32 i = 0; i < nScreenWidth * nScreenHeight; i++) {
- pTransDraw[i] = 0x400;
- }
- if (nSpriteEnable & 1) deco16_draw_layer(3, pTransDraw, 0x010000);
- if (nSpriteEnable & 2) deco16_draw_layer(1, pTransDraw, 0);
- if (nSpriteEnable & 4) deco16_draw_layer(2, pTransDraw, 0);
- if (deco16_priority & 1)
- {
- deco16_clear_prio_map();
- mutantf_draw_sprites(DrvSprBuf, DrvGfxROM3, 0x100, 3);
- deco16_clear_prio_map();
- mutantf_draw_sprites(DrvSprBuf1, DrvGfxROM4, 0x700, 4);
- }
- else
- {
- deco16_clear_prio_map();
- mutantf_draw_sprites(DrvSprBuf1, DrvGfxROM4, 0x700, 4);
- deco16_clear_prio_map();
- mutantf_draw_sprites(DrvSprBuf, DrvGfxROM3, 0x100, 3);
- }
- if (nSpriteEnable & 8) deco16_draw_layer(0, pTransDraw, 0);
- BurnTransferCopy(DrvPalette);
- return 0;
- }
- static INT32 CninjaFrame()
- {
- if (DrvReset) {
- DrvDoReset();
- }
- {
- deco16_prot_inputs = DrvInputs;
- memset (DrvInputs, 0xff, 2 * sizeof(INT16));
- for (INT32 i = 0; i < 16; i++) {
- DrvInputs[0] ^= (DrvJoy1[i] & 1) << i;
- DrvInputs[1] ^= (DrvJoy2[i] & 1) << i;
- }
- DrvInputs[2] = (DrvDips[1] << 8) | (DrvDips[0] << 0);
- }
- INT32 nInterleave = 256;
- INT32 nSoundBufferPos = 0;
- INT32 nCyclesTotal[2] = { 12000000 / 58, 8055000 / 58 };
- INT32 nCyclesDone[2] = { 0, 0 };
- h6280NewFrame();
- SekOpen(0);
- h6280Open(0);
- deco16_vblank = 0;
- for (INT32 i = 0; i < nInterleave; i++)
- {
- nCyclesDone[0] += SekRun(nCyclesTotal[0] / nInterleave);
- nCyclesDone[1] += h6280Run(nCyclesTotal[1] / nInterleave);
- if (irq_timer == i) {
- SekSetIRQLine((irq_mask & 0x10) ? 3 : 4, (0x1000));
- irq_timer = -1;
- }
- if (i == 248) deco16_vblank = 0x08;
- INT32 nSegmentLength = nBurnSoundLen / nInterleave;
- INT16* pSoundBuf = SoundBuffer + (nSoundBufferPos << 1);
- deco16SoundUpdate(pSoundBuf, nSegmentLength);
- nSoundBufferPos += nSegmentLength;
- }
- SekSetIRQLine(5, (0x2000));
- BurnTimerEndFrame(nCyclesTotal[1]);
- if (pBurnSoundOut) {
- BurnYM2203Update(pBurnSoundOut, nBurnSoundLen);
- INT32 nSegmentLength = nBurnSoundLen - nSoundBufferPos;
- INT16* pSoundBuf = SoundBuffer + (nSoundBufferPos << 1);
- if (nSegmentLength) {
- deco16SoundUpdate(pSoundBuf, nSegmentLength);
- }
- for (INT32 i = 0; i < nBurnSoundLen; i++) {
- pBurnSoundOut[(i << 1) + 0] += SoundBuffer[(i << 1) + 0];
- pBurnSoundOut[(i << 1) + 1] += SoundBuffer[(i << 1) + 1];
- }
- }
- h6280Close();
- SekClose();
- if (pBurnDraw) {
- BurnDrvRedraw();
- }
- return 0;
- }
- static INT32 MutantfFrame()
- {
- if (DrvReset) {
- DrvDoReset();
- }
- {
- deco16_prot_inputs = DrvInputs;
- memset (DrvInputs, 0xff, 2 * sizeof(INT16));
- for (INT32 i = 0; i < 16; i++) {
- DrvInputs[0] ^= (DrvJoy1[i] & 1) << i;
- DrvInputs[1] ^= (DrvJoy2[i] & 1) << i;
- }
- DrvInputs[2] = (DrvDips[1] << 8) | (DrvDips[0] << 0);
- }
- INT32 nInterleave = 256;
- INT32 nSoundBufferPos = 0;
- INT32 nCyclesTotal[2] = { 14000000 / 58, 8055000 / 58 };
- INT32 nCyclesDone[2] = { 0, 0 };
- h6280NewFrame();
- SekOpen(0);
- h6280Open(0);
- deco16_vblank = 0;
- for (INT32 i = 0; i < nInterleave; i++)
- {
- nCyclesDone[0] += SekRun(nCyclesTotal[0] / nInterleave);
- nCyclesDone[1] += h6280Run(nCyclesTotal[1] / nInterleave);
- if (i == 240) deco16_vblank = 0x08;
- if (pBurnSoundOut) {
- INT32 nSegmentLength = nBurnSoundLen / nInterleave;
- INT16* pSoundBuf = pBurnSoundOut + (nSoundBufferPos << 1);
- deco16SoundUpdate(pSoundBuf, nSegmentLength);
- nSoundBufferPos += nSegmentLength;
- }
- }
- SekSetIRQLine(6, (0x2000));
- if (pBurnSoundOut) {
- INT32 nSegmentLength = nBurnSoundLen - nSoundBufferPos;
- INT16* pSoundBuf = pBurnSoundOut + (nSoundBufferPos << 1);
- if (nSegmentLength) {
- deco16SoundUpdate(pSoundBuf, nSegmentLength);
- }
- }
- h6280Close();
- SekClose();
- if (pBurnDraw) {
- MutantfDraw();
- }
- return 0;
- }
- static INT32 StoneageFrame()
- {
- if (DrvReset) {
- DrvDoReset();
- }
- {
- deco16_prot_inputs = DrvInputs;
- memset (DrvInputs, 0xff, 2 * sizeof(INT16));
- for (INT32 i = 0; i < 16; i++) {
- DrvInputs[0] ^= (DrvJoy1[i] & 1) << i;
- DrvInputs[1] ^= (DrvJoy2[i] & 1) << i;
- }
- DrvInputs[2] = (DrvDips[1] << 8) | (DrvDips[0] << 0);
- }
- INT32 nInterleave = 256;
- INT32 nSoundBufferPos = 0;
- INT32 nCyclesTotal[2] = { 12000000 / 58, 3579545 / 58 };
- INT32 nCyclesDone[2] = { 0, 0 };
- SekOpen(0);
- ZetOpen(0);
- deco16_vblank = 0;
- for (INT32 i = 0; i < nInterleave; i++)
- {
- nCyclesDone[0] += SekRun(nCyclesTotal[0] / nInterleave);
- nCyclesDone[1] += ZetRun(nCyclesTotal[1] / nInterleave);
- if (irq_timer == i) {
- SekSetIRQLine((irq_mask & 0x10) ? 3 : 4, (0x1000));
- irq_timer = -1;
- }
- if (i == 248) deco16_vblank = 0x08;
- if (pBurnSoundOut) {
- INT32 nSegmentLength = nBurnSoundLen / nInterleave;
- INT16* pSoundBuf = pBurnSoundOut + (nSoundBufferPos << 1);
- BurnYM2151Render(pSoundBuf, nSegmentLength);
- MSM6295Render(0, pSoundBuf, nSegmentLength);
- MSM6295Render(1, pSoundBuf, nSegmentLength);
- nSoundBufferPos += nSegmentLength;
- }
- }
- SekSetIRQLine(5, (0x2000));
- if (pBurnSoundOut) {
- INT32 nSegmentLength = nBurnSoundLen - nSoundBufferPos;
- INT16* pSoundBuf = pBurnSoundOut + (nSoundBufferPos << 1);
- if (nSegmentLength) {
- BurnYM2151Render(pSoundBuf, nSegmentLength);
- MSM6295Render(0, pSoundBuf, nSegmentLength);
- MSM6295Render(1, pSoundBuf, nSegmentLength);
- }
- }
- ZetClose();
- SekClose();
- if (pBurnDraw) {
- BurnDrvRedraw();
- }
- return 0;
- }
- static INT32 DrvScan(INT32 nAction, INT32 *pnMin)
- {
- struct BurnArea ba;
- if (pnMin != __null) {
- *pnMin = 0x029722;
- }
- if (nAction & (32)) {
- memset(&ba, 0, sizeof(ba));
- ba.Data = AllRam;
- ba.nLen = RamEnd-AllRam;
- ba.szName = "All Ram";
- BurnAcb(&ba);
- }
- if (nAction & (64)) {
- SekScan(nAction);
- deco16SoundScan(nAction, pnMin);
- deco16Scan();
- ScanVar(&scanline, sizeof(scanline), "scanline");
- ScanVar(&irq_mask, sizeof(irq_mask), "irq_mask");
- ScanVar(&irq_timer, sizeof(irq_timer), "irq_timer");
- ScanVar(&DrvOkiBank, sizeof(DrvOkiBank), "DrvOkiBank");
- DrvYM2151WritePort(0, DrvOkiBank);
- }
- return 0;
- }
- static INT32 StoneageScan(INT32 nAction, INT32 *pnMin)
- {
- struct BurnArea ba;
- if (pnMin != __null) {
- *pnMin = 0x029722;
- }
- if (nAction & (32)) {
- memset(&ba, 0, sizeof(ba));
- ba.Data = AllRam;
- ba.nLen = RamEnd-AllRam;
- ba.szName = "All Ram";
- BurnAcb(&ba);
- }
- if (nAction & (64)) {
- SekScan(nAction);
- ZetScan(nAction);
- BurnYM2151Scan(nAction);
- MSM6295Scan(0, nAction);
- MSM6295Scan(1, nAction);
- deco16Scan();
- ScanVar(&scanline, sizeof(scanline), "scanline");
- ScanVar(&irq_mask, sizeof(irq_mask), "irq_mask");
- ScanVar(&irq_timer, sizeof(irq_timer), "irq_timer");
- ScanVar(&DrvOkiBank, sizeof(DrvOkiBank), "DrvOkiBank");
- }
- return 0;
- }
- static struct BurnRomInfo cninjaRomDesc[] = {
- { "gn-02-3.1k", 0x020000, 0x39aea12a, 1 | (1 << 20) | (1 << 24) },
- { "gn-05-2.3k", 0x020000, 0x0f4360ef, 1 | (1 << 20) | (1 << 24) },
- { "gn-01-2.1j", 0x020000, 0xf740ef7e, 1 | (1 << 20) | (1 << 24) },
- { "gn-04-2.3j", 0x020000, 0xc98fcb62, 1 | (1 << 20) | (1 << 24) },
- { "gn-00.rom", 0x020000, 0x0b110b16, 1 | (1 << 20) | (1 << 24) },
- { "gn-03.rom", 0x020000, 0x1e28e697, 1 | (1 << 20) | (1 << 24) },
- { "gl-07.rom", 0x010000, 0xca8bef96, 2 | (1 << 20) | (1 << 24) },
- { "gl-08.rom", 0x010000, 0x33a2b400, 3 | (1 << 21) },
- { "gl-09.rom", 0x010000, 0x5a2d4752, 3 | (1 << 21) },
- { "mag-02.rom", 0x080000, 0xde89c69a, 4 | (1 << 21) },
- { "mag-00.rom", 0x080000, 0xa8f05d33, 5 | (1 << 21) },
- { "mag-01.rom", 0x080000, 0x5b399eed, 5 | (1 << 21) },
- { "mag-03.rom", 0x080000, 0x2220eb9f, 6 | (1 << 21) },
- { "mag-05.rom", 0x080000, 0x56a53254, 6 | (1 << 21) },
- { "mag-04.rom", 0x080000, 0x144b94cc, 6 | (1 << 21) },
- { "mag-06.rom", 0x080000, 0x82d44749, 6 | (1 << 21) },
- { "gl-06.rom", 0x020000, 0xd92e519d, 7 | (1 << 22) },
- { "mag-07.rom", 0x080000, 0x08eb5264, 8 | (1 << 22) },
- { "mb7122h.7v", 0x000400, 0xa1267336, 0 | (1 << 27) },
- };
- static struct BurnRomInfo* cninjaPickRom(UINT32 i) { if (i >= sizeof(cninjaRomDesc) / sizeof(cninjaRomDesc[0])) { return __null; } return cninjaRomDesc + i; }
- static INT32 cninjaRomInfo(struct BurnRomInfo* pri, UINT32 i) { struct BurnRomInfo* por = cninjaPickRom(i); if (por == __null) { return 1; } if (pri) { pri->nLen = por->nLen; pri->nCrc = por->nCrc; pri->nType = por->nType; } return 0; } static INT32 cninjaRomName(char** pszName, UINT32 i, INT32 nAka) { struct BurnRomInfo *por = cninjaPickRom(i); if (por == __null) { return 1; } if (nAka) { return 1; } *pszName = por->szName; return 0; }
- struct BurnDriver BurnDrvCninja = {
- "cninja", __null, __null, __null, "1991",
- "Caveman Ninja (World ver 4)\0", __null, "Data East Corporation", "DECO IC16",
- __null, __null, __null, __null,
- (1 << 0), 2, (0x13000000), (1 << 11), 0,
- __null, cninjaRomInfo, cninjaRomName, __null, __null, DrvInputInfo, CninjaDIPInfo,
- CninjaInit, DrvExit, CninjaFrame, CninjaDraw, DrvScan, &DrvRecalc, 0x800,
- 256, 240, 4, 3
- };
- static struct BurnRomInfo cninjaaRomDesc[] = {
- { "1.1k", 0x020000, 0xa6c40959, 1 | (1 << 20) | (1 << 24) },
- { "4.3k", 0x020000, 0x2e01d1fd, 1 | (1 << 20) | (1 << 24) },
- { "2.2j", 0x020000, 0x18f0527c, 1 | (1 << 20) | (1 << 24) },
- { "5.3j", 0x020000, 0xea4b6d53, 1 | (1 << 20) | (1 << 24) },
- { "gn-00.rom", 0x020000, 0x0b110b16, 1 | (1 << 20) | (1 << 24) },
- { "gn-03.rom", 0x020000, 0x1e28e697, 1 | (1 << 20) | (1 << 24) },
- { "gl-07.rom", 0x010000, 0xca8bef96, 2 | (1 << 20) | (1 << 24) },
- { "gl-08.rom", 0x010000, 0x33a2b400, 3 | (1 << 21) },
- { "gl-09.rom", 0x010000, 0x5a2d4752, 3 | (1 << 21) },
- { "mag-02.rom", 0x080000, 0xde89c69a, 4 | (1 << 21) },
- { "mag-00.rom", 0x080000, 0xa8f05d33, 5 | (1 << 21) },
- { "mag-01.rom", 0x080000, 0x5b399eed, 5 | (1 << 21) },
- { "mag-03.rom", 0x080000, 0x2220eb9f, 6 | (1 << 21) },
- { "mag-05.rom", 0x080000, 0x56a53254, 6 | (1 << 21) },
- { "mag-04.rom", 0x080000, 0x144b94cc, 6 | (1 << 21) },
- { "mag-06.rom", 0x080000, 0x82d44749, 6 | (1 << 21) },
- { "gl-06.rom", 0x020000, 0xd92e519d, 7 | (1 << 22) },
- { "mag-07.rom", 0x080000, 0x08eb5264, 8 | (1 << 22) },
- { "mb7122h.7v", 0x000400, 0xa1267336, 0 | (1 << 27) },
- };
- static struct BurnRomInfo* cninjaaPickRom(UINT32 i) { if (i >= sizeof(cninjaaRomDesc) / sizeof(cninjaaRomDesc[0])) { return __null; } return cninjaaRomDesc + i; }
- static INT32 cninjaaRomInfo(struct BurnRomInfo* pri, UINT32 i) { struct BurnRomInfo* por = cninjaaPickRom(i); if (por == __null) { return 1; } if (pri) { pri->nLen = por->nLen; pri->nCrc = por->nCrc; pri->nType = por->nType; } return 0; } static INT32 cninjaaRomName(char** pszName, UINT32 i, INT32 nAka) { struct BurnRomInfo *por = cninjaaPickRom(i); if (por == __null) { return 1; } if (nAka) { return 1; } *pszName = por->szName; return 0; }
- struct BurnDriver BurnDrvCninjaa = {
- "cninjaa", "cninja", __null, __null, "1991",
- "Caveman Ninja (alternate)\0", __null, "Data East Corporation", "DECO IC16",
- __null, __null, __null, __null,
- (1 << 0) | (1 << 4), 2, (0x13000000), (1 << 11), 0,
- __null, cninjaaRomInfo, cninjaaRomName, __null, __null, DrvInputInfo, CninjaDIPInfo,
- CninjaInit, DrvExit, CninjaFrame, CninjaDraw, DrvScan, &DrvRecalc, 0x800,
- 256, 240, 4, 3
- };
- static struct BurnRomInfo cninja1RomDesc[] = {
- { "gn-02.1k", 0x020000, 0xccc59524, 1 | (1 << 20) | (1 << 24) },
- { "gn-05.3k", 0x020000, 0xa002cbe4, 1 | (1 << 20) | (1 << 24) },
- { "gn-01.1j", 0x020000, 0x18f0527c, 1 | (1 << 20) | (1 << 24) },
- { "gn-04.3j", 0x020000, 0xea4b6d53, 1 | (1 << 20) | (1 << 24) },
- { "gn-00.rom", 0x020000, 0x0b110b16, 1 | (1 << 20) | (1 << 24) },
- { "gn-03.rom", 0x020000, 0x1e28e697, 1 | (1 << 20) | (1 << 24) },
- { "gl-07.rom", 0x010000, 0xca8bef96, 2 | (1 << 20) | (1 << 24) },
- { "gl-08.rom", 0x010000, 0x33a2b400, 3 | (1 << 21) },
- { "gl-09.rom", 0x010000, 0x5a2d4752, 3 | (1 << 21) },
- { "mag-02.rom", 0x080000, 0xde89c69a, 4 | (1 << 21) },
- { "mag-00.rom", 0x080000, 0xa8f05d33, 5 | (1 << 21) },
- { "mag-01.rom", 0x080000, 0x5b399eed, 5 | (1 << 21) },
- { "mag-03.rom", 0x080000, 0x2220eb9f, 6 | (1 << 21) },
- { "mag-05.rom", 0x080000, 0x56a53254, 6 | (1 << 21) },
- { "mag-04.rom", 0x080000, 0x144b94cc, 6 | (1 << 21) },
- { "mag-06.rom", 0x080000, 0x82d44749, 6 | (1 << 21) },
- { "gl-06.rom", 0x020000, 0xd92e519d, 7 | (1 << 22) },
- { "mag-07.rom", 0x080000, 0x08eb5264, 8 | (1 << 22) },
- { "mb7122h.7v", 0x000400, 0xa1267336, 0 | (1 << 27) },
- };
- static struct BurnRomInfo* cninja1PickRom(UINT32 i) { if (i >= sizeof(cninja1RomDesc) / sizeof(cninja1RomDesc[0])) { return __null; } return cninja1RomDesc + i; }
- static INT32 cninja1RomInfo(struct BurnRomInfo* pri, UINT32 i) { struct BurnRomInfo* por = cninja1PickRom(i); if (por == __null) { return 1; } if (pri) { pri->nLen = por->nLen; pri->nCrc = por->nCrc; pri->nType = por->nType; } return 0; } static INT32 cninja1RomName(char** pszName, UINT32 i, INT32 nAka) { struct BurnRomInfo *por = cninja1PickRom(i); if (por == __null) { return 1; } if (nAka) { return 1; } *pszName = por->szName; return 0; }
- struct BurnDriver BurnDrvCninja1 = {
- "cninja1", "cninja", __null, __null, "1991",
- "Caveman Ninja (World ver 1)\0", __null, "Data East Corporation", "DECO IC16",
- __null, __null, __null, __null,
- (1 << 0) | (1 << 4), 2, (0x13000000), (1 << 11), 0,
- __null, cninja1RomInfo, cninja1RomName, __null, __null, DrvInputInfo, CninjaDIPInfo,
- CninjaInit, DrvExit, CninjaFrame, CninjaDraw, DrvScan, &DrvRecalc, 0x800,
- 256, 240, 4, 3
- };
- static struct BurnRomInfo cninjauRomDesc[] = {
- { "gm-02-3.1k", 0x020000, 0xd931c3b1, 1 | (1 << 20) | (1 << 24) },
- { "gm-05-2.3k", 0x020000, 0x7417d3fb, 1 | (1 << 20) | (1 << 24) },
- { "gm-01-2.1j", 0x020000, 0x72041f7e, 1 | (1 << 20) | (1 << 24) },
- { "gm-04-2.3j", 0x020000, 0x2104d005, 1 | (1 << 20) | (1 << 24) },
- { "gn-00.rom", 0x020000, 0x0b110b16, 1 | (1 << 20) | (1 << 24) },
- { "gn-03.rom", 0x020000, 0x1e28e697, 1 | (1 << 20) | (1 << 24) },
- { "gl-07.rom", 0x010000, 0xca8bef96, 2 | (1 << 20) | (1 << 24) },
- { "gl-08.rom", 0x010000, 0x33a2b400, 3 | (1 << 21) },
- { "gl-09.rom", 0x010000, 0x5a2d4752, 3 | (1 << 21) },
- { "mag-02.rom", 0x080000, 0xde89c69a, 4 | (1 << 21) },
- { "mag-00.rom", 0x080000, 0xa8f05d33, 5 | (1 << 21) },
- { "mag-01.rom", 0x080000, 0x5b399eed, 5 | (1 << 21) },
- { "mag-03.rom", 0x080000, 0x2220eb9f, 6 | (1 << 21) },
- { "mag-05.rom", 0x080000, 0x56a53254, 6 | (1 << 21) },
- { "mag-04.rom", 0x080000, 0x144b94cc, 6 | (1 << 21) },
- { "mag-06.rom", 0x080000, 0x82d44749, 6 | (1 << 21) },
- { "gl-06.rom", 0x020000, 0xd92e519d, 7 | (1 << 22) },
- { "mag-07.rom", 0x080000, 0x08eb5264, 8 | (1 << 22) },
- { "mb7122h.7v", 0x000400, 0xa1267336, 0 | (1 << 27) },
- };
- static struct BurnRomInfo* cninjauPickRom(UINT32 i) { if (i >= sizeof(cninjauRomDesc) / sizeof(cninjauRomDesc[0])) { return __null; } return cninjauRomDesc + i; }
- static INT32 cninjauRomInfo(struct BurnRomInfo* pri, UINT32 i) { struct BurnRomInfo* por = cninjauPickRom(i); if (por == __null) { return 1; } if (pri) { pri->nLen = por->nLen; pri->nCrc = por->nCrc; pri->nType = por->nType; } return 0; } static INT32 cninjauRomName(char** pszName, UINT32 i, INT32 nAka) { struct BurnRomInfo *por = cninjauPickRom(i); if (por == __null) { return 1; } if (nAka) { return 1; } *pszName = por->szName; return 0; }
- struct BurnDriver BurnDrvCninjau = {
- "cninjau", "cninja", __null, __null, "1991",
- "Caveman Ninja (US ver 4)\0", __null, "Data East Corporation", "DECO IC16",
- __null, __null, __null, __null,
- (1 << 0) | (1 << 4), 2, (0x13000000), (1 << 11), 0,
- __null, cninjauRomInfo, cninjauRomName, __null, __null, DrvInputInfo, CninjauDIPInfo,
- CninjaInit, DrvExit, CninjaFrame, CninjaDraw, DrvScan, &DrvRecalc, 0x800,
- 256, 240, 4, 3
- };
- static struct BurnRomInfo joemacRomDesc[] = {
- { "gl-02-2.1k", 0x020000, 0x80da12e2, 1 | (1 << 20) | (1 << 24) },
- { "gl-05-2.3k", 0x020000, 0xfe4dbbbb, 1 | (1 << 20) | (1 << 24) },
- { "gl-01-2.1j", 0x020000, 0x0b245307, 1 | (1 << 20) | (1 << 24) },
- { "gl-04-2.3j", 0x020000, 0x1b331f61, 1 | (1 << 20) | (1 << 24) },
- { "gn-00.rom", 0x020000, 0x0b110b16, 1 | (1 << 20) | (1 << 24) },
- { "gn-03.rom", 0x020000, 0x1e28e697, 1 | (1 << 20) | (1 << 24) },
- { "gl-07.rom", 0x010000, 0xca8bef96, 2 | (1 << 20) | (1 << 24) },
- { "gl-08.rom", 0x010000, 0x33a2b400, 3 | (1 << 21) },
- { "gl-09.rom", 0x010000, 0x5a2d4752, 3 | (1 << 21) },
- { "mag-02.rom", 0x080000, 0xde89c69a, 4 | (1 << 21) },
- { "mag-00.rom", 0x080000, 0xa8f05d33, 5 | (1 << 21) },
- { "mag-01.rom", 0x080000, 0x5b399eed, 5 | (1 << 21) },
- { "mag-03.rom", 0x080000, 0x2220eb9f, 6 | (1 << 21) },
- { "mag-05.rom", 0x080000, 0x56a53254, 6 | (1 << 21) },
- { "mag-04.rom", 0x080000, 0x144b94cc, 6 | (1 << 21) },
- { "mag-06.rom", 0x080000, 0x82d44749, 6 | (1 << 21) },
- { "gl-06.rom", 0x020000, 0xd92e519d, 7 | (1 << 22) },
- { "mag-07.rom", 0x080000, 0x08eb5264, 8 | (1 << 22) },
- { "mb7122h.7v", 0x000400, 0xa1267336, 0 | (1 << 27) },
- };
- static struct BurnRomInfo* joemacPickRom(UINT32 i) { if (i >= sizeof(joemacRomDesc) / sizeof(joemacRomDesc[0])) { return __null; } return joemacRomDesc + i; }
- static INT32 joemacRomInfo(struct BurnRomInfo* pri, UINT32 i) { struct BurnRomInfo* por = joemacPickRom(i); if (por == __null) { return 1; } if (pri) { pri->nLen = por->nLen; pri->nCrc = por->nCrc; pri->nType = por->nType; } return 0; } static INT32 joemacRomName(char** pszName, UINT32 i, INT32 nAka) { struct BurnRomInfo *por = joemacPickRom(i); if (por == __null) { return 1; } if (nAka) { return 1; } *pszName = por->szName; return 0; }
- struct BurnDriver BurnDrvJoemac = {
- "joemac", "cninja", __null, __null, "1991",
- "Tatakae Genshizin Joe & Mac (Japan ver 1)\0", __null, "Data East Corporation", "DECO IC16",
- __null, __null, __null, __null,
- (1 << 0) | (1 << 4), 2, (0x13000000), (1 << 11), 0,
- __null, joemacRomInfo, joemacRomName, __null, __null, DrvInputInfo, CninjaDIPInfo,
- CninjaInit, DrvExit, CninjaFrame, CninjaDraw, DrvScan, &DrvRecalc, 0x800,
- 256, 240, 4, 3
- };
- static struct BurnRomInfo stoneageRomDesc[] = {
- { "sa_1_019.bin", 0x020000, 0x7fb8c44f, 1 | (1 << 20) | (1 << 24) },
- { "sa_1_033.bin", 0x020000, 0x961c752b, 1 | (1 << 20) | (1 << 24) },
- { "sa_1_018.bin", 0x020000, 0xa4043022, 1 | (1 << 20) | (1 << 24) },
- { "sa_1_032.bin", 0x020000, 0xf52a3286, 1 | (1 << 20) | (1 << 24) },
- { "sa_1_017.bin", 0x020000, 0x08d6397a, 1 | (1 << 20) | (1 << 24) },
- { "sa_1_031.bin", 0x020000, 0x103079f5, 1 | (1 << 20) | (1 << 24) },
- { "sa_1_012.bin", 0x010000, 0x56058934, 2 | (1 << 20) | (1 << 24) },
- { "gl-08.rom", 0x010000, 0x33a2b400, 3 | (1 << 21) },
- { "gl-09.rom", 0x010000, 0x5a2d4752, 3 | (1 << 21) },
- { "mag-02.rom", 0x080000, 0xde89c69a, 4 | (1 << 21) },
- { "mag-00.rom", 0x080000, 0xa8f05d33, 5 | (1 << 21) },
- { "mag-01.rom", 0x080000, 0x5b399eed, 5 | (1 << 21) },
- { "mag-03.rom", 0x080000, 0x2220eb9f, 6 | (1 << 21) },
- { "mag-05.rom", 0x080000, 0x56a53254, 6 | (1 << 21) },
- { "mag-04.rom", 0x080000, 0x144b94cc, 6 | (1 << 21) },
- { "mag-06.rom", 0x080000, 0x82d44749, 6 | (1 << 21) },
- { "sa_1_069.bin", 0x040000, 0x2188f3ca, 7 | (1 << 22) },
- };
- static struct BurnRomInfo* stoneagePickRom(UINT32 i) { if (i >= sizeof(stoneageRomDesc) / sizeof(stoneageRomDesc[0])) { return __null; } return stoneageRomDesc + i; }
- static INT32 stoneageRomInfo(struct BurnRomInfo* pri, UINT32 i) { struct BurnRomInfo* por = stoneagePickRom(i); if (por == __null) { return 1; } if (pri) { pri->nLen = por->nLen; pri->nCrc = por->nCrc; pri->nType = por->nType; } return 0; } static INT32 stoneageRomName(char** pszName, UINT32 i, INT32 nAka) { struct BurnRomInfo *por = stoneagePickRom(i); if (por == __null) { return 1; } if (nAka) { return 1; } *pszName = por->szName; return 0; }
- struct BurnDriver BurnDrvStoneage = {
- "stoneage", "cninja", __null, __null, "1991",
- "Stoneage (bootleg of Caveman Ninja)\0", __null, "bootleg", "DECO IC16",
- __null, __null, __null, __null,
- (1 << 0) | (1 << 4) | (1 << 5), 2, (0x13000000), (1 << 11), 0,
- __null, stoneageRomInfo, stoneageRomName, __null, __null, DrvInputInfo, CninjaDIPInfo,
- StoneageInit, DrvExit, StoneageFrame, CninjaDraw, StoneageScan, &DrvRecalc, 0x800,
- 256, 240, 4, 3
- };
- static struct BurnRomInfo cninjablRomDesc[] = {
- { "joe mac 3.68k", 0x080000, 0xdc931d80, 1 | (1 << 20) | (1 << 24) },
- { "joe mac 4.68k", 0x080000, 0xe8dfe0b5, 1 | (1 << 20) | (1 << 24) },
- { "joe mac 5.z80", 0x010000, 0xd791b9d7, 2 | (1 << 20) | (1 << 24) },
- { "joe mac 1.gfx", 0x200000, 0x17ea5931, 3 | (1 << 21) },
- { "joe mac 2.gfx", 0x200000, 0xcc95317b, 3 | (1 << 21) },
- { "joe mac 6.samples", 0x080000, 0xdbecad83, 4 | (1 << 22) },
- };
- static struct BurnRomInfo* cninjablPickRom(UINT32 i) { if (i >= sizeof(cninjablRomDesc) / sizeof(cninjablRomDesc[0])) { return __null; } return cninjablRomDesc + i; }
- static INT32 cninjablRomInfo(struct BurnRomInfo* pri, UINT32 i) { struct BurnRomInfo* por = cninjablPickRom(i); if (por == __null) { return 1; } if (pri) { pri->nLen = por->nLen; pri->nCrc = por->nCrc; pri->nType = por->nType; } return 0; } static INT32 cninjablRomName(char** pszName, UINT32 i, INT32 nAka) { struct BurnRomInfo *por = cninjablPickRom(i); if (por == __null) { return 1; } if (nAka) { return 1; } *pszName = por->szName; return 0; }
- struct BurnDriver BurnDrvCninjabl = {
- "cninjabl", "cninja", __null, __null, "1991",
- "Caveman Ninja (bootleg)\0", __null, "bootleg", "DECO IC16",
- __null, __null, __null, __null,
- (1 << 0) | (1 << 4) | (1 << 5), 2, (0x13000000), (1 << 11), 0,
- __null, cninjablRomInfo, cninjablRomName, __null, __null, DrvInputInfo, CninjaDIPInfo,
- CninjablInit, DrvExit, StoneageFrame, CninjablDraw, StoneageScan, &DrvRecalc, 0x800,
- 256, 240, 4, 3
- };
- static struct BurnRomInfo mutantfRomDesc[] = {
- { "hd-03-4.2c", 0x020000, 0x94859545, 1 | (1 << 20) | (1 << 24) },
- { "hd-00-4.2a", 0x020000, 0x3cdb648f, 1 | (1 << 20) | (1 << 24) },
- { "hd-04-1.4c", 0x020000, 0xfd2ea8d7, 1 | (1 << 20) | (1 << 24) },
- { "hd-01-1.4a", 0x020000, 0x48a247ac, 1 | (1 << 20) | (1 << 24) },
- { "hd-12.21j", 0x010000, 0x13d55f11, 2 | (1 << 20) | (1 << 24) },
- { "hd-06-1.8d", 0x010000, 0x8b7a558b, 3 | (1 << 21) },
- { "hd-07-1.9d", 0x010000, 0xd2a3d449, 3 | (1 << 21) },
- { "maf-00.8a", 0x080000, 0xe56f528d, 4 | (1 << 21) },
- { "maf-01.9a", 0x080000, 0xc3d5173d, 5 | (1 << 21) },
- { "maf-02.11a", 0x080000, 0x0b37d849, 5 | (1 << 21) },
- { "maf-03.18a", 0x100000, 0xf4366d2c, 6 | (1 << 21) },
- { "maf-04.20a", 0x100000, 0x0c8f654e, 6 | (1 << 21) },
- { "maf-05.21a", 0x080000, 0xb0cfeb80, 6 | (1 << 21) },
- { "maf-06.18d", 0x100000, 0xf5c7a9b5, 6 | (1 << 21) },
- { "maf-07.20d", 0x100000, 0xfd6008a3, 6 | (1 << 21) },
- { "maf-08.21d", 0x080000, 0xe41cf1e7, 6 | (1 << 21) },
- { "hf-08.15a", 0x010000, 0x93b7279f, 7 | (1 << 21) },
- { "hf-09.17a", 0x010000, 0x05e2c074, 7 | (1 << 21) },
- { "hf-10.15c", 0x010000, 0x9b06f418, 7 | (1 << 21) },
- { "hf-11.17c", 0x010000, 0x3859a531, 7 | (1 << 21) },
- { "maf-10.20l", 0x040000, 0x7c57f48b, 8 | (1 << 22) },
- { "maf-09.18l", 0x080000, 0x28e7ed81, 9 | (1 << 22) },
- };
- static struct BurnRomInfo* mutantfPickRom(UINT32 i) { if (i >= sizeof(mutantfRomDesc) / sizeof(mutantfRomDesc[0])) { return __null; } return mutantfRomDesc + i; }
- static INT32 mutantfRomInfo(struct BurnRomInfo* pri, UINT32 i) { struct BurnRomInfo* por = mutantfPickRom(i); if (por == __null) { return 1; } if (pri) { pri->nLen = por->nLen; pri->nCrc = por->nCrc; pri->nType = por->nType; } return 0; } static INT32 mutantfRomName(char** pszName, UINT32 i, INT32 nAka) { struct BurnRomInfo *por = mutantfPickRom(i); if (por == __null) { return 1; } if (nAka) { return 1; } *pszName = por->szName; return 0; }
- struct BurnDriver BurnDrvMutantf = {
- "mutantf", __null, __null, __null, "1992",
- "Mutant Fighter (World ver EM-5)\0", __null, "Data East Corporation", "DECO IC16",
- __null, __null, __null, __null,
- (1 << 0), 2, (0x13000000), (1 << 3), 0,
- __null, mutantfRomInfo, mutantfRomName, __null, __null, DrvInputInfo, MutantfDIPInfo,
- MutantfInit, DrvExit, MutantfFrame, MutantfDraw, DrvScan, &DrvRecalc, 0x800,
- 320, 240, 4, 3
- };
- static struct BurnRomInfo mutantf4RomDesc[] = {
- { "hd-03-3.2c", 0x020000, 0xe6f53574, 1 | (1 << 20) | (1 << 24) },
- { "hd-00-3.2a", 0x020000, 0xd3055454, 1 | (1 << 20) | (1 << 24) },
- { "hd-04-1.4c", 0x020000, 0xfd2ea8d7, 1 | (1 << 20) | (1 << 24) },
- { "hd-01-1.4a", 0x020000, 0x48a247ac, 1 | (1 << 20) | (1 << 24) },
- { "hd-12.21j", 0x010000, 0x13d55f11, 2 | (1 << 20) | (1 << 24) },
- { "hd-06-1.8d", 0x010000, 0x8b7a558b, 3 | (1 << 21) },
- { "hd-07-1.9d", 0x010000, 0xd2a3d449, 3 | (1 << 21) },
- { "maf-00.8a", 0x080000, 0xe56f528d, 4 | (1 << 21) },
- { "maf-01.9a", 0x080000, 0xc3d5173d, 5 | (1 << 21) },
- { "maf-02.11a", 0x080000, 0x0b37d849, 5 | (1 << 21) },
- { "maf-03.18a", 0x100000, 0xf4366d2c, 6 | (1 << 21) },
- { "maf-04.20a", 0x100000, 0x0c8f654e, 6 | (1 << 21) },
- { "maf-05.21a", 0x080000, 0xb0cfeb80, 6 | (1 << 21) },
- { "maf-06.18d", 0x100000, 0xf5c7a9b5, 6 | (1 << 21) },
- { "maf-07.20d", 0x100000, 0xfd6008a3, 6 | (1 << 21) },
- { "maf-08.21d", 0x080000, 0xe41cf1e7, 6 | (1 << 21) },
- { "hf-08.15a", 0x010000, 0x93b7279f, 7 | (1 << 21) },
- { "hf-09.17a", 0x010000, 0x05e2c074, 7 | (1 << 21) },
- { "hf-10.15c", 0x010000, 0x9b06f418, 7 | (1 << 21) },
- { "hf-11.17c", 0x010000, 0x3859a531, 7 | (1 << 21) },
- { "maf-10.20l", 0x040000, 0x7c57f48b, 8 | (1 << 22) },
- { "maf-09.18l", 0x080000, 0x28e7ed81, 9 | (1 << 22) },
- };
- static struct BurnRomInfo* mutantf4PickRom(UINT32 i) { if (i >= sizeof(mutantf4RomDesc) / sizeof(mutantf4RomDesc[0])) { return __null; } return mutantf4RomDesc + i; }
- static INT32 mutantf4RomInfo(struct BurnRomInfo* pri, UINT32 i) { struct BurnRomInfo* por = mutantf4PickRom(i); if (por == __null) { return 1; } if (pri) { pri->nLen = por->nLen; pri->nCrc = por->nCrc; pri->nType = por->nType; } return 0; } static INT32 mutantf4RomName(char** pszName, UINT32 i, INT32 nAka) { struct BurnRomInfo *por = mutantf4PickRom(i); if (por == __null) { return 1; } if (nAka) { return 1; } *pszName = por->szName; return 0; }
- struct BurnDriver BurnDrvMutantf4 = {
- "mutantf4", "mutantf", __null, __null, "1992",
- "Mutant Fighter (World ver EM-4)\0", __null, "Data East Corporation", "DECO IC16",
- __null, __null, __null, __null,
- (1 << 0) | (1 << 4), 2, (0x13000000), (1 << 3), 0,
- __null, mutantf4RomInfo, mutantf4RomName, __null, __null, DrvInputInfo, MutantfDIPInfo,
- MutantfInit, DrvExit, MutantfFrame, MutantfDraw, DrvScan, &DrvRecalc, 0x800,
- 320, 240, 4, 3
- };
- static struct BurnRomInfo mutantf3RomDesc[] = {
- { "hd-03-2.2c", 0x020000, 0x0586c4fa, 1 | (1 << 20) | (1 << 24) },
- { "hd-00-2.2a", 0x020000, 0x6f8ec48e, 1 | (1 << 20) | (1 << 24) },
- { "hd-04-1.4c", 0x020000, 0xfd2ea8d7, 1 | (1 << 20) | (1 << 24) },
- { "hd-01-1.4a", 0x020000, 0x48a247ac, 1 | (1 << 20) | (1 << 24) },
- { "hd-12.21j", 0x010000, 0x13d55f11, 2 | (1 << 20) | (1 << 24) },
- { "hd-06-1.8d", 0x010000, 0x8b7a558b, 3 | (1 << 21) },
- { "hd-07-1.9d", 0x010000, 0xd2a3d449, 3 | (1 << 21) },
- { "maf-00.8a", 0x080000, 0xe56f528d, 4 | (1 << 21) },
- { "maf-01.9a", 0x080000, 0xc3d5173d, 5 | (1 << 21) },
- { "maf-02.11a", 0x080000, 0x0b37d849, 5 | (1 << 21) },
- { "maf-03.18a", 0x100000, 0xf4366d2c, 6 | (1 << 21) },
- { "maf-04.20a", 0x100000, 0x0c8f654e, 6 | (1 << 21) },
- { "maf-05.21a", 0x080000, 0xb0cfeb80, 6 | (1 << 21) },
- { "maf-06.18d", 0x100000, 0xf5c7a9b5, 6 | (1 << 21) },
- { "maf-07.20d", 0x100000, 0xfd6008a3, 6 | (1 << 21) },
- { "maf-08.21d", 0x080000, 0xe41cf1e7, 6 | (1 << 21) },
- { "hf-08.15a", 0x010000, 0x93b7279f, 7 | (1 << 21) },
- { "hf-09.17a", 0x010000, 0x05e2c074, 7 | (1 << 21) },
- { "hf-10.15c", 0x010000, 0x9b06f418, 7 | (1 << 21) },
- { "hf-11.17c", 0x010000, 0x3859a531, 7 | (1 << 21) },
- { "maf-10.20l", 0x040000, 0x7c57f48b, 8 | (1 << 22) },
- { "maf-09.18l", 0x080000, 0x28e7ed81, 9 | (1 << 22) },
- };
- static struct BurnRomInfo* mutantf3PickRom(UINT32 i) { if (i >= sizeof(mutantf3RomDesc) / sizeof(mutantf3RomDesc[0])) { return __null; } return mutantf3RomDesc + i; }
- static INT32 mutantf3RomInfo(struct BurnRomInfo* pri, UINT32 i) { struct BurnRomInfo* por = mutantf3PickRom(i); if (por == __null) { return 1; } if (pri) { pri->nLen = por->nLen; pri->nCrc = por->nCrc; pri->nType = por->nType; } return 0; } static INT32 mutantf3RomName(char** pszName, UINT32 i, INT32 nAka) { struct BurnRomInfo *por = mutantf3PickRom(i); if (por == __null) { return 1; } if (nAka) { return 1; } *pszName = por->szName; return 0; }
- struct BurnDriver BurnDrvMutantf3 = {
- "mutantf3", "mutantf", __null, __null, "1992",
- "Mutant Fighter (World ver EM-3)\0", __null, "Data East Corporation", "DECO IC16",
- __null, __null, __null, __null,
- (1 << 0) | (1 << 4), 2, (0x13000000), (1 << 3), 0,
- __null, mutantf3RomInfo, mutantf3RomName, __null, __null, DrvInputInfo, MutantfDIPInfo,
- MutantfInit, DrvExit, MutantfFrame, MutantfDraw, DrvScan, &DrvRecalc, 0x800,
- 320, 240, 4, 3
- };
- static struct BurnRomInfo deathbrdRomDesc[] = {
- { "hf-03-2.2c", 0x020000, 0xfb86fff3, 1 | (1 << 20) | (1 << 24) },
- { "hf-00-2.2a", 0x020000, 0x099aa422, 1 | (1 << 20) | (1 << 24) },
- { "hd-04-1.4c", 0x020000, 0xfd2ea8d7, 1 | (1 << 20) | (1 << 24) },
- { "hd-01-1.4a", 0x020000, 0x48a247ac, 1 | (1 << 20) | (1 << 24) },
- { "hd-12.21j", 0x010000, 0x13d55f11, 2 | (1 << 20) | (1 << 24) },
- { "hd-06-1.8d", 0x010000, 0x8b7a558b, 3 | (1 << 21) },
- { "hd-07-1.9d", 0x010000, 0xd2a3d449, 3 | (1 << 21) },
- { "maf-00.8a", 0x080000, 0xe56f528d, 4 | (1 << 21) },
- { "maf-01.9a", 0x080000, 0xc3d5173d, 5 | (1 << 21) },
- { "maf-02.11a", 0x080000, 0x0b37d849, 5 | (1 << 21) },
- { "maf-03.18a", 0x100000, 0xf4366d2c, 6 | (1 << 21) },
- { "maf-04.20a", 0x100000, 0x0c8f654e, 6 | (1 << 21) },
- { "maf-05.21a", 0x080000, 0xb0cfeb80, 6 | (1 << 21) },
- { "maf-06.18d", 0x100000, 0xf5c7a9b5, 6 | (1 << 21) },
- { "maf-07.20d", 0x100000, 0xfd6008a3, 6 | (1 << 21) },
- { "maf-08.21d", 0x080000, 0xe41cf1e7, 6 | (1 << 21) },
- { "hf-08.15a", 0x010000, 0x93b7279f, 7 | (1 << 21) },
- { "hf-09.17a", 0x010000, 0x05e2c074, 7 | (1 << 21) },
- { "hf-10.15c", 0x010000, 0x9b06f418, 7 | (1 << 21) },
- { "hf-11.17c", 0x010000, 0x3859a531, 7 | (1 << 21) },
- { "maf-10.20l", 0x040000, 0x7c57f48b, 8 | (1 << 22) },
- { "maf-09.18l", 0x080000, 0x28e7ed81, 9 | (1 << 22) },
- };
- static struct BurnRomInfo* deathbrdPickRom(UINT32 i) { if (i >= sizeof(deathbrdRomDesc) / sizeof(deathbrdRomDesc[0])) { return __null; } return deathbrdRomDesc + i; }
- static INT32 deathbrdRomInfo(struct BurnRomInfo* pri, UINT32 i) { struct BurnRomInfo* por = deathbrdPickRom(i); if (por == __null) { return 1; } if (pri) { pri->nLen = por->nLen; pri->nCrc = por->nCrc; pri->nType = por->nType; } return 0; } static INT32 deathbrdRomName(char** pszName, UINT32 i, INT32 nAka) { struct BurnRomInfo *por = deathbrdPickRom(i); if (por == __null) { return 1; } if (nAka) { return 1; } *pszName = por->szName; return 0; }
- struct BurnDriver BurnDrvDeathbrd = {
- "deathbrd", "mutantf", __null, __null, "1992",
- "Death Brade (Japan ver JM-3)\0", __null, "Data East Corporation", "DECO IC16",
- __null, __null, __null, __null,
- (1 << 0) | (1 << 4), 2, (0x13000000), (1 << 3), 0,
- __null, deathbrdRomInfo, deathbrdRomName, __null, __null, DrvInputInfo, MutantfDIPInfo,
- MutantfInit, DrvExit, MutantfFrame, MutantfDraw, DrvScan, &DrvRecalc, 0x800,
- 320, 240, 4, 3
- };
- static struct BurnRomInfo edrandyRomDesc[] = {
- { "gg-00-2.k1", 0x020000, 0xce1ba964, 1 | (1 << 20) | (1 << 24) },
- { "gg-04-2.k3", 0x020000, 0x24caed19, 1 | (1 << 20) | (1 << 24) },
- { "gg-01-2.j1", 0x020000, 0x33677b80, 1 | (1 << 20) | (1 << 24) },
- { "gg-05-2.j3", 0x020000, 0x79a68ca6, 1 | (1 << 20) | (1 << 24) },
- { "ge-02.h1", 0x020000, 0xc2969fbb, 1 | (1 << 20) | (1 << 24) },
- { "ge-06.h3", 0x020000, 0x5c2e6418, 1 | (1 << 20) | (1 << 24) },
- { "ge-03.f1", 0x020000, 0x5e7b19a8, 1 | (1 << 20) | (1 << 24) },
- { "ge-07.f3", 0x020000, 0x5eb819a1, 1 | (1 << 20) | (1 << 24) },
- { "ge-09.k13", 0x010000, 0x9f94c60b, 2 | (1 << 20) | (1 << 24) },
- { "gg-10.y6", 0x010000, 0xb96c6cbe, 3 | (1 << 21) },
- { "gg-11.z6", 0x010000, 0xee567448, 3 | (1 << 21) },
- { "mad-02", 0x080000, 0x6c76face, 4 | (1 << 21) },
- { "mad-00", 0x080000, 0x3735b22d, 5 | (1 << 21) },
- { "mad-01", 0x080000, 0x7bb13e1c, 5 | (1 << 21) },
- { "mad-03", 0x080000, 0xc0bff892, 6 | (1 << 21) },
- { "mad-05", 0x080000, 0x3f2ccf95, 6 | (1 << 21) },
- { "mad-04", 0x080000, 0x464f3eb9, 6 | (1 << 21) },
- { "mad-06", 0x080000, 0x60871f77, 6 | (1 << 21) },
- { "mad-07", 0x080000, 0xac03466e, 6 | (1 << 21) },
- { "mad-08", 0x080000, 0x1b420ec8, 6 | (1 << 21) },
- { "mad-10", 0x080000, 0x42da8ef0, 6 | (1 << 21) },
- { "mad-11", 0x080000, 0x03c1f982, 6 | (1 << 21) },
- { "mad-09", 0x080000, 0x930f4900, 6 | (1 << 21) },
- { "mad-12", 0x080000, 0xa0bd62b6, 6 | (1 << 21) },
- { "ge-08.j13", 0x020000, 0xdfe28c7b, 7 | (1 << 22) },
- { "mad-13", 0x080000, 0x6ab28eba, 8 | (1 << 22) },
- { "ge-12.v7", 0x000400, 0x278f674f, 0 | (1 << 27) },
- };
- static struct BurnRomInfo* edrandyPickRom(UINT32 i) { if (i >= sizeof(edrandyRomDesc) / sizeof(edrandyRomDesc[0])) { return __null; } return edrandyRomDesc + i; }
- static INT32 edrandyRomInfo(struct BurnRomInfo* pri, UINT32 i) { struct BurnRomInfo* por = edrandyPickRom(i); if (por == __null) { return 1; } if (pri) { pri->nLen = por->nLen; pri->nCrc = por->nCrc; pri->nType = por->nType; } return 0; } static INT32 edrandyRomName(char** pszName, UINT32 i, INT32 nAka) { struct BurnRomInfo *por = edrandyPickRom(i); if (por == __null) { return 1; } if (nAka) { return 1; } *pszName = por->szName; return 0; }
- struct BurnDriver BurnDrvEdrandy = {
- "edrandy", __null, __null, __null, "1990",
- "The Cliffhanger - Edward Randy (World ver 3)\0", __null, "Data East Corporation", "DECO IC16",
- __null, __null, __null, __null,
- (1 << 0), 2, (0x13000000), (1 << 2), 0,
- __null, edrandyRomInfo, edrandyRomName, __null, __null, DrvInputInfo, EdrandyDIPInfo,
- EdrandyInit, DrvExit, CninjaFrame, EdrandyDraw, DrvScan, &DrvRecalc, 0x800,
- 256, 240, 4, 3
- };
- static struct BurnRomInfo edrandy2RomDesc[] = {
- { "gg00-1.k1", 0x020000, 0xa029cc4a, 1 | (1 << 20) | (1 << 24) },
- { "gg04-1.k3", 0x020000, 0x8b7928a4, 1 | (1 << 20) | (1 << 24) },
- { "gg01-1.j1", 0x020000, 0x84360123, 1 | (1 << 20) | (1 << 24) },
- { "gg05-1.j3", 0x020000, 0x0bf85d9d, 1 | (1 << 20) | (1 << 24) },
- { "ge-02.h1", 0x020000, 0xc2969fbb, 1 | (1 << 20) | (1 << 24) },
- { "ge-06.h3", 0x020000, 0x5c2e6418, 1 | (1 << 20) | (1 << 24) },
- { "ge-03.f1", 0x020000, 0x5e7b19a8, 1 | (1 << 20) | (1 << 24) },
- { "ge-07.f3", 0x020000, 0x5eb819a1, 1 | (1 << 20) | (1 << 24) },
- { "ge-09.k13", 0x010000, 0x9f94c60b, 2 | (1 << 20) | (1 << 24) },
- { "gg-10.y6", 0x010000, 0xb96c6cbe, 3 | (1 << 21) },
- { "gg-11.z6", 0x010000, 0xee567448, 3 | (1 << 21) },
- { "mad-02", 0x080000, 0x6c76face, 4 | (1 << 21) },
- { "mad-00", 0x080000, 0x3735b22d, 5 | (1 << 21) },
- { "mad-01", 0x080000, 0x7bb13e1c, 5 | (1 << 21) },
- { "mad-03", 0x080000, 0xc0bff892, 6 | (1 << 21) },
- { "mad-05", 0x080000, 0x3f2ccf95, 6 | (1 << 21) },
- { "mad-04", 0x080000, 0x464f3eb9, 6 | (1 << 21) },
- { "mad-06", 0x080000, 0x60871f77, 6 | (1 << 21) },
- { "mad-07", 0x080000, 0xac03466e, 6 | (1 << 21) },
- { "mad-08", 0x080000, 0x1b420ec8, 6 | (1 << 21) },
- { "mad-10", 0x080000, 0x42da8ef0, 6 | (1 << 21) },
- { "mad-11", 0x080000, 0x03c1f982, 6 | (1 << 21) },
- { "mad-09", 0x080000, 0x930f4900, 6 | (1 << 21) },
- { "mad-12", 0x080000, 0xa0bd62b6, 6 | (1 << 21) },
- { "ge-08.j13", 0x020000, 0xdfe28c7b, 7 | (1 << 22) },
- { "mad-13", 0x080000, 0x6ab28eba, 8 | (1 << 22) },
- { "ge-12.v7", 0x000400, 0x278f674f, 0 | (1 << 27) },
- };
- static struct BurnRomInfo* edrandy2PickRom(UINT32 i) { if (i >= sizeof(edrandy2RomDesc) / sizeof(edrandy2RomDesc[0])) { return __null; } return edrandy2RomDesc + i; }
- static INT32 edrandy2RomInfo(struct BurnRomInfo* pri, UINT32 i) { struct BurnRomInfo* por = edrandy2PickRom(i); if (por == __null) { return 1; } if (pri) { pri->nLen = por->nLen; pri->nCrc = por->nCrc; pri->nType = por->nType; } return 0; } static INT32 edrandy2RomName(char** pszName, UINT32 i, INT32 nAka) { struct BurnRomInfo *por = edrandy2PickRom(i); if (por == __null) { return 1; } if (nAka) { return 1; } *pszName = por->szName; return 0; }
- struct BurnDriver BurnDrvEdrandy2 = {
- "edrandy2", "edrandy", __null, __null, "1990",
- "The Cliffhanger - Edward Randy (World ver 2)\0", __null, "Data East Corporation", "DECO IC16",
- __null, __null, __null, __null,
- (1 << 0) | (1 << 4), 2, (0x13000000), (1 << 2), 0,
- __null, edrandy2RomInfo, edrandy2RomName, __null, __null, DrvInputInfo, EdrandcDIPInfo,
- EdrandyInit, DrvExit, CninjaFrame, EdrandyDraw, DrvScan, &DrvRecalc, 0x800,
- 256, 240, 4, 3
- };
- static struct BurnRomInfo edrandy1RomDesc[] = {
- { "1.k1", 0x020000, 0xf184cdaa, 1 | (1 << 20) | (1 << 24) },
- { "5.k3", 0x020000, 0x7e3a4b81, 1 | (1 << 20) | (1 << 24) },
- { "2.j1", 0x020000, 0x212cd593, 1 | (1 << 20) | (1 << 24) },
- { "6.j3", 0x020000, 0x4a96fb07, 1 | (1 << 20) | (1 << 24) },
- { "ge-02.h1", 0x020000, 0xc2969fbb, 1 | (1 << 20) | (1 << 24) },
- { "ge-06.h3", 0x020000, 0x5c2e6418, 1 | (1 << 20) | (1 << 24) },
- { "ge-03.f1", 0x020000, 0x5e7b19a8, 1 | (1 << 20) | (1 << 24) },
- { "ge-07.f3", 0x020000, 0x5eb819a1, 1 | (1 << 20) | (1 << 24) },
- { "ge-09.k13", 0x010000, 0x9f94c60b, 2 | (1 << 20) | (1 << 24) },
- { "ge-10.y6", 0x010000, 0x2528d795, 3 | (1 << 21) },
- { "ge-11.z6", 0x010000, 0xe34a931e, 3 | (1 << 21) },
- { "mad-02", 0x080000, 0x6c76face, 4 | (1 << 21) },
- { "mad-00", 0x080000, 0x3735b22d, 5 | (1 << 21) },
- { "mad-01", 0x080000, 0x7bb13e1c, 5 | (1 << 21) },
- { "mad-03", 0x080000, 0xc0bff892, 6 | (1 << 21) },
- { "mad-05", 0x080000, 0x3f2ccf95, 6 | (1 << 21) },
- { "mad-04", 0x080000, 0x464f3eb9, 6 | (1 << 21) },
- { "mad-06", 0x080000, 0x60871f77, 6 | (1 << 21) },
- { "mad-07", 0x080000, 0xac03466e, 6 | (1 << 21) },
- { "mad-08", 0x080000, 0x1b420ec8, 6 | (1 << 21) },
- { "mad-10", 0x080000, 0x42da8ef0, 6 | (1 << 21) },
- { "mad-11", 0x080000, 0x03c1f982, 6 | (1 << 21) },
- { "mad-09", 0x080000, 0x930f4900, 6 | (1 << 21) },
- { "mad-12", 0x080000, 0xa0bd62b6, 6 | (1 << 21) },
- { "ge-08.j13", 0x020000, 0xdfe28c7b, 7 | (1 << 22) },
- { "mad-13", 0x080000, 0x6ab28eba, 8 | (1 << 22) },
- { "ge-12.v7", 0x000400, 0x278f674f, 0 | (1 << 27) },
- };
- static struct BurnRomInfo* edrandy1PickRom(UINT32 i) { if (i >= sizeof(edrandy1RomDesc) / sizeof(edrandy1RomDesc[0])) { return __null; } return edrandy1RomDesc + i; }
- static INT32 edrandy1RomInfo(struct BurnRomInfo* pri, UINT32 i) { struct BurnRomInfo* por = edrandy1PickRom(i); if (por == __null) { return 1; } if (pri) { pri->nLen = por->nLen; pri->nCrc = por->nCrc; pri->nType = por->nType; } return 0; } static INT32 edrandy1RomName(char** pszName, UINT32 i, INT32 nAka) { struct BurnRomInfo *por = edrandy1PickRom(i); if (por == __null) { return 1; } if (nAka) { return 1; } *pszName = por->szName; return 0; }
- struct BurnDriver BurnDrvEdrandy1 = {
- "edrandy1", "edrandy", __null, __null, "1990",
- "The Cliffhanger - Edward Randy (World ver 1)\0", __null, "Data East Corporation", "DECO IC16",
- __null, __null, __null, __null,
- (1 << 0) | (1 << 4), 2, (0x13000000), (1 << 2), 0,
- __null, edrandy1RomInfo, edrandy1RomName, __null, __null, DrvInputInfo, EdrandcDIPInfo,
- EdrandyInit, DrvExit, CninjaFrame, EdrandyDraw, DrvScan, &DrvRecalc, 0x800,
- 256, 240, 4, 3
- };
- static struct BurnRomInfo edrandyjRomDesc[] = {
- { "ge-00-2.k1", 0x020000, 0xb3d2403c, 1 | (1 << 20) | (1 << 24) },
- { "ge-04-2.k3", 0x020000, 0x8a9624d6, 1 | (1 << 20) | (1 << 24) },
- { "ge-01-2.j1", 0x020000, 0x84360123, 1 | (1 << 20) | (1 << 24) },
- { "ge-05-2.j3", 0x020000, 0x0bf85d9d, 1 | (1 << 20) | (1 << 24) },
- { "ge-02.h1", 0x020000, 0xc2969fbb, 1 | (1 << 20) | (1 << 24) },
- { "ge-06.h3", 0x020000, 0x5c2e6418, 1 | (1 << 20) | (1 << 24) },
- { "ge-03.f1", 0x020000, 0x5e7b19a8, 1 | (1 << 20) | (1 << 24) },
- { "ge-07.f3", 0x020000, 0x5eb819a1, 1 | (1 << 20) | (1 << 24) },
- { "ge-09.k13", 0x010000, 0x9f94c60b, 2 | (1 << 20) | (1 << 24) },
- { "ge-10.y6", 0x010000, 0x2528d795, 3 | (1 << 21) },
- { "ge-11.z6", 0x010000, 0xe34a931e, 3 | (1 << 21) },
- { "mad-02", 0x080000, 0x6c76face, 4 | (1 << 21) },
- { "mad-00", 0x080000, 0x3735b22d, 5 | (1 << 21) },
- { "mad-01", 0x080000, 0x7bb13e1c, 5 | (1 << 21) },
- { "mad-03", 0x080000, 0xc0bff892, 6 | (1 << 21) },
- { "mad-05", 0x080000, 0x3f2ccf95, 6 | (1 << 21) },
- { "mad-04", 0x080000, 0x464f3eb9, 6 | (1 << 21) },
- { "mad-06", 0x080000, 0x60871f77, 6 | (1 << 21) },
- { "mad-07", 0x080000, 0xac03466e, 6 | (1 << 21) },
- { "mad-08", 0x080000, 0x1b420ec8, 6 | (1 << 21) },
- { "mad-10", 0x080000, 0x42da8ef0, 6 | (1 << 21) },
- { "mad-11", 0x080000, 0x03c1f982, 6 | (1 << 21) },
- { "mad-09", 0x080000, 0x930f4900, 6 | (1 << 21) },
- { "mad-12", 0x080000, 0xa0bd62b6, 6 | (1 << 21) },
- { "ge-08.j13", 0x020000, 0xdfe28c7b, 7 | (1 << 22) },
- { "mad-13", 0x080000, 0x6ab28eba, 8 | (1 << 22) },
- { "ge-12.v7", 0x000400, 0x278f674f, 0 | (1 << 27) },
- };
- static struct BurnRomInfo* edrandyjPickRom(UINT32 i) { if (i >= sizeof(edrandyjRomDesc) / sizeof(edrandyjRomDesc[0])) { return __null; } return edrandyjRomDesc + i; }
- static INT32 edrandyjRomInfo(struct BurnRomInfo* pri, UINT32 i) { struct BurnRomInfo* por = edrandyjPickRom(i); if (por == __null) { return 1; } if (pri) { pri->nLen = por->nLen; pri->nCrc = por->nCrc; pri->nType = por->nType; } return 0; } static INT32 edrandyjRomName(char** pszName, UINT32 i, INT32 nAka) { struct BurnRomInfo *por = edrandyjPickRom(i); if (por == __null) { return 1; } if (nAka) { return 1; } *pszName = por->szName; return 0; }
- struct BurnDriver BurnDrvEdrandyj = {
- "edrandyj", "edrandy", __null, __null, "1990",
- "The Cliffhanger - Edward Randy (Japan ver 3)\0", __null, "Data East Corporation", "DECO IC16",
- __null, __null, __null, __null,
- (1 << 0) | (1 << 4), 2, (0x13000000), (1 << 2), 0,
- __null, edrandyjRomInfo, edrandyjRomName, __null, __null, DrvInputInfo, EdrandcDIPInfo,
- EdrandyInit, DrvExit, CninjaFrame, EdrandyDraw, DrvScan, &DrvRecalc, 0x800,
- 256, 240, 4, 3
- };
- static struct BurnRomInfo robocop2RomDesc[] = {
- { "gq-03.k1", 0x020000, 0xa7e90c28, 1 | (1 << 20) | (1 << 24) },
- { "gq-07.k3", 0x020000, 0xd2287ec1, 1 | (1 << 20) | (1 << 24) },
- { "gq-02.j1", 0x020000, 0x6777b8a0, 1 | (1 << 20) | (1 << 24) },
- { "gq-06.j3", 0x020000, 0xe11e27b5, 1 | (1 << 20) | (1 << 24) },
- { "go-01-1.h1", 0x020000, 0xab5356c0, 1 | (1 << 20) | (1 << 24) },
- { "go-05-1.h3", 0x020000, 0xce21bda5, 1 | (1 << 20) | (1 << 24) },
- { "go-00.f1", 0x020000, 0xa93369ea, 1 | (1 << 20) | (1 << 24) },
- { "go-04.f3", 0x020000, 0xee2f6ad9, 1 | (1 << 20) | (1 << 24) },
- { "gp-09.k13", 0x010000, 0x4a4e0f8d, 2 | (1 << 20) | (1 << 24) },
- { "gp10-1.y6", 0x010000, 0xd25d719c, 3 | (1 << 21) },
- { "gp11-1.z6", 0x010000, 0x030ded47, 3 | (1 << 21) },
- { "mah-04.z4", 0x080000, 0x9b6ca18c, 4 | (1 << 21) },
- { "mah-03.y4", 0x080000, 0x37894ddc, 4 | (1 << 21) },
- { "mah-01.z1", 0x080000, 0x26e0dfff, 5 | (1 << 21) },
- { "mah-00.y1", 0x080000, 0x7bd69e41, 5 | (1 << 21) },
- { "mah-02.a1", 0x080000, 0x328a247d, 5 | (1 << 21) },
- { "mah-05.y9", 0x080000, 0x6773e613, 6 | (1 << 21) },
- { "mah-08.y12", 0x080000, 0x88d310a5, 6 | (1 << 21) },
- { "mah-06.z9", 0x080000, 0x27a8808a, 6 | (1 << 21) },
- { "mah-09.z12", 0x080000, 0xa58c43a7, 6 | (1 << 21) },
- { "mah-07.a9", 0x080000, 0x526f4190, 6 | (1 << 21) },
- { "mah-10.a12", 0x080000, 0x14b770da, 6 | (1 << 21) },
- { "gp-08.j13", 0x020000, 0x365183b1, 7 | (1 << 22) },
- { "mah-11.f13", 0x080000, 0x642bc692, 8 | (1 << 22) },
- { "go-12.v7", 0x000400, 0x278f674f, 0 | (1 << 27) },
- };
- static struct BurnRomInfo* robocop2PickRom(UINT32 i) { if (i >= sizeof(robocop2RomDesc) / sizeof(robocop2RomDesc[0])) { return __null; } return robocop2RomDesc + i; }
- static INT32 robocop2RomInfo(struct BurnRomInfo* pri, UINT32 i) { struct BurnRomInfo* por = robocop2PickRom(i); if (por == __null) { return 1; } if (pri) { pri->nLen = por->nLen; pri->nCrc = por->nCrc; pri->nType = por->nType; } return 0; } static INT32 robocop2RomName(char** pszName, UINT32 i, INT32 nAka) { struct BurnRomInfo *por = robocop2PickRom(i); if (por == __null) { return 1; } if (nAka) { return 1; } *pszName = por->szName; return 0; }
- struct BurnDriver BurnDrvRobocop2 = {
- "robocop2", __null, __null, __null, "1991",
- "Robocop 2 (Euro/Asia v0.10)\0", __null, "Data East Corporation", "DECO IC16",
- __null, __null, __null, __null,
- (1 << 0), 2, (0x13000000), (1 << 2), 0,
- __null, robocop2RomInfo, robocop2RomName, __null, __null, Robocop2InputInfo, Robocop2DIPInfo,
- Robocop2Init, DrvExit, CninjaFrame, Robocop2Draw, DrvScan, &DrvRecalc, 0x800,
- 320, 240, 4, 3
- };
- static struct BurnRomInfo robocop2uRomDesc[] = {
- { "robo03.k1", 0x020000, 0xf4c96cc9, 1 | (1 << 20) | (1 << 24) },
- { "robo07.k3", 0x020000, 0x11e53a7c, 1 | (1 << 20) | (1 << 24) },
- { "robo02.j1", 0x020000, 0xfa086a0d, 1 | (1 << 20) | (1 << 24) },
- { "robo06.j3", 0x020000, 0x703b49d0, 1 | (1 << 20) | (1 << 24) },
- { "go-01-1.h1", 0x020000, 0xab5356c0, 1 | (1 << 20) | (1 << 24) },
- { "go-05-1.h3", 0x020000, 0xce21bda5, 1 | (1 << 20) | (1 << 24) },
- { "go-00.f1", 0x020000, 0xa93369ea, 1 | (1 << 20) | (1 << 24) },
- { "go-04.f3", 0x020000, 0xee2f6ad9, 1 | (1 << 20) | (1 << 24) },
- { "gp-09.k13", 0x010000, 0x4a4e0f8d, 2 | (1 << 20) | (1 << 24) },
- { "gp10-1.y6", 0x010000, 0xd25d719c, 3 | (1 << 21) },
- { "gp11-1.z6", 0x010000, 0x030ded47, 3 | (1 << 21) },
- { "mah-04.z4", 0x080000, 0x9b6ca18c, 4 | (1 << 21) },
- { "mah-03.y4", 0x080000, 0x37894ddc, 4 | (1 << 21) },
- { "mah-01.z1", 0x080000, 0x26e0dfff, 5 | (1 << 21) },
- { "mah-00.y1", 0x080000, 0x7bd69e41, 5 | (1 << 21) },
- { "mah-02.a1", 0x080000, 0x328a247d, 5 | (1 << 21) },
- { "mah-05.y9", 0x080000, 0x6773e613, 6 | (1 << 21) },
- { "mah-08.y12", 0x080000, 0x88d310a5, 6 | (1 << 21) },
- { "mah-06.z9", 0x080000, 0x27a8808a, 6 | (1 << 21) },
- { "mah-09.z12", 0x080000, 0xa58c43a7, 6 | (1 << 21) },
- { "mah-07.a9", 0x080000, 0x526f4190, 6 | (1 << 21) },
- { "mah-10.a12", 0x080000, 0x14b770da, 6 | (1 << 21) },
- { "gp-08.j13", 0x020000, 0x365183b1, 7 | (1 << 22) },
- { "mah-11.f13", 0x080000, 0x642bc692, 8 | (1 << 22) },
- { "go-12.v7", 0x000400, 0x278f674f, 0 | (1 << 27) },
- };
- static struct BurnRomInfo* robocop2uPickRom(UINT32 i) { if (i >= sizeof(robocop2uRomDesc) / sizeof(robocop2uRomDesc[0])) { return __null; } return robocop2uRomDesc + i; }
- static INT32 robocop2uRomInfo(struct BurnRomInfo* pri, UINT32 i) { struct BurnRomInfo* por = robocop2uPickRom(i); if (por == __null) { return 1; } if (pri) { pri->nLen = por->nLen; pri->nCrc = por->nCrc; pri->nType = por->nType; } return 0; } static INT32 robocop2uRomName(char** pszName, UINT32 i, INT32 nAka) { struct BurnRomInfo *por = robocop2uPickRom(i); if (por == __null) { return 1; } if (nAka) { return 1; } *pszName = por->szName; return 0; }
- struct BurnDriver BurnDrvRobocop2u = {
- "robocop2u", "robocop2", __null, __null, "1991",
- "Robocop 2 (US v0.05)\0", __null, "Data East Corporation", "DECO IC16",
- __null, __null, __null, __null,
- (1 << 0) | (1 << 4), 2, (0x13000000), (1 << 2), 0,
- __null, robocop2uRomInfo, robocop2uRomName, __null, __null, Robocop2InputInfo, Robocop2DIPInfo,
- Robocop2Init, DrvExit, CninjaFrame, Robocop2Draw, DrvScan, &DrvRecalc, 0x800,
- 320, 240, 4, 3
- };
- static struct BurnRomInfo robocop2jRomDesc[] = {
- { "go-03-1.k1", 0x020000, 0x52506608, 1 | (1 << 20) | (1 << 24) },
- { "go-07-1.k3", 0x020000, 0x739cda17, 1 | (1 << 20) | (1 << 24) },
- { "go-02-1.j1", 0x020000, 0x48c0ace9, 1 | (1 << 20) | (1 << 24) },
- { "go-06-1.j3", 0x020000, 0x41abec87, 1 | (1 << 20) | (1 << 24) },
- { "go-01-1.h1", 0x020000, 0xab5356c0, 1 | (1 << 20) | (1 << 24) },
- { "go-05-1.h3", 0x020000, 0xce21bda5, 1 | (1 << 20) | (1 << 24) },
- { "go-00.f1", 0x020000, 0xa93369ea, 1 | (1 << 20) | (1 << 24) },
- { "go-04.f3", 0x020000, 0xee2f6ad9, 1 | (1 << 20) | (1 << 24) },
- { "gp-09.k13", 0x010000, 0x4a4e0f8d, 2 | (1 << 20) | (1 << 24) },
- { "gp10-1.y6", 0x010000, 0xd25d719c, 3 | (1 << 21) },
- { "gp11-1.z6", 0x010000, 0x030ded47, 3 | (1 << 21) },
- { "mah-04.z4", 0x080000, 0x9b6ca18c, 4 | (1 << 21) },
- { "mah-03.y4", 0x080000, 0x37894ddc, 4 | (1 << 21) },
- { "mah-01.z1", 0x080000, 0x26e0dfff, 5 | (1 << 21) },
- { "mah-00.y1", 0x080000, 0x7bd69e41, 5 | (1 << 21) },
- { "mah-02.a1", 0x080000, 0x328a247d, 5 | (1 << 21) },
- { "mah-05.y9", 0x080000, 0x6773e613, 6 | (1 << 21) },
- { "mah-08.y12", 0x080000, 0x88d310a5, 6 | (1 << 21) },
- { "mah-06.z9", 0x080000, 0x27a8808a, 6 | (1 << 21) },
- { "mah-09.z12", 0x080000, 0xa58c43a7, 6 | (1 << 21) },
- { "mah-07.a9", 0x080000, 0x526f4190, 6 | (1 << 21) },
- { "mah-10.a12", 0x080000, 0x14b770da, 6 | (1 << 21) },
- { "gp-08.j13", 0x020000, 0x365183b1, 7 | (1 << 22) },
- { "mah-11.f13", 0x080000, 0x642bc692, 8 | (1 << 22) },
- { "go-12.v7", 0x000400, 0x278f674f, 0 | (1 << 27) },
- };
- static struct BurnRomInfo* robocop2jPickRom(UINT32 i) { if (i >= sizeof(robocop2jRomDesc) / sizeof(robocop2jRomDesc[0])) { return __null; } return robocop2jRomDesc + i; }
- static INT32 robocop2jRomInfo(struct BurnRomInfo* pri, UINT32 i) { struct BurnRomInfo* por = robocop2jPickRom(i); if (por == __null) { return 1; } if (pri) { pri->nLen = por->nLen; pri->nCrc = por->nCrc; pri->nType = por->nType; } return 0; } static INT32 robocop2jRomName(char** pszName, UINT32 i, INT32 nAka) { struct BurnRomInfo *por = robocop2jPickRom(i); if (por == __null) { return 1; } if (nAka) { return 1; } *pszName = por->szName; return 0; }
- struct BurnDriver BurnDrvRobocop2j = {
- "robocop2j", "robocop2", __null, __null, "1991",
- "Robocop 2 (Japan v0.11)\0", __null, "Data East Corporation", "DECO IC16",
- __null, __null, __null, __null,
- (1 << 0) | (1 << 4), 2, (0x13000000), (1 << 2), 0,
- __null, robocop2jRomInfo, robocop2jRomName, __null, __null, Robocop2InputInfo, Robocop2DIPInfo,
- Robocop2Init, DrvExit, CninjaFrame, Robocop2Draw, DrvScan, &DrvRecalc, 0x800,
- 320, 240, 4, 3
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement