├── .gitignore ├── COPYING ├── J-UAE.info.src ├── J-UAE.png ├── README.md ├── amiga ├── Makefile ├── clip-daemon.c ├── clip-daemon.h ├── debug.c ├── include │ ├── README.txt │ ├── inline │ │ └── wbstart.h │ ├── pragmas │ │ └── wbstart_pragmas.h │ └── proto │ │ └── wbstart.h ├── janus-daemon.c ├── janus-daemon.h ├── launch-daemon.c ├── launch-daemon.h ├── lock-window.c ├── messages.c ├── mmakefile.src ├── old │ ├── Makefile.gcc │ ├── mhint.asm │ ├── mousehack.c │ ├── timehack.c │ ├── transdisk.c │ ├── transrom.c │ ├── uae-configuration.c │ ├── uae-configuration.s │ ├── uae-control.c │ ├── uae-control.h │ ├── uae_pragmas.h │ ├── uae_rcli.c │ └── uaectrl.c ├── patch.c ├── public-screen.c ├── sync-mouse.c ├── sync-screens.c ├── sync-windows.c └── test │ ├── closewin.c │ └── listpub.c ├── aros ├── Makefile ├── amirun.c └── mmakefile.src ├── docs ├── ChangeLog.txt ├── Copying.txt ├── Readme.txt └── manual │ ├── README │ ├── bsdsocket.txt │ ├── cmd-line.txt │ ├── compiling.txt │ ├── configuration.txt │ ├── floppies.txt │ ├── joystick.txt │ ├── keyboard.txt │ └── scsi.txt ├── files └── Configurations │ └── default.uae ├── mmakefile.src └── src ├── 65c02core.cpp ├── ChangeLog ├── Makefile ├── a2065.cpp ├── a2091.cpp ├── adide.cpp ├── akiko.cpp ├── amax.cpp ├── ar.cpp ├── arcadia.cpp ├── archivers ├── chd │ ├── astring.cpp │ ├── astring.h │ ├── avhuff.h │ ├── bitmap.h │ ├── bitstream.h │ ├── chd.cpp │ ├── chd.h │ ├── chdcd.cpp │ ├── chdcd.h │ ├── chdcdrom.cpp │ ├── chdcdrom.h │ ├── chdcodec.cpp │ ├── chdcodec.h │ ├── chdglue.cpp │ ├── chdtypes.h │ ├── corealloc.cpp │ ├── corealloc.h │ ├── corefile.h │ ├── coretmpl.h │ ├── delegate.h │ ├── eminline.h │ ├── flac.cpp │ ├── flac.h │ ├── harddisk.cpp │ ├── harddisk.h │ ├── hashing.cpp │ ├── hashing.h │ ├── huffman.cpp │ ├── huffman.h │ ├── md5.cpp │ ├── md5.h │ ├── osdcomm.h │ ├── osdcore.h │ ├── osinline.h │ ├── palette.h │ ├── sha1.cpp │ ├── sha1.h │ └── windows │ │ ├── eivc.h │ │ ├── eivcx86.h │ │ ├── osinline.h │ │ ├── wintime.cpp │ │ └── winwork.cpp ├── dms │ ├── cdata.h │ ├── crc_csum.cpp │ ├── crc_csum.h │ ├── getbits.cpp │ ├── getbits.h │ ├── maketbl.cpp │ ├── maketbl.h │ ├── pfile.cpp │ ├── pfile.h │ ├── tables.cpp │ ├── tables.h │ ├── u_deep.cpp │ ├── u_deep.h │ ├── u_heavy.cpp │ ├── u_heavy.h │ ├── u_init.cpp │ ├── u_init.h │ ├── u_medium.cpp │ ├── u_medium.h │ ├── u_quick.cpp │ ├── u_quick.h │ ├── u_rle.cpp │ └── u_rle.h ├── lha │ ├── crcio.cpp │ ├── dhuf.cpp │ ├── header.cpp │ ├── huf.cpp │ ├── larc.cpp │ ├── lha.h │ ├── lha_macro.h │ ├── lhamaketbl.cpp │ ├── lharc.cpp │ ├── shuf.cpp │ ├── slide.cpp │ ├── uae_lha.cpp │ └── util.cpp ├── lzx │ └── unlzx.cpp ├── mp2 │ ├── kjmp2.cpp │ └── kjmp2.h ├── wrp │ ├── warp.cpp │ └── warp.h ├── xfd │ ├── main.cpp │ ├── xfd.cpp │ └── xfdmaster.h └── zip │ ├── ioapi.cpp │ ├── ioapi.h │ ├── unzip.cpp │ ├── unzip.h │ ├── zip.cpp │ └── zip.h ├── audio.cpp ├── autoconf.cpp ├── blit.h ├── blitfunc.h ├── blitops.cpp ├── blitter.cpp ├── blkdev.cpp ├── blkdev_cdimage.cpp ├── bsdsocket.cpp ├── build68k.cpp ├── calc.cpp ├── catweasel.cpp ├── cd32_fmv.cpp ├── cd32_fmv_genlock.cpp ├── cdrom-handler.cpp ├── cdrom.cpp ├── cdtv.cpp ├── cdtvcr.cpp ├── cfgfile.cpp ├── cia.cpp ├── consolehook.cpp ├── core.cw4.cpp ├── cpuboard.cpp ├── cpummu.cpp ├── cpummu30.cpp ├── cpuopti.cpp ├── cputbl.h ├── crc32.cpp ├── custom.cpp ├── debug.cpp ├── def_icons.cpp ├── devices.cpp ├── disk.cpp ├── diskutil.cpp ├── dlopen.cpp ├── dongle.cpp ├── dosbox ├── callback.h ├── cmos.cpp ├── core_full.cpp ├── core_full │ ├── ea_lookup.h │ ├── load.h │ ├── loadwrite.h │ ├── op.h │ ├── optable.h │ ├── save.h │ ├── string.h │ └── support.h ├── core_normal.cpp ├── core_normal │ ├── helpers.h │ ├── prefix_0f.h │ ├── prefix_66.h │ ├── prefix_66_0f.h │ ├── prefix_none.h │ ├── string.h │ ├── support.h │ └── table_ea.h ├── core_simple.cpp ├── cpu.cpp ├── cpu.h ├── db_memory.cpp ├── dosbox.h ├── flags.cpp ├── fpu.cpp ├── fpu.h ├── fpu_instructions.h ├── fpu_instructions_x86.h ├── inout.h ├── instructions.h ├── keyboard.cpp ├── lazyflags.h ├── logging.h ├── mem.h ├── modrm.cpp ├── modrm.h ├── paging.cpp ├── paging.h ├── pic.cpp ├── pic.h ├── regs.h ├── setup.h ├── support.h ├── timer.cpp └── timer.h ├── drawing.cpp ├── driveclick.cpp ├── enforcer.cpp ├── epsonprinter.cpp ├── ersatz.cpp ├── ethernet.cpp ├── events.cpp ├── expansion.cpp ├── fake86_cpu.cpp ├── fdi2raw.cpp ├── filesys.asm ├── filesys.cpp ├── filesys.sh ├── filesys_bootrom.cpp ├── flashrom.cpp ├── fpp.cpp ├── fsdb.cpp ├── fsdb_unix.cpp ├── fsusage.cpp ├── gayle.cpp ├── genblitter.cpp ├── gencpu.cpp ├── gencpu.oli.cpp ├── gencpu_mini.cpp ├── gengenblitter.cpp ├── genlinetoscr.cpp ├── genp2c.cpp ├── gfxboard.cpp ├── gfxlib.cpp ├── gfxutil.cpp ├── gtkui.cpp ├── hardfile.cpp ├── hrtmon.rom.cpp ├── ide.cpp ├── idecontrollers.cpp ├── identify.cpp ├── include ├── a2065.h ├── a2091.h ├── akiko.h ├── amax.h ├── ar.h ├── arcadia.h ├── audio.h ├── autoconf.h ├── blitter.h ├── blkdev.h ├── bsdsocket.h ├── calc.h ├── catweasel.h ├── cd32_fmv.h ├── cdtv.h ├── cdtvcr.h ├── cia.h ├── clipboard.h ├── commpipe.h ├── consolehook.h ├── cpu_prefetch.h ├── cpuboard.h ├── cpummu.h ├── cpummu030.h ├── crc32.h ├── custom.h ├── debug.h ├── devices.h ├── disk.h ├── diskutil.h ├── dongle.h ├── drawing.h ├── driveclick.h ├── enforcer.h ├── epsonprinter.h ├── ersatz.h ├── ethernet.h ├── events.h ├── execio.h ├── execlib.h ├── fdi2raw.h ├── filesys.h ├── flashrom.h ├── fpp-ieee-be.h ├── fpp-unknown.h ├── fsdb.h ├── fsusage.h ├── gayle.h ├── genblitter.h ├── gensound.h ├── gfxboard.h ├── gfxfilter.h ├── gui.h ├── ide.h ├── idecontrollers.h ├── identify.h ├── inputdevice.h ├── inputrecord.h ├── isofs.h ├── isofs_api.h ├── keyboard.h ├── keybuf.h ├── luascript.h ├── mackbd.h ├── memory.h ├── mmu_common.h ├── moduleripper.h ├── native2amiga.h ├── native2amiga_api.h ├── ncr9x_scsi.h ├── ncr_scsi.h ├── newcpu.h ├── options.h ├── osemu.h ├── packed.h ├── parallel.h ├── pci.h ├── pci_hw.h ├── picasso96.h ├── readcpu.h ├── rommgr.h ├── rtgmodes.h ├── sampler.h ├── sana2.h ├── savestate.h ├── scp.h ├── scsi.h ├── scsidev.h ├── serial.h ├── sndboard.h ├── specialmonitors.h ├── statusline.h ├── sysdeps.h ├── tabletlibrary.h ├── traps.h ├── uae.h ├── uae │ ├── api.h │ ├── attributes.h │ ├── cdrom.h │ ├── dlopen.h │ ├── endian.h │ ├── inline.h │ ├── io.h │ ├── likely.h │ ├── log.h │ ├── mman.h │ ├── ppc.h │ ├── qemu.h │ ├── seh.h │ ├── slirp.h │ ├── string.h │ ├── time.h │ ├── types.h │ └── vm.h ├── uaeexe.h ├── uaeipc.h ├── uaenative.h ├── uaeresource.h ├── uaeserial.h ├── uni_common.h ├── unpacked.h ├── x86.h ├── xwin.h ├── zarchive.h └── zfile.h ├── inprec.cpp ├── inputdevice.cpp ├── inputevents.def ├── inputrecord.cpp ├── isofs.cpp ├── jit ├── codegen_x86.cpp ├── codegen_x86.h ├── compemu.h ├── compemu_fpp.cpp ├── compemu_midfunc_x86.cpp ├── compemu_midfunc_x86.h ├── compemu_prefs.cpp ├── compemu_raw_x86.cpp ├── compemu_support.cpp ├── compemu_support_codegen.cpp ├── exception_handler.cpp ├── flags_x86.h ├── gencomp.cpp └── readme.txt ├── keybuf.cpp ├── logging.cpp ├── luascript.cpp ├── main.cpp ├── mame ├── a2410.cpp ├── mameglue.h └── tm34010 │ ├── 34010dsm.c │ ├── 34010fld.c │ ├── 34010gfx.c │ ├── 34010ops.c │ ├── 34010ops.h │ ├── 34010tbl.c │ ├── dis34010.c │ ├── tms34010.cpp │ └── tms34010.h ├── memory.cpp ├── missing.cpp ├── mmakefile.src ├── moduleripper.cpp ├── native2amiga.cpp ├── ncr9x_scsi.cpp ├── ncr_scsi.cpp ├── newcpu.cpp ├── newcpu_common.cpp ├── nogui.cpp ├── od-aros ├── 7z │ ├── 7z.h │ ├── 7zCrc.h │ ├── 7zFile.h │ ├── 7zVersion.h │ ├── 7zalloc.h │ ├── 7zbuf.h │ ├── Alloc.h │ ├── aes.h │ ├── bcj2.h │ ├── bra.h │ ├── bwtsort.h │ ├── cpuarch.h │ ├── delta.h │ ├── huffenc.h │ ├── lzfind.h │ ├── lzfindmt.h │ ├── lzhash.h │ ├── lzma2dec.h │ ├── lzma2enc.h │ ├── lzma86.h │ ├── lzmadec.h │ ├── lzmaenc.h │ ├── lzmalib.h │ ├── mtcoder.h │ ├── ppmd.h │ ├── ppmd7.h │ ├── ppmd8.h │ ├── rotatedefs.h │ ├── sha256.h │ ├── sort.h │ ├── threads.h │ ├── types.h │ ├── xz.h │ ├── xzcrc64.h │ └── xzenc.h ├── Makefile ├── SDL_Config │ ├── Makefile │ ├── SDL_Config.cbp │ ├── SDL_Config.dev │ ├── SDL_config.c │ ├── SDL_config_auto_tests.h │ ├── SDL_config_cfg.h │ ├── SDL_config_cpp_interface.c │ ├── SDL_config_lib.h │ ├── SDL_config_multi_values.c │ ├── SDL_config_readnwrite.c │ ├── SDL_config_saving.c │ ├── SDL_config_types.h │ ├── SDL_config_utils.c │ ├── initest.c │ ├── malloc_allocator.h │ └── mmakefile.src ├── aros.cpp ├── aros.h ├── aros_filesys.cpp ├── aros_scaler.cpp ├── aros_uaenet.h ├── arosgfx.cpp ├── avioutput.cpp ├── cda_play.cpp ├── cda_play.h ├── docs │ └── ReadMe.txt ├── extensions.cpp ├── filesys.cpp ├── fsdb_aros.cpp ├── fsusage.cpp ├── gfx.h ├── gui │ ├── Makefile │ ├── combo.cpp │ ├── combo.h │ ├── cursor.cpp │ ├── cursor.h │ ├── fs.cpp │ ├── fs.h │ ├── gui_mui.h │ ├── images │ │ ├── README.txt │ │ ├── amigainfo.png │ │ ├── avioutput.png │ │ ├── chip.png │ │ ├── configfile.png │ │ ├── cpu.png │ │ ├── diskimage.png │ │ ├── drive.png │ │ ├── e.png │ │ ├── expansion.png │ │ ├── file.png │ │ ├── floppy35.png │ │ ├── folder.png │ │ ├── i.png │ │ ├── joystick.png │ │ ├── k.png │ │ ├── l.png │ │ ├── misc.png │ │ ├── move_dow.png │ │ ├── move_up.png │ │ ├── paths.png │ │ ├── port.png │ │ ├── quickstart.png │ │ ├── root.png │ │ ├── screen.png │ │ ├── sound.png │ │ └── winuae2.png │ ├── leftframe_class.cpp │ ├── mmakefile.src │ ├── mui_class.cpp │ ├── mui_class.h │ ├── mui_dialog.cpp │ ├── mui_dialog.h │ ├── mui_file_request.cpp │ ├── mui_head.cpp │ ├── mui_listview.cpp │ ├── mui_listview.h │ ├── mui_messagebox.cpp │ ├── mui_tree.cpp │ ├── mui_win.cpp │ ├── parse_fixed.pl │ └── png2c │ │ ├── INSTALL │ │ ├── LICENSE │ │ ├── Makefile │ │ ├── README │ │ ├── amigainfo.h │ │ ├── avioutput.h │ │ ├── chip.h │ │ ├── configfile.h │ │ ├── cpu.h │ │ ├── diskimage.h │ │ ├── drive.h │ │ ├── e.h │ │ ├── expansion.h │ │ ├── file.h │ │ ├── floppy35.h │ │ ├── folder.h │ │ ├── i.h │ │ ├── joystick.h │ │ ├── k.h │ │ ├── l.h │ │ ├── libpng-short-example.c │ │ ├── misc.h │ │ ├── mmakefile.src │ │ ├── move_dow.h │ │ ├── move_up.h │ │ ├── paths.h │ │ ├── png2c.c │ │ ├── port.h │ │ ├── quickstart.h │ │ ├── root.h │ │ ├── screen.h │ │ ├── simple.h │ │ ├── sound.h │ │ └── winuae2.h ├── hardfile_aros.cpp ├── hotkeys.h ├── icons │ ├── j-uae-drawer.info.src │ ├── j-uae-drawer.png │ ├── j-uae.info.src │ ├── j-uae.png │ └── mmakefile.src ├── include │ ├── direct3d.h │ ├── dxwrap.h │ ├── registry.h │ ├── resource.h │ ├── uae │ │ ├── uae.h │ │ └── uae_inputevents_def.h │ ├── win32gfx.h │ └── win32gui.h ├── joystick.cpp ├── keyboard.cpp ├── keyboard_aros.cpp ├── keymap.cpp ├── keymap.h ├── libfsemu │ └── video │ │ ├── video-buffer.c │ │ ├── video-common-sdl.c │ │ ├── video-common.c │ │ ├── video-driver-dummy.c │ │ ├── video-driver-sdl-software.c │ │ ├── video-driver-sdl.c │ │ └── video-init.c ├── libmpeg2 │ ├── .auto │ │ ├── config.guess │ │ ├── config.sub │ │ ├── depcomp │ │ ├── install-sh │ │ ├── ltmain.sh │ │ └── missing │ ├── AUTHORS │ ├── COPYING │ ├── ChangeLog │ ├── CodingStyle │ ├── INSTALL │ ├── Makefile.am │ ├── Makefile.in │ ├── NEWS │ ├── README │ ├── TODO │ ├── aclocal.m4 │ ├── aros │ │ └── config.h │ ├── bootstrap │ ├── configure │ ├── configure.ac │ ├── doc │ │ ├── .deps │ │ │ ├── sample1.Po │ │ │ ├── sample2.Po │ │ │ ├── sample3.Po │ │ │ ├── sample4.Po │ │ │ ├── sample5.Po │ │ │ └── sample6.Po │ │ ├── Makefile.am │ │ ├── Makefile.in │ │ ├── libmpeg2.txt │ │ ├── sample1.c │ │ ├── sample2.c │ │ ├── sample3.c │ │ ├── sample4.c │ │ ├── sample5.c │ │ └── sample6.c │ ├── include │ │ ├── Makefile.am │ │ ├── Makefile.in │ │ ├── alpha_asm.h │ │ ├── attributes.h │ │ ├── config.h.in │ │ ├── mmx.h │ │ ├── mpeg2.h │ │ ├── mpeg2convert.h │ │ ├── stamp-h1 │ │ ├── tendra.h │ │ ├── video_out.h │ │ └── vis.h │ ├── libmpeg2 │ │ ├── .deps │ │ │ └── motion_comp_arm_s.Plo │ │ ├── Makefile.am │ │ ├── Makefile.in │ │ ├── alloc.c │ │ ├── convert │ │ │ ├── Makefile.am │ │ │ ├── Makefile.in │ │ │ ├── convert_internal.h │ │ │ ├── libmpeg2convert.pc │ │ │ ├── libmpeg2convert.pc.in │ │ │ ├── rgb.c │ │ │ ├── rgb_mmx.c │ │ │ ├── rgb_vis.c │ │ │ └── uyvy.c │ │ ├── cpu_accel.c │ │ ├── cpu_state.c │ │ ├── decode.c │ │ ├── header.c │ │ ├── idct.c │ │ ├── idct_alpha.c │ │ ├── idct_altivec.c │ │ ├── idct_mmx.c │ │ ├── libmpeg2.pc │ │ ├── libmpeg2.pc.in │ │ ├── motion_comp.c │ │ ├── motion_comp_alpha.c │ │ ├── motion_comp_altivec.c │ │ ├── motion_comp_arm.c │ │ ├── motion_comp_arm_s.S │ │ ├── motion_comp_mmx.c │ │ ├── motion_comp_vis.c │ │ ├── mpeg2_internal.h │ │ ├── slice.c │ │ └── vlc.h │ ├── libvo │ │ ├── Makefile.am │ │ ├── Makefile.in │ │ ├── video_out.c │ │ ├── video_out_dx.c │ │ ├── video_out_null.c │ │ ├── video_out_pgm.c │ │ ├── video_out_sdl.c │ │ ├── video_out_x11.c │ │ └── vo_internal.h │ ├── m4 │ │ ├── cflags.m4 │ │ ├── inttypes.m4 │ │ ├── keywords.m4 │ │ └── nonpic.m4 │ ├── mmakefile.src │ ├── src │ │ ├── Makefile.am │ │ ├── Makefile.in │ │ ├── corrupt_mpeg2.c │ │ ├── dump_state.c │ │ ├── extract_mpeg2.1 │ │ ├── extract_mpeg2.c │ │ ├── getopt.c │ │ ├── getopt.h │ │ ├── gettimeofday.c │ │ ├── gettimeofday.h │ │ ├── mpeg2dec.1 │ │ └── mpeg2dec.c │ ├── test │ │ ├── Makefile.am │ │ ├── Makefile.in │ │ ├── README │ │ ├── compile │ │ ├── globals │ │ ├── regression │ │ ├── tek-525 │ │ ├── tek-625 │ │ └── tests │ └── vc++ │ │ ├── Makefile.am │ │ ├── Makefile.in │ │ ├── config.h │ │ ├── inttypes.h │ │ ├── libmpeg2.dsp │ │ ├── libmpeg2convert.dsp │ │ ├── libvo.dsp │ │ ├── mpeg2dec.dsp │ │ └── mpeg2dec.dsw ├── machdep │ ├── m68k.h │ ├── maccess.h │ └── rpt.h ├── main_aros.cpp ├── md-fpp.h ├── memory_aros.cpp ├── mman.cpp ├── mouse.cpp ├── mp3decoder.h ├── muigui.cpp ├── muigui.h ├── muigui_helper.cpp ├── nogui_aros.cpp ├── options.cpp ├── parse_gui.pl ├── parse_res.pl ├── parser.cpp ├── picasso96_aros.cpp ├── picasso96_aros.h ├── posixemu.cpp ├── registry.cpp ├── registry.h ├── rp.cpp ├── rp.h ├── sample1.cpp ├── scaler_more.cpp ├── screenshot.cpp ├── sdl_aros.h ├── sdlgfx-gl.cpp ├── sdlgfx.cpp ├── sdlgfx.h ├── sdlkeys_dik.cpp ├── sdlkeys_dik.h ├── serial.cpp ├── shm.cpp ├── sound.cpp ├── sound.h ├── stubs.cpp ├── stubs.h ├── sys │ ├── ipc.h │ ├── mman.h │ └── shm.h ├── sysconfig.h ├── target.h ├── tchar.h ├── test.cpp ├── thread.cpp ├── thread.h ├── threaddep │ └── thread.h ├── unicode.cpp ├── unrar.h ├── video.cpp ├── vm.cpp ├── winnt.h └── writelog.cpp ├── od-win32 ├── 7zplugin.cpp ├── ahidsound.h ├── ahidsound_dsonly.cpp ├── ahidsound_new.cpp ├── ahidsound_new.h ├── ahidsound_new2.cpp ├── ahidsound_unified.cpp ├── ahidsoundx_new.cpp ├── asm.cmd ├── avioutput.cpp ├── avioutput.h ├── blkdev_win32_aspi.cpp ├── blkdev_win32_ioctl.cpp ├── blkdev_win32_spti.cpp ├── bsdsock.cpp ├── build68k_msvc │ ├── build68k_msvc.vcproj │ ├── build68k_msvc.vcxproj │ └── build68k_msvc.vcxproj.filters ├── caps │ ├── CapsAPI.h │ ├── CapsLib.h │ ├── Comlib.h │ ├── Comtype.h │ ├── caps_win32.cpp │ └── caps_win32.h ├── cda_play.cpp ├── cda_play.h ├── clipboard_win32.cpp ├── clipboard_win32.h ├── clirun.cpp ├── cloanto │ ├── RetroPlatformGuestIPC.cpp │ ├── RetroPlatformGuestIPC.h │ ├── RetroPlatformIPC.h │ └── RetroPlatformIPC_doc_draft.txt ├── debug_win32.cpp ├── debug_win32.h ├── dinput.cpp ├── direct3d.cpp ├── direct3d.h ├── diskutil.cpp ├── diskutil.h ├── driveclick_win32.cpp ├── dxwrap.cpp ├── dxwrap.h ├── fdrawcmd.cpp ├── fsdb_mywin32.cpp ├── fsdb_win32.cpp ├── genblitter_msvc │ ├── genblitter_msvc.vcproj │ ├── genblitter_msvc.vcxproj │ └── genblitter_msvc.vcxproj.filters ├── gencomp_msvc │ ├── gencomp_msvc.vcproj │ ├── gencomp_msvc.vcxproj │ └── gencomp_msvc.vcxproj.filters ├── gencpu_msvc │ ├── gencpu_msvc.vcproj │ ├── gencpu_msvc.vcxproj │ └── gencpu_msvc.vcxproj.filters ├── genlinetoscr_msvc │ ├── genlinetoscr_msvc.vcproj │ ├── genlinetoscr_msvc.vcxproj │ └── genlinetoscr_msvc.vcxproj.filters ├── graphics │ ├── amiga_header.bmp │ ├── amiga_header_2013.bmp │ ├── amiga_welcome.bmp │ ├── amiga_welcome_2013.bmp │ ├── installer_icon.ico │ └── test_card.png ├── hardfile_win32.cpp ├── hq2x16.asm ├── hq2x32.asm ├── hq2x_d3d.cpp ├── hq2x_d3d.h ├── hq3x16.asm ├── hq3x32.asm ├── hq4x16.asm ├── hq4x32.asm ├── ioport.cpp ├── ioport.h ├── ipctester.cpp ├── keyboard_win32.cpp ├── lcd.cpp ├── lcd.h ├── machdep │ ├── m68k.h │ ├── maccess.h │ └── rpt.h ├── makeexe.cmd ├── md-fpp.h ├── midi.cpp ├── midi.h ├── midiin.cpp ├── mman.cpp ├── mp3decoder.cpp ├── mp3decoder.h ├── opengl.cpp ├── opengl.h ├── parser.cpp ├── parser.h ├── picasso96_win.cpp ├── picasso96_win.h ├── posixemu.cpp ├── posixemu.h ├── prowizard │ ├── prowizard.vcproj │ ├── prowizard.vcxproj │ └── prowizard.vcxproj.filters ├── registry.cpp ├── registry.h ├── resources │ ├── 35floppy.ico │ ├── Mycomp.ico │ ├── WinUAE_German.rc │ ├── amiga.png │ ├── amigainfo.ico │ ├── avioutput.ico │ ├── base floppy.png │ ├── chip.ico │ ├── configfile.ico │ ├── cpu.ico │ ├── diskimage.ico │ ├── drive.ico │ ├── drive_click.wav │ ├── drive_snatch.wav │ ├── drive_spin.wav │ ├── drive_spinnd.wav │ ├── drive_startup.wav │ ├── expansion.ico │ ├── file.ico │ ├── folder.ico │ ├── h_arrow.cur │ ├── icon3.ico │ ├── joystick.ico │ ├── lcd.bmp │ ├── misc.ico │ ├── move_dow.ico │ ├── move_up.ico │ ├── paths.ico │ ├── port.ico │ ├── quickstart.ico │ ├── resource.h │ ├── root.ico │ ├── screen.ico │ ├── sound.ico │ ├── winuae.exe.manifest │ ├── winuae.ico │ ├── winuae.rc │ ├── winuae64.exe.manifest │ ├── winuae9.exe.manifest │ ├── winuae_minimal.rc │ ├── winuae_old.rc │ └── xarcade-winuae.bmp ├── rp.cpp ├── rp.h ├── scaler.cpp ├── scaler2.cpp ├── scaler_more.cpp ├── screenshot.cpp ├── scsidef.h ├── serial_win32.cpp ├── sfhelper.cpp ├── soundcheck.cpp ├── sounddep │ ├── sound.cpp │ └── sound.h ├── srcrelease.cmd ├── statusline_win32.cpp ├── support.cpp ├── sysconfig.h ├── target.h ├── threaddep │ └── thread.h ├── tun.cpp ├── tun.h ├── tun_uae.h ├── uaeunp │ ├── uaeunp.vcproj │ ├── uaeunp.vcxproj │ └── uaeunp.vcxproj.filters ├── uaeunp_win32.cpp ├── unicode.cpp ├── unistd.h ├── unpackers │ ├── unpackers.vcxproj │ └── unpackers.vcxproj.filters ├── win32.cpp ├── win32.h ├── win32_decompress.cpp ├── win32_filesys.cpp ├── win32_nogui.cpp ├── win32_scaler.cpp ├── win32_uaenet.cpp ├── win32_uaenet.h ├── win32gfx.cpp ├── win32gfx.h ├── win32gui.cpp ├── win32gui.h ├── win32gui_extra.cpp ├── wintablet.h ├── winuae_msvc10 │ ├── winuae_msvc.sln │ ├── winuae_msvc.vcxproj │ └── winuae_msvc.vcxproj.filters ├── winuae_msvc11 │ ├── winuae.idc │ ├── winuae_msvc.sln │ ├── winuae_msvc.vcxproj │ └── winuae_msvc.vcxproj.filters ├── winuae_msvc14 │ ├── winuae_msvc.sln │ ├── winuae_msvc.vcxproj │ └── winuae_msvc.vcxproj.filters ├── winuaechangelog.txt ├── wix │ ├── Product.wxs │ ├── WixUI_FeatureTree_NL.wxs │ └── wix.wixproj └── writelog.cpp ├── p96_blit.cpp ├── pci.cpp ├── picasso96.cpp ├── ppc ├── pearpc │ ├── cpu │ │ ├── common.h │ │ ├── cpu.h │ │ ├── cpu_generic │ │ │ ├── ppc_alu.cpp │ │ │ ├── ppc_alu.h │ │ │ ├── ppc_cpu.cpp │ │ │ ├── ppc_cpu.h │ │ │ ├── ppc_dec.cpp │ │ │ ├── ppc_dec.h │ │ │ ├── ppc_exc.cpp │ │ │ ├── ppc_exc.h │ │ │ ├── ppc_fpu.cpp │ │ │ ├── ppc_fpu.h │ │ │ ├── ppc_mmu.cpp │ │ │ ├── ppc_mmu.h │ │ │ ├── ppc_opc.cpp │ │ │ ├── ppc_opc.h │ │ │ ├── ppc_tools.h │ │ │ ├── ppc_vec.cpp │ │ │ └── ppc_vec.h │ │ ├── debug.h │ │ └── mem.h │ ├── info.h │ ├── io │ │ └── io.h │ ├── pearpc_config.h │ ├── system │ │ ├── arch │ │ │ ├── generic │ │ │ │ ├── sysendian.h │ │ │ │ └── sysfeatures.h │ │ │ ├── sysendian.h │ │ │ ├── sysfeatures.h │ │ │ ├── x86 │ │ │ │ ├── sysendian.h │ │ │ │ ├── sysfeatures.h │ │ │ │ ├── sysvaccel.cc │ │ │ │ └── vaccel.S │ │ │ └── x86_64 │ │ │ │ ├── sysendian.h │ │ │ │ ├── sysfeatures.h │ │ │ │ └── sysvaccel.cc │ │ ├── systhread.h │ │ └── types.h │ ├── tools │ │ ├── debug.h │ │ ├── endianess.h │ │ └── snprintf.h │ ├── tracers.h │ └── uaeglue.cpp ├── ppc.cpp ├── ppcd.cpp └── ppcd.h ├── prowizard ├── include │ ├── extern.h │ ├── globals.h │ ├── ptktable.h │ ├── tuning.h │ └── vars.h ├── misc │ ├── misc.c │ └── testbag.c ├── prowiz.c └── rippers │ ├── AC1D_packer.c │ ├── AMOS-MusicBank.c │ ├── AMOS-PowerPackerBank.c │ ├── BP-Soundmonitor.c │ ├── BSI-FutureComposer.c │ ├── Bytekiller.c │ ├── ChipTracker.c │ ├── Crunchmania-Address.c │ ├── Crunchmania-Simple.c │ ├── DefjamCruncher32-pro.c │ ├── DigiBooster17.c │ ├── DigitalIllusion.c │ ├── DoubleAction.c │ ├── Dragpack100.c │ ├── Dragpack252.c │ ├── EurekaPacker.c │ ├── FC-M-Packer.c │ ├── FastTracker2.c │ ├── FuchsTracker.c │ ├── FutureComposer13.c │ ├── FutureComposer14.c │ ├── FuzzacPacker.c │ ├── GMC.c │ ├── GNUPacker12.c │ ├── GPMO.c │ ├── GnuPlayer.c │ ├── HQC2.c │ ├── HeatseekerMC10.c │ ├── HornetPacker.c │ ├── JamCracker.c │ ├── KefrensSoundMachine.c │ ├── MED-Octamed.c │ ├── MOD-compatible.c │ ├── MasterCruncher30-Address.c │ ├── MaxPacker12.c │ ├── MegaCruncher-Object.c │ ├── MegaCruncher.c │ ├── ModuleProtector.c │ ├── Mugician.c │ ├── NP3.c │ ├── Newtron.c │ ├── NewtronOld.c │ ├── NoiseFromHeaven.c │ ├── NoisePacker1.c │ ├── NoisePacker2.c │ ├── NoiseRunner.c │ ├── NovoTrade.c │ ├── PhaPacker.c │ ├── PolkaPacker.c │ ├── PowerMusic.c │ ├── PowerPacker23.c │ ├── PowerPacker30.c │ ├── PowerPacker40-library.c │ ├── PowerPacker40.c │ ├── ProPacker10.c │ ├── ProPacker21.c │ ├── ProPacker30.c │ ├── Promizer01.c │ ├── Promizer10c.c │ ├── Promizer18a.c │ ├── Promizer20.c │ ├── Promizer40.c │ ├── Prorunner10.c │ ├── Prorunner20.c │ ├── QuadraComposer.c │ ├── RelokIt10.c │ ├── SGT-Packer.c │ ├── SkytPacker.c │ ├── SoundFX.c │ ├── SoundTracker.c │ ├── SoundTracker26.c │ ├── SpikeCruncher.c │ ├── StartrekkerPack.c │ ├── StimPacker.c │ ├── StoneArtsPlayer.c │ ├── StoneCracker270.c │ ├── StoneCracker299.c │ ├── StoneCracker299b.c │ ├── StoneCracker299d.c │ ├── StoneCracker300.c │ ├── StoneCracker310.c │ ├── SuperCruncher27.c │ ├── SyncroPacker46.c │ ├── TMK.c │ ├── TNMCruncher.c │ ├── TetraPack102.c │ ├── TetraPack21.c │ ├── TetraPack22.c │ ├── TheDarkDemon.c │ ├── ThePlayer22a.c │ ├── ThePlayer30a.c │ ├── ThePlayer40.c │ ├── ThePlayer41a.c │ ├── ThePlayer50a.c │ ├── ThePlayer60a.c │ ├── ThePlayer61a.c │ ├── TimeCruncher17.c │ ├── TitanicsPlayer.c │ ├── TrackerPacker1.c │ ├── TrackerPacker2.c │ ├── TrackerPacker3.c │ ├── TreasurePattern.c │ ├── TryItCruncher101.c │ ├── TurboSqueezer61.c │ ├── UnicTracker.c │ ├── UnicTracker2.c │ ├── Viruz2.c │ ├── WantonPacker.c │ ├── XannPlayer.c │ ├── ZenPacker.c │ ├── datacrunchers.c │ └── skizzo.c ├── qemuvga ├── cirrus_vga.cpp ├── cirrus_vga_rop.h ├── cirrus_vga_rop2.h ├── cirrus_vga_template.h ├── es1370.cpp ├── esp.cpp ├── lsi53c710.cpp ├── lsi53c895a.cpp ├── ne2000.cpp ├── ne2000.h ├── pixel_ops.h ├── qemu.cpp ├── qemuaudio.h ├── qemumemory.h ├── qemuuaeglue.cpp ├── qemuuaeglue.h ├── queue.h ├── scsi │ ├── esp.h │ └── scsi.h ├── vga.cpp ├── vga.h ├── vga_int.h └── vga_template.h ├── readcpu.cpp ├── readdisk.cpp ├── rommgr.cpp ├── rpc.cpp ├── sampler.cpp ├── sana2.cpp ├── savestate.cpp ├── scp.cpp ├── scsi.cpp ├── scsidev.cpp ├── scsiemul.cpp ├── scsitape.cpp ├── serial.cpp ├── sinctable.cpp ├── slirp ├── COPYRIGHT ├── bootp.cpp ├── bootp.h ├── cksum.cpp ├── ctl.h ├── debug.h ├── icmp_var.h ├── if.cpp ├── if.h ├── ip.h ├── ip_icmp.cpp ├── ip_icmp.h ├── ip_input.cpp ├── ip_output.cpp ├── libslirp.h ├── main.h ├── mbuf.cpp ├── mbuf.h ├── misc.cpp ├── misc.h ├── sbuf.cpp ├── sbuf.h ├── slirp.cpp ├── slirp.h ├── slirp_config.h ├── slirpdebug.cpp ├── socket.cpp ├── socket.h ├── tcp.h ├── tcp_input.cpp ├── tcp_output.cpp ├── tcp_subr.cpp ├── tcp_timer.cpp ├── tcp_timer.h ├── tcp_var.h ├── tcpip.h ├── tftp.cpp ├── tftp.h ├── udp.cpp └── udp.h ├── slirp_uae.cpp ├── sndboard.cpp ├── specialmonitors.cpp ├── statusline.cpp ├── support └── time.cpp ├── table68k ├── tabletlibrary.cpp ├── test_card.cpp ├── traps.cpp ├── uaeexe.cpp ├── uaeipc.cpp ├── uaelib.cpp ├── uaenative.cpp ├── uaeresource.cpp ├── uaeserial.cpp ├── uaeunp.cpp ├── unix_missing.cpp ├── unix_missing2.cpp ├── vm.cpp ├── writelog.cpp ├── x86.cpp ├── zfile.cpp └── zfile_archive.cpp /J-UAE.info.src: -------------------------------------------------------------------------------- 1 | TYPE = DRAWER 2 | -------------------------------------------------------------------------------- /J-UAE.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BlitterStudio/janus-uae/4e579335c43b26e54573f954464c1e849ec8a90d/J-UAE.png -------------------------------------------------------------------------------- /amiga/Makefile: -------------------------------------------------------------------------------- 1 | #===================================== 2 | # simple Makefile for janusd and clipd 3 | # 4 | # (c) Oliver Brunner 2009 5 | # 6 | # $Id$ 7 | # 8 | # You may want to change the TARGETDIR 9 | # to the path, where you keep your 10 | # amigaOS installation tree. 11 | #===================================== 12 | 13 | CC = m68k-amigaos-gcc 14 | 15 | TARGETDIR = /home/oli/svn/aros/AROS/bin/linux-i386/AROS/m68k/ 16 | 17 | FLAGS = -Wall 18 | CDEFS = 19 | #CDEFS = -DDEBUG 20 | INCLUDES = 21 | DEBUGFLAGS= 22 | LD_FLAGS = -noixemul 23 | 24 | CFLAGS = $(CDEFS) $(DEBUGFLAGS) $(FLAGS) $(INCLUDES) 25 | 26 | JOBJS = janus-daemon.o sync-mouse.o patch.o sync-windows.o sync-screens.o public-screen.o lock-window.o messages.o debug.o 27 | COBJS = clip-daemon.o debug.o 28 | LOBJS = launch-daemon.o debug.o 29 | 30 | all: janusd clipd launchd 31 | 32 | janusd: $(JOBJS) 33 | $(CC) $(LD_FLAGS) $(JOBJS) -o janusd -lauto #-lc -lamiga -lauto 34 | cp janusd $(TARGETDIR) 35 | 36 | clipd: $(COBJS) 37 | $(CC) $(LD_FLAGS) $(COBJS) -o clipd 38 | cp clipd $(TARGETDIR) 39 | 40 | launchd: $(LOBJS) 41 | $(CC) $(LD_FLAGS) $(LOBJS) -o launchd 42 | cp launchd $(TARGETDIR) 43 | 44 | clean: 45 | @rm -f $(JOBJS) $(COBJS) janusd clipd 46 | 47 | %.o: %.c janus-daemon.h clip-daemon.h 48 | $(CC) $(CFLAGS) -o $@ -c $*.c 49 | 50 | -------------------------------------------------------------------------------- /amiga/include/README.txt: -------------------------------------------------------------------------------- 1 | The old aminet WBStart archive contained includes, which did not work 2 | well with gcc. These includes are taken from fd2inline-bin.lha, 3 | which you can also find on aminet. 4 | 5 | o1i 6 | -------------------------------------------------------------------------------- /amiga/include/inline/wbstart.h: -------------------------------------------------------------------------------- 1 | /* Automatically generated header! Do not edit! */ 2 | 3 | #ifndef _INLINE_WBSTART_H 4 | #define _INLINE_WBSTART_H 5 | 6 | #ifndef __INLINE_MACROS_H 7 | #include 8 | #endif /* !__INLINE_MACROS_H */ 9 | 10 | #ifndef WBSTART_BASE_NAME 11 | #define WBSTART_BASE_NAME WBStartBase 12 | #endif /* !WBSTART_BASE_NAME */ 13 | 14 | #define WBStartTagList(tags) \ 15 | LP1(0x24, LONG, WBStartTagList, struct TagItem *, tags, a0, \ 16 | , WBSTART_BASE_NAME) 17 | 18 | #ifndef NO_INLINE_STDARG 19 | #define WBStartTags(tags...) \ 20 | ({ULONG _tags[] = { tags }; WBStartTagList((struct TagItem *)_tags);}) 21 | #endif /* !NO_INLINE_STDARG */ 22 | 23 | #endif /* !_INLINE_WBSTART_H */ 24 | -------------------------------------------------------------------------------- /amiga/include/pragmas/wbstart_pragmas.h: -------------------------------------------------------------------------------- 1 | /* Automatically generated header! Do not edit! */ 2 | 3 | #ifndef _INLINE_WBSTART_H 4 | #include 5 | #endif /* !_INLINE_WBSTART_H */ 6 | -------------------------------------------------------------------------------- /amiga/include/proto/wbstart.h: -------------------------------------------------------------------------------- 1 | /* Automatically generated header! Do not edit! */ 2 | 3 | #ifndef PROTO_WBSTART_H 4 | #define PROTO_WBSTART_H 5 | 6 | #include 7 | 8 | #ifdef __GNUC__ 9 | #include 10 | #endif /* __GNUC__ */ 11 | 12 | #ifndef __NOLIBBASE__ 13 | extern struct Library * 14 | #ifdef __CONSTLIBBASEDECL__ 15 | __CONSTLIBBASEDECL__ 16 | #endif /* __CONSTLIBBASEDECL__ */ 17 | WBStartBase; 18 | #endif /* !__NOLIBBASE__ */ 19 | 20 | #endif /* !PROTO_WBSTART_H */ 21 | -------------------------------------------------------------------------------- /amiga/mmakefile.src: -------------------------------------------------------------------------------- 1 | # $Id$ 2 | 3 | # m68k daemons to communicate with the host 4 | 5 | include $(TOP)/config/make.cfg 6 | 7 | ##MM- local-juae : local-juae-m68k 8 | #MM- local-juae-m68k : local-juae-m68k-janusd local-juae-m68k-launchd local-juae-m68k-clipd 9 | #MM- local-juae-m68k-janusd : local-juae-m68k-janusd-bin 10 | #MM- local-juae-m68k-launchd : local-juae-m68k-launchd-bin 11 | #MM- local-juae-m68k-clipd : local-juae-m68k-clipd-bin 12 | 13 | JANUSM68KDIR := $(AROS_CONTRIB)/Emu/J-UAE/m68k 14 | JANUSM68KELFDIR := $(GENDIR)/$(CURDIR)/m68k 15 | 16 | JANUSDSRCS := janus-daemon sync-mouse patch sync-windows sync-screens public-screen lock-window messages debug 17 | 18 | ##%build_prog mmake=local-juae-m68k-janusd-bin \ 19 | ## progname=janusd targetdir=$(JANUSM68KELFDIR) files="$(JANUSDSRCS)" \ 20 | ## detach=yes 21 | 22 | ##%build_prog mmake=local-juae-m68k-launchd-bin \ 23 | ## progname=launchd targetdir=$(JANUSM68KELFDIR) files="launch-daemon debug" \ 24 | ## detach=yes 25 | 26 | ##%build_prog mmake=local-juae-m68k-clipd-bin \ 27 | ## progname=clipd targetdir=$(JANUSM68KELFDIR) files="clip-daemon debug" \ 28 | ## detach=yes 29 | 30 | ## @$(ECHO) "Converting $(subst $(TARGETDIR)/,,$(AROSDIR)) -> $(subst $(TARGETDIR)/,,$(AROSDIR).HUNK)" 31 | ## @$(ELF2HUNK) "$(JANUSM68KELFDIR)" "$(JANUSM68KDIR)" -------------------------------------------------------------------------------- /amiga/old/Makefile.gcc: -------------------------------------------------------------------------------- 1 | #!/usr/bin/make -f 2 | # Makefile to build UAE amiga tools with GCC 3 | 4 | CC = gcc 5 | CFLAGS = -O2 -noixemul -fomit-frame-pointer -msmall-code -fbaserel 6 | LDFLAGS = $(CFLAGS) -s 7 | 8 | timehack: timehack.o 9 | 10 | uae_rcli: uae_rcli.o 11 | 12 | clean: 13 | -rm timehack timehack.o 14 | -------------------------------------------------------------------------------- /amiga/old/mhint.asm: -------------------------------------------------------------------------------- 1 | SECTION code 2 | xdef _mousehackint 3 | _mousehackint: 4 | moveq.l #1,d0 5 | jsr.l $F0FF70 6 | move.l d0,d1 7 | moveq.l #2,d0 8 | jsr.l $F0FF70 9 | cmp.l (a1),d1 10 | bne l1 11 | cmp.l 4(a1),d0 12 | beq l2 13 | l1: 14 | move.l d0,4(a1) 15 | move.l d1,(a1) 16 | move.l 8(a1),d0 17 | move.l 12(a1),a1 18 | move.l 4.w,a6 19 | jsr -324(a6) ; Signal 20 | l2: 21 | lea $DFF000,a0 22 | moveq.l #0,d0 23 | rts 24 | 25 | END 26 | -------------------------------------------------------------------------------- /amiga/old/transrom.c: -------------------------------------------------------------------------------- 1 | /* 2 | * Transrom V4.1 3 | * Copyright 1995,1996 Bernd Schmidt, Marcus Sundberg, Stefan Ropke, 4 | * Rodney Hester 5 | * 6 | * Use DICE and 2.0 includes or above to compile 7 | */ 8 | 9 | #include 10 | 11 | int main(int argc, char **argv) 12 | { 13 | int l; 14 | 15 | if (l=OpenLibrary("exec.library",35L)) /* Not sure about V35 */ 16 | { 17 | fprintf(stderr,"Writing 512K Kickstart image...\n"); 18 | fflush(stderr); 19 | fwrite((char *)0xF80000,sizeof(char),0x80000,stdout); 20 | CloseLibrary(l); 21 | } 22 | else 23 | { 24 | fprintf(stderr,"Writing 256K Kickstart image...\n"); 25 | fflush(stderr); 26 | fwrite((char *)0xF80000,sizeof(char),0x40000,stdout); 27 | } 28 | return 0; 29 | } 30 | -------------------------------------------------------------------------------- /amiga/old/uae-configuration.c: -------------------------------------------------------------------------------- 1 | 2 | #define __NOLIBBASE__ 3 | #include 4 | #include 5 | 6 | #define OUTBUFSIZE 1000 7 | 8 | long (*UaeConf) (...); 9 | 10 | struct Library *SysBase; 11 | struct Library *DOSBase; 12 | 13 | char outbuf[OUTBUFSIZE+1]; 14 | 15 | __saveds long start (register __a0 param,register __d0 paramlen) 16 | { 17 | long rc = 20; 18 | long index; 19 | BPTR out; 20 | char *s; 21 | BOOL brk = FALSE; 22 | 23 | UaeConf = (void *) 0xf0ff60; 24 | 25 | SysBase = *((struct Library **)4); 26 | 27 | if (DOSBase = OpenLibrary ("dos.library",0)) 28 | { 29 | out = Output(); 30 | 31 | if (*((ULONG *)UaeConf)) 32 | { 33 | index = -1; 34 | 35 | do { 36 | outbuf[0] = 0; 37 | rc = UaeConf (82,index,param,paramlen,outbuf,OUTBUFSIZE); 38 | 39 | if (outbuf[0] && out) 40 | { 41 | for (s = outbuf; *s; s++); 42 | *s++ = '\n'; 43 | Write (out,outbuf,s - outbuf); 44 | } 45 | 46 | index++; 47 | if (SetSignal(0,0) & SIGBREAKF_CTRL_C) 48 | brk = TRUE; 49 | } while (!brk && rc < 0); 50 | 51 | if (brk && out) 52 | { 53 | Write (out,"*** Break\n",10); 54 | rc = 10; 55 | } 56 | 57 | } 58 | else 59 | if (out) 60 | Write (out,"Your version of WinUAE is too old\n",34); 61 | 62 | CloseLibrary (DOSBase); 63 | } 64 | 65 | return (rc); 66 | } 67 | -------------------------------------------------------------------------------- /amiga/old/uae-configuration.s: -------------------------------------------------------------------------------- 1 | 2 | ; uae-configuration Amiga-side part 3 | ; (c) Toni Wilen 2004 4 | 5 | OUTBUFSIZE = 1000 6 | 7 | move.l a0,a3 8 | move.l d0,d3 9 | sub.l a4,a4 10 | moveq #20,d7 11 | 12 | lea $f0ff60,a5 13 | tst.l (a5) 14 | beq.s end 15 | 16 | move.l 4,a6 17 | lea dos(pc),a1 18 | moveq #0,d0 19 | jsr -$228(a6) ;OpenLibrary 20 | tst.l d0 21 | beq.s end 22 | move.l d0,a4 23 | move.l a4,a6 24 | 25 | moveq #-1,d6 26 | 27 | loop 28 | lea outbuf,a2 29 | move.l #OUTBUFSIZE,-(sp) ;out len 30 | move.l a2,-(sp) ;out 31 | clr.b (a2) 32 | move.l d3,-(sp) ;param len 33 | move.l a3,-(sp) ;param 34 | move.l d6,-(sp) ;index 35 | moveq #82,d0 36 | move.l d0,-(sp) 37 | jsr (a5) 38 | lea 6*4(sp),sp 39 | move.l d0,d7 40 | 41 | ; do we have output? 42 | move.l d3,-(sp) 43 | tst.b (a2) 44 | beq.s noout 45 | jsr -$003c(a6) ;Output 46 | move.l d0,d4 47 | beq.s noout 48 | move.l d4,d1 49 | move.l a2,d2 50 | moveq #-1,d3 51 | out1 52 | addq.l #1,d3 53 | tst.b (a2)+ 54 | bne.s out1 55 | jsr -$0030(a6) ; Write 56 | move.l d4,d1 57 | lea lf(pc),a0 58 | move.l a0,d2 59 | moveq #1,d3 60 | jsr -$0030(a6) ; Write 61 | noout 62 | move.l (sp)+,d3 63 | 64 | 65 | tst.l d7 66 | bpl.s end 67 | ; list all -mode 68 | addq.l #1,d6 69 | bra loop 70 | end 71 | move.l a4,d0 72 | beq.s end2 73 | move.l d0,a1 74 | move.l 4,a6 75 | jsr -$19e(a6) ;CloseLibrary 76 | end2 77 | move.l d7,d0 78 | rts 79 | 80 | dos dc.b "dos.library",0 81 | lf dc.b 10 82 | 83 | section 2,bss 84 | 85 | outbuf 86 | ds.b OUTBUFSIZE 87 | -------------------------------------------------------------------------------- /amiga/old/uae-control.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BlitterStudio/janus-uae/4e579335c43b26e54573f954464c1e849ec8a90d/amiga/old/uae-control.c -------------------------------------------------------------------------------- /aros/Makefile: -------------------------------------------------------------------------------- 1 | #===================================== 2 | # simple Makefile for amirun 3 | # 4 | # (c) Oliver Brunner 2010 5 | # 6 | # $Id$ 7 | # 8 | # You may want to change the TARGETDIR 9 | # to the path, where you keep your 10 | # aros installation tree. 11 | #===================================== 12 | 13 | CC = i686-aros-gcc 14 | 15 | TARGETDIR = /home/oli/svn/aros/AROS/bin/linux-i386/AROS/C/ 16 | 17 | FLAGS = -Wall 18 | #CDEFS = 19 | CDEFS = -DDEBUG 20 | INCLUDES = 21 | DEBUGFLAGS= 22 | LD_FLAGS = 23 | 24 | CFLAGS = $(CDEFS) $(DEBUGFLAGS) $(FLAGS) $(INCLUDES) 25 | 26 | OBJS = amirun.o 27 | 28 | all: amirun 29 | 30 | amirun: $(OBJS) 31 | $(CC) $(LD_FLAGS) $(OBJS) -o amirun 32 | cp amirun $(TARGETDIR) 33 | 34 | clean: 35 | @rm -f $(OBJS) amirun 36 | 37 | #janus-daemon.h clip-daemon.h 38 | %.o: %.c 39 | $(CC) $(CFLAGS) -o $@ -c $*.c 40 | 41 | -------------------------------------------------------------------------------- /aros/mmakefile.src: -------------------------------------------------------------------------------- 1 | # $Id$ 2 | 3 | include $(TOP)/config/make.cfg 4 | 5 | #MM- local-juae : local-juae-amirun 6 | 7 | USER_CFLAGS := -Wno-unused-but-set-variable 8 | 9 | %build_prog mmake=local-juae-amirun \ 10 | progname=amirun targetdir=$(AROS_CONTRIB)/Emu/J-UAE/C files=amirun \ 11 | detach=yes 12 | -------------------------------------------------------------------------------- /docs/ChangeLog.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BlitterStudio/janus-uae/4e579335c43b26e54573f954464c1e849ec8a90d/docs/ChangeLog.txt -------------------------------------------------------------------------------- /mmakefile.src: -------------------------------------------------------------------------------- 1 | # $Id$ 2 | 3 | include $(TOP)/config/make.cfg 4 | 5 | #MM- local-juae : local-juae-copyfiles local-juae-icons-drawer 6 | 7 | %build_icons mmake=local-juae-icons-drawer icons="J-UAE" \ 8 | dir=$(AROS_CONTRIB)/Emu 9 | 10 | %copy_dir_recursive mmake=local-juae-copyfiles src=$(SRCDIR)/$(CURDIR)/files/. dst=$(AROS_CONTRIB)/Emu/J-UAE/ 11 | -------------------------------------------------------------------------------- /src/ChangeLog: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BlitterStudio/janus-uae/4e579335c43b26e54573f954464c1e849ec8a90d/src/ChangeLog -------------------------------------------------------------------------------- /src/adide.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | * UAE - The Un*x Amiga Emulator 3 | * 4 | * ADIDE 5 | * 6 | * (c) 2009 Toni Wilen 7 | */ 8 | 9 | #include "sysconfig.h" 10 | #include "sysdeps.h" 11 | 12 | #include "options.h" 13 | #include "gayle.h" 14 | 15 | static struct ide_hdf *idedrive[2]; 16 | 17 | int adide_add_ide_unit (int ch, TCHAR *path, int blocksize, int readonly, 18 | TCHAR *devname, int sectors, int surfaces, int reserved, 19 | int bootpri, TCHAR *filesys) 20 | { 21 | struct ide_hdf *ide; 22 | 23 | if (ch >= 2) 24 | return -1; 25 | alloc_ide_mem (); 26 | ide = idedrive[ch]; 27 | if (!hdf_hd_open (&ide->hdhfd, path, blocksize, readonly, devname, sectors, surfaces, reserved, bootpri, filesys)) 28 | return -1; 29 | ide->lba48 = ide->hdhfd.size >= 128 * (uae_u64)0x40000000 ? 1 : 0; 30 | write_log (_T("IDE%d '%s', CHS=%d,%d,%d. %uM. LBA48=%d\n"), 31 | ch, path, ide->hdhfd.cyls, ide->hdhfd.heads, ide->hdhfd.secspertrack, (int)(ide->hdhfd.size / (1024 * 1024)), ide->lba48); 32 | ide->status = 0; 33 | ide->data_offset = 0; 34 | ide->data_size = 0; 35 | //dumphdf (&ide->hdhfd.hfd); 36 | return 1; 37 | } 38 | -------------------------------------------------------------------------------- /src/archivers/chd/chdcd.h: -------------------------------------------------------------------------------- 1 | /*************************************************************************** 2 | 3 | CDRDAO TOC parser for CHD compression frontend 4 | 5 | Copyright Nicola Salmoria and the MAME Team. 6 | Visit http://mamedev.org for licensing and usage restrictions. 7 | 8 | ***************************************************************************/ 9 | 10 | #pragma once 11 | 12 | #ifndef __CHDCD_H__ 13 | #define __CHDCD_H__ 14 | 15 | #include "chdcdrom.h" 16 | 17 | struct chdcd_track_input_entry 18 | { 19 | chdcd_track_input_entry() { reset(); } 20 | void reset() { fname.reset(); offset = idx0offs = idx1offs = 0; swap = false; } 21 | 22 | astring fname; // filename for each track 23 | UINT32 offset; // offset in the data file for each track 24 | bool swap; // data needs to be byte swapped 25 | UINT32 idx0offs; 26 | UINT32 idx1offs; 27 | }; 28 | 29 | struct chdcd_track_input_info 30 | { 31 | void reset() { for (int i = 0; i < CD_MAX_TRACKS; i++) track[i].reset(); } 32 | 33 | chdcd_track_input_entry track[CD_MAX_TRACKS]; 34 | }; 35 | 36 | 37 | chd_error chdcd_parse_toc(const TCHAR *tocfname, cdrom_toc &outtoc, chdcd_track_input_info &outinfo); 38 | 39 | #endif /* __CHDCD_H__ */ 40 | -------------------------------------------------------------------------------- /src/archivers/chd/harddisk.h: -------------------------------------------------------------------------------- 1 | // license:BSD-3-Clause 2 | // copyright-holders:Aaron Giles 3 | /*************************************************************************** 4 | 5 | harddisk.h 6 | 7 | Generic MAME hard disk implementation, with differencing files 8 | 9 | ***************************************************************************/ 10 | 11 | #pragma once 12 | 13 | #ifndef __HARDDISK_H__ 14 | #define __HARDDISK_H__ 15 | 16 | #include "osdcore.h" 17 | #include "chd.h" 18 | 19 | 20 | /*************************************************************************** 21 | TYPE DEFINITIONS 22 | ***************************************************************************/ 23 | 24 | struct hard_disk_file; 25 | 26 | struct hard_disk_info 27 | { 28 | UINT32 cylinders; 29 | UINT32 heads; 30 | UINT32 sectors; 31 | UINT32 sectorbytes; 32 | }; 33 | 34 | 35 | 36 | /*************************************************************************** 37 | FUNCTION PROTOTYPES 38 | ***************************************************************************/ 39 | 40 | hard_disk_file *hard_disk_open(chd_file *chd); 41 | void hard_disk_close(hard_disk_file *file); 42 | 43 | chd_file *hard_disk_get_chd(hard_disk_file *file); 44 | hard_disk_info *hard_disk_get_info(hard_disk_file *file); 45 | 46 | UINT32 hard_disk_read(hard_disk_file *file, UINT32 lbasector, void *buffer); 47 | UINT32 hard_disk_write(hard_disk_file *file, UINT32 lbasector, const void *buffer); 48 | 49 | #endif /* __HARDDISK_H__ */ 50 | -------------------------------------------------------------------------------- /src/archivers/chd/md5.h: -------------------------------------------------------------------------------- 1 | /* 2 | * This is the header file for the MD5 message-digest algorithm. 3 | * The algorithm is due to Ron Rivest. This code was 4 | * written by Colin Plumb in 1993, no copyright is claimed. 5 | * This code is in the public domain; do with it what you wish. 6 | * 7 | * Equivalent code is available from RSA Data Security, Inc. 8 | * This code has been tested against that, and is equivalent, 9 | * except that you don't need to include two pages of legalese 10 | * with every copy. 11 | * 12 | * To compute the message digest of a chunk of bytes, declare an 13 | * MD5Context structure, pass it to MD5Init, call MD5Update as 14 | * needed on buffers full of bytes, and then call MD5Final, which 15 | * will fill a supplied 16-byte array with the digest. 16 | * 17 | * Changed so as no longer to depend on Colin Plumb's `usual.h' 18 | * header definitions; now uses stuff from dpkg's config.h 19 | * - Ian Jackson . 20 | * Still in the public domain. 21 | */ 22 | 23 | #ifndef MD5_H 24 | #define MD5_H 25 | 26 | typedef unsigned int UWORD32; 27 | 28 | #define md5byte unsigned char 29 | 30 | struct MD5Context { 31 | UWORD32 buf[4]; 32 | UWORD32 bytes[2]; 33 | UWORD32 in[16]; 34 | }; 35 | 36 | void MD5Init(struct MD5Context *context); 37 | void MD5Update(struct MD5Context *context, md5byte const *buf, unsigned len); 38 | void MD5Final(unsigned char digest[16], struct MD5Context *context); 39 | void MD5Transform(UWORD32 buf[4], UWORD32 const in[16]); 40 | 41 | #endif /* !MD5_H */ 42 | -------------------------------------------------------------------------------- /src/archivers/chd/osinline.h: -------------------------------------------------------------------------------- 1 | // license:BSD-3-Clause 2 | // copyright-holders:Aaron Giles 3 | //============================================================ 4 | // 5 | // osinline.h 6 | // 7 | // Inline implementations for non-GCC Win32 compilers 8 | // 9 | //============================================================ 10 | 11 | #ifndef __OSINLINE__ 12 | #define __OSINLINE__ 13 | 14 | #if defined(_MSC_VER) && (defined(_M_IX86) || defined(_M_X64)) 15 | #include "eivcx86.h" 16 | #endif 17 | 18 | #if defined(_MSC_VER) 19 | #include "eivc.h" 20 | #endif 21 | 22 | INT32 win_compare_exchange32(INT32 volatile *ptr, INT32 compare, INT32 exchange); 23 | INT32 win_atomic_exchange32(INT32 volatile *ptr, INT32 exchange); 24 | INT32 win_atomic_add32(INT32 volatile *ptr, INT32 delta); 25 | 26 | #ifdef PTR64 27 | INT64 win_compare_exchange64(INT64 volatile *ptr, INT64 compare, INT64 exchange); 28 | #endif 29 | 30 | 31 | #ifndef compare_exchange32 32 | #define compare_exchange32 win_compare_exchange32 33 | #endif /* compare_exchange32 */ 34 | 35 | #ifdef PTR64 36 | #ifndef compare_exchange64 37 | #define compare_exchange64 win_compare_exchange64 38 | #endif /* compare_exchange64 */ 39 | #endif 40 | 41 | #ifndef atomic_exchange32 42 | #define atomic_exchange32 win_atomic_exchange32 43 | #endif /* atomic_exchange32 */ 44 | 45 | 46 | #ifndef atomic_add32 47 | #define atomic_add32 win_atomic_add32 48 | #endif /* atomic_add32 */ 49 | 50 | 51 | #endif /* __OSINLINE__ */ 52 | -------------------------------------------------------------------------------- /src/archivers/chd/windows/osinline.h: -------------------------------------------------------------------------------- 1 | // license:BSD-3-Clause 2 | // copyright-holders:Aaron Giles 3 | //============================================================ 4 | // 5 | // osinline.h 6 | // 7 | // Inline implementations for non-GCC Win32 compilers 8 | // 9 | //============================================================ 10 | 11 | #ifndef __OSINLINE__ 12 | #define __OSINLINE__ 13 | 14 | #if 0 15 | #if defined(_MSC_VER) && (defined(_M_IX86) || defined(_M_X64)) 16 | #include "eivcx86.h" 17 | #endif 18 | #endif 19 | 20 | #if defined(_MSC_VER) 21 | #include "eivc.h" 22 | #endif 23 | 24 | INT32 win_compare_exchange32(INT32 volatile *ptr, INT32 compare, INT32 exchange); 25 | INT32 win_atomic_exchange32(INT32 volatile *ptr, INT32 exchange); 26 | INT32 win_atomic_add32(INT32 volatile *ptr, INT32 delta); 27 | 28 | #ifdef PTR64 29 | INT64 win_compare_exchange64(INT64 volatile *ptr, INT64 compare, INT64 exchange); 30 | #endif 31 | 32 | 33 | #ifndef compare_exchange32 34 | #define compare_exchange32 win_compare_exchange32 35 | #endif /* compare_exchange32 */ 36 | 37 | #ifdef PTR64 38 | #ifndef compare_exchange64 39 | #define compare_exchange64 win_compare_exchange64 40 | #endif /* compare_exchange64 */ 41 | #endif 42 | 43 | #ifndef atomic_exchange32 44 | #define atomic_exchange32 win_atomic_exchange32 45 | #endif /* atomic_exchange32 */ 46 | 47 | 48 | #ifndef atomic_add32 49 | #define atomic_add32 win_atomic_add32 50 | #endif /* atomic_add32 */ 51 | 52 | 53 | #endif /* __OSINLINE__ */ 54 | -------------------------------------------------------------------------------- /src/archivers/dms/cdata.h: -------------------------------------------------------------------------------- 1 | 2 | /* 3 | * xDMS v1.3 - Portable DMS archive unpacker - Public Domain 4 | * Written by Andre Rodrigues de la Rocha 5 | * 6 | * Main types of variables used in xDMS, some implementation 7 | * dependant features and other global stuff 8 | */ 9 | 10 | 11 | #ifndef UCHAR 12 | #define UCHAR unsigned char 13 | #endif 14 | 15 | #ifndef USHORT 16 | #define USHORT unsigned short 17 | #endif 18 | 19 | #ifndef SHORT 20 | #define SHORT short 21 | #endif 22 | 23 | #ifndef ULONG 24 | #define ULONG unsigned long 25 | #endif 26 | 27 | 28 | 29 | #ifndef INLINE 30 | #ifdef __cplusplus 31 | #define INLINE inline 32 | #else 33 | #ifdef __GNUC__ 34 | #define INLINE inline 35 | #else 36 | #ifdef __SASC 37 | #define INLINE __inline 38 | #else 39 | #define INLINE static 40 | #endif 41 | #endif 42 | #endif 43 | #endif 44 | 45 | 46 | #ifndef UNDER_DOS 47 | #ifdef __MSDOS__ 48 | #define UNDER_DOS 49 | #else 50 | #ifdef __MSDOS 51 | #define UNDER_DOS 52 | #else 53 | #ifdef _OS2 54 | #define UNDER_DOS 55 | #else 56 | #ifdef _QC 57 | #define UNDER_DOS 58 | #endif 59 | #endif 60 | #endif 61 | #endif 62 | #endif 63 | 64 | 65 | #ifndef DIR_CHAR 66 | #ifdef UNDER_DOS 67 | /* running under MSDOS or DOS-like OS */ 68 | #define DIR_CHAR '\\' 69 | #else 70 | #define DIR_CHAR '/' 71 | #endif 72 | #endif 73 | 74 | 75 | #define DIR_SEPARATORS ":\\/" 76 | 77 | 78 | extern UCHAR *dms_text; 79 | extern USHORT dms_lastlen, dms_np; 80 | 81 | -------------------------------------------------------------------------------- /src/archivers/dms/crc_csum.h: -------------------------------------------------------------------------------- 1 | 2 | USHORT dms_Calc_CheckSum(UCHAR *, ULONG); 3 | USHORT dms_CreateCRC(UCHAR *, ULONG); 4 | 5 | -------------------------------------------------------------------------------- /src/archivers/dms/getbits.cpp: -------------------------------------------------------------------------------- 1 | 2 | /* 3 | * xDMS v1.3 - Portable DMS archive unpacker - Public Domain 4 | * Written by Andre Rodrigues de la Rocha 5 | * Functions/macros to get a variable number of bits 6 | * 7 | */ 8 | 9 | #include "cdata.h" 10 | #include "getbits.h" 11 | 12 | 13 | ULONG dms_mask_bits[]={ 14 | 0x000000L,0x000001L,0x000003L,0x000007L,0x00000fL,0x00001fL, 15 | 0x00003fL,0x00007fL,0x0000ffL,0x0001ffL,0x0003ffL,0x0007ffL, 16 | 0x000fffL,0x001fffL,0x003fffL,0x007fffL,0x00ffffL,0x01ffffL, 17 | 0x03ffffL,0x07ffffL,0x0fffffL,0x1fffffL,0x3fffffL,0x7fffffL, 18 | 0xffffffL 19 | }; 20 | 21 | 22 | UCHAR *dms_indata, dms_bitcount; 23 | ULONG dms_bitbuf; 24 | 25 | 26 | 27 | void initbitbuf(UCHAR *in){ 28 | dms_bitbuf = 0; 29 | dms_bitcount = 0; 30 | dms_indata = in; 31 | DROPBITS(0); 32 | } 33 | 34 | 35 | -------------------------------------------------------------------------------- /src/archivers/dms/getbits.h: -------------------------------------------------------------------------------- 1 | 2 | extern ULONG dms_mask_bits[], dms_bitbuf; 3 | extern UCHAR *dms_indata, dms_bitcount; 4 | 5 | #define GETBITS(n) ((USHORT)(dms_bitbuf >> (dms_bitcount-(n)))) 6 | #define DROPBITS(n) {dms_bitbuf &= dms_mask_bits[dms_bitcount-=(n)]; while (dms_bitcount<16) {dms_bitbuf = (dms_bitbuf << 8) | *dms_indata++; dms_bitcount += 8;}} 7 | 8 | 9 | void initbitbuf(UCHAR *); 10 | 11 | -------------------------------------------------------------------------------- /src/archivers/dms/maketbl.h: -------------------------------------------------------------------------------- 1 | 2 | extern USHORT dms_left[], dms_right[]; 3 | 4 | USHORT dms_make_table(USHORT nchar, UCHAR bitlen[], USHORT tablebits, USHORT table[]); 5 | 6 | -------------------------------------------------------------------------------- /src/archivers/dms/pfile.h: -------------------------------------------------------------------------------- 1 | 2 | 3 | /* Functions return codes */ 4 | #define NO_PROBLEM 0 5 | #define DMS_FILE_END 1 6 | #define ERR_NOMEMORY 2 7 | #define ERR_CANTOPENIN 3 8 | #define ERR_CANTOPENOUT 4 9 | #define ERR_NOTDMS 5 10 | #define ERR_SREAD 6 11 | #define ERR_HCRC 7 12 | #define ERR_NOTTRACK 8 13 | #define ERR_BIGTRACK 9 14 | #define ERR_THCRC 10 15 | #define ERR_TDCRC 11 16 | #define ERR_CSUM 12 17 | #define ERR_CANTWRITE 13 18 | #define ERR_BADDECR 14 19 | #define ERR_UNKNMODE 15 20 | #define ERR_NOPASSWD 16 21 | #define ERR_BADPASSWD 17 22 | #define ERR_FMS 18 23 | #define ERR_GZIP 19 24 | #define ERR_READDISK 20 25 | 26 | 27 | /* Command to execute */ 28 | #define CMD_VIEW 1 29 | #define CMD_VIEWFULL 2 30 | #define CMD_SHOWDIZ 3 31 | #define CMD_SHOWBANNER 4 32 | #define CMD_TEST 5 33 | #define CMD_UNPACK 6 34 | #define CMD_UNPKGZ 7 35 | #define CMD_EXTRACT 8 36 | 37 | 38 | #define OPT_VERBOSE 1 39 | #define OPT_QUIET 2 40 | 41 | #define DMS_EXTRA_SIZE 10 42 | 43 | USHORT DMS_Process_File(struct zfile *, struct zfile *, USHORT, USHORT, USHORT, USHORT, int, struct zfile **extra); 44 | 45 | -------------------------------------------------------------------------------- /src/archivers/dms/tables.h: -------------------------------------------------------------------------------- 1 | 2 | extern UCHAR d_code[], d_len[]; 3 | 4 | -------------------------------------------------------------------------------- /src/archivers/dms/u_deep.h: -------------------------------------------------------------------------------- 1 | 2 | 3 | USHORT Unpack_DEEP(UCHAR *, UCHAR *, USHORT); 4 | 5 | extern int dms_init_deep_tabs; 6 | extern USHORT dms_deep_text_loc; 7 | 8 | -------------------------------------------------------------------------------- /src/archivers/dms/u_heavy.h: -------------------------------------------------------------------------------- 1 | 2 | 3 | USHORT Unpack_HEAVY(UCHAR *, UCHAR *, UCHAR, USHORT); 4 | 5 | extern USHORT dms_heavy_text_loc; 6 | 7 | -------------------------------------------------------------------------------- /src/archivers/dms/u_init.cpp: -------------------------------------------------------------------------------- 1 | 2 | /* 3 | * xDMS v1.3 - Portable DMS archive unpacker - Public Domain 4 | * Written by Andre Rodrigues de la Rocha 5 | * 6 | * Decruncher reinitialization 7 | * 8 | */ 9 | 10 | #include 11 | 12 | #include "cdata.h" 13 | #include "u_init.h" 14 | #include "u_quick.h" 15 | #include "u_medium.h" 16 | #include "u_deep.h" 17 | #include "u_heavy.h" 18 | 19 | void Init_Decrunchers(void){ 20 | dms_quick_text_loc = 251; 21 | dms_medium_text_loc = 0x3fbe; 22 | dms_heavy_text_loc = 0; 23 | dms_deep_text_loc = 0x3fc4; 24 | dms_init_deep_tabs = 1; 25 | memset(dms_text,0,0x3fc8); 26 | dms_lastlen = 0; 27 | dms_np = 0; 28 | } 29 | 30 | -------------------------------------------------------------------------------- /src/archivers/dms/u_init.h: -------------------------------------------------------------------------------- 1 | 2 | void Init_Decrunchers(void); 3 | 4 | -------------------------------------------------------------------------------- /src/archivers/dms/u_medium.cpp: -------------------------------------------------------------------------------- 1 | 2 | /* 3 | * xDMS v1.3 - Portable DMS archive unpacker - Public Domain 4 | * Written by Andre Rodrigues de la Rocha 5 | * 6 | * Main decompression functions used in MEDIUM mode 7 | * 8 | */ 9 | 10 | 11 | #include 12 | 13 | #include "cdata.h" 14 | #include "u_medium.h" 15 | #include "getbits.h" 16 | #include "tables.h" 17 | 18 | 19 | #define MBITMASK 0x3fff 20 | 21 | 22 | USHORT dms_medium_text_loc; 23 | 24 | 25 | 26 | USHORT Unpack_MEDIUM(UCHAR *in, UCHAR *out, USHORT origsize){ 27 | USHORT i, j, c; 28 | UCHAR u, *outend; 29 | 30 | 31 | initbitbuf(in); 32 | 33 | outend = out+origsize; 34 | while (out < outend) { 35 | if (GETBITS(1)!=0) { 36 | DROPBITS(1); 37 | *out++ = dms_text[dms_medium_text_loc++ & MBITMASK] = (UCHAR)GETBITS(8); 38 | DROPBITS(8); 39 | } else { 40 | DROPBITS(1); 41 | c = GETBITS(8); DROPBITS(8); 42 | j = (USHORT) (d_code[c]+3); 43 | u = d_len[c]; 44 | c = (USHORT) (((c << u) | GETBITS(u)) & 0xff); DROPBITS(u); 45 | u = d_len[c]; 46 | c = (USHORT) ((d_code[c] << 8) | (((c << u) | GETBITS(u)) & 0xff)); DROPBITS(u); 47 | i = (USHORT) (dms_medium_text_loc - c - 1); 48 | 49 | while(j--) *out++ = dms_text[dms_medium_text_loc++ & MBITMASK] = dms_text[i++ & MBITMASK]; 50 | 51 | } 52 | } 53 | dms_medium_text_loc = (USHORT)((dms_medium_text_loc+66) & MBITMASK); 54 | 55 | return 0; 56 | } 57 | 58 | 59 | -------------------------------------------------------------------------------- /src/archivers/dms/u_medium.h: -------------------------------------------------------------------------------- 1 | 2 | USHORT Unpack_MEDIUM(UCHAR *, UCHAR *, USHORT); 3 | 4 | extern USHORT dms_medium_text_loc; 5 | 6 | -------------------------------------------------------------------------------- /src/archivers/dms/u_quick.cpp: -------------------------------------------------------------------------------- 1 | 2 | /* 3 | * xDMS v1.3 - Portable DMS archive unpacker - Public Domain 4 | * Written by Andre Rodrigues de la Rocha 5 | * 6 | * 7 | */ 8 | 9 | 10 | #include 11 | 12 | #include "cdata.h" 13 | #include "u_quick.h" 14 | #include "getbits.h" 15 | 16 | 17 | #define QBITMASK 0xff 18 | 19 | 20 | USHORT dms_quick_text_loc; 21 | 22 | 23 | USHORT Unpack_QUICK(UCHAR *in, UCHAR *out, USHORT origsize){ 24 | USHORT i, j; 25 | UCHAR *outend; 26 | 27 | initbitbuf(in); 28 | 29 | outend = out+origsize; 30 | while (out < outend) { 31 | if (GETBITS(1)!=0) { 32 | DROPBITS(1); 33 | *out++ = dms_text[dms_quick_text_loc++ & QBITMASK] = (UCHAR)GETBITS(8); DROPBITS(8); 34 | } else { 35 | DROPBITS(1); 36 | j = (USHORT) (GETBITS(2)+2); DROPBITS(2); 37 | i = (USHORT) (dms_quick_text_loc - GETBITS(8) - 1); DROPBITS(8); 38 | while(j--) { 39 | *out++ = dms_text[dms_quick_text_loc++ & QBITMASK] = dms_text[i++ & QBITMASK]; 40 | } 41 | } 42 | } 43 | dms_quick_text_loc = (USHORT)((dms_quick_text_loc+5) & QBITMASK); 44 | 45 | return 0; 46 | } 47 | 48 | -------------------------------------------------------------------------------- /src/archivers/dms/u_quick.h: -------------------------------------------------------------------------------- 1 | 2 | USHORT Unpack_QUICK(UCHAR *, UCHAR *, USHORT); 3 | 4 | extern USHORT dms_quick_text_loc; 5 | 6 | -------------------------------------------------------------------------------- /src/archivers/dms/u_rle.cpp: -------------------------------------------------------------------------------- 1 | 2 | /* 3 | * xDMS v1.3 - Portable DMS archive unpacker - Public Domain 4 | * Written by Andre Rodrigues de la Rocha 5 | * 6 | * Run Length Encoding decompression function used in most 7 | * modes after decompression by other algorithm 8 | * 9 | */ 10 | 11 | #include 12 | #include "cdata.h" 13 | #include "u_rle.h" 14 | 15 | 16 | 17 | USHORT Unpack_RLE(UCHAR *in, UCHAR *out, USHORT origsize){ 18 | USHORT n; 19 | UCHAR a,b, *outend; 20 | 21 | outend = out+origsize; 22 | while (out outend) return 1; 35 | memset(out,a,(size_t) n); 36 | out += n; 37 | } 38 | } 39 | return 0; 40 | } 41 | 42 | 43 | -------------------------------------------------------------------------------- /src/archivers/dms/u_rle.h: -------------------------------------------------------------------------------- 1 | 2 | USHORT Unpack_RLE(UCHAR *, UCHAR *, USHORT); 3 | 4 | -------------------------------------------------------------------------------- /src/archivers/lha/slide.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BlitterStudio/janus-uae/4e579335c43b26e54573f954464c1e849ec8a90d/src/archivers/lha/slide.cpp -------------------------------------------------------------------------------- /src/archivers/wrp/warp.h: -------------------------------------------------------------------------------- 1 | 2 | extern struct zfile *unwarp(struct zfile*); 3 | -------------------------------------------------------------------------------- /src/archivers/xfd/main.cpp: -------------------------------------------------------------------------------- 1 | 2 | 3 | #include 4 | 5 | void *xmalloc(int v) 6 | { 7 | return malloc(v); 8 | } 9 | 10 | void *zfile_fopen(const char *name, const char *mode) 11 | { 12 | return fopen(name, mode); 13 | } 14 | void zfile_fclose(void *z) 15 | { 16 | fclose(z); 17 | } 18 | -------------------------------------------------------------------------------- /src/archivers/xfd/xfdmaster.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BlitterStudio/janus-uae/4e579335c43b26e54573f954464c1e849ec8a90d/src/archivers/xfd/xfdmaster.h -------------------------------------------------------------------------------- /src/dosbox/core_full/loadwrite.h: -------------------------------------------------------------------------------- 1 | #define SaveIP() reg_eip=(Bit32u)(inst.cseip-SegBase(cs)); 2 | #define LoadIP() inst.cseip=SegBase(cs)+reg_eip; 3 | #define GetIP() (inst.cseip-SegBase(cs)) 4 | 5 | #define RunException() { \ 6 | CPU_Exception(cpu.exception.which,cpu.exception.error); \ 7 | continue; \ 8 | } 9 | 10 | static INLINE Bit8u the_Fetchb(EAPoint & loc) { 11 | Bit8u temp=LoadMb(loc); 12 | loc+=1; 13 | return temp; 14 | } 15 | 16 | static INLINE Bit16u the_Fetchw(EAPoint & loc) { 17 | Bit16u temp=LoadMw(loc); 18 | loc+=2; 19 | return temp; 20 | } 21 | static INLINE Bit32u the_Fetchd(EAPoint & loc) { 22 | Bit32u temp=LoadMd(loc); 23 | loc+=4; 24 | return temp; 25 | } 26 | 27 | #define Fetchb() the_Fetchb(inst.cseip) 28 | #define Fetchw() the_Fetchw(inst.cseip) 29 | #define Fetchd() the_Fetchd(inst.cseip) 30 | 31 | #define Fetchbs() (Bit8s)the_Fetchb(inst.cseip) 32 | #define Fetchws() (Bit16s)the_Fetchw(inst.cseip) 33 | #define Fetchds() (Bit32s)the_Fetchd(inst.cseip) 34 | 35 | #define Push_16 CPU_Push16 36 | #define Push_32 CPU_Push32 37 | #define Pop_16 CPU_Pop16 38 | #define Pop_32 CPU_Pop32 39 | 40 | -------------------------------------------------------------------------------- /src/dosbox/timer.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2002-2010 The DOSBox Team 3 | * 4 | * This program is free software; you can redistribute it and/or modify 5 | * it under the terms of the GNU General Public License as published by 6 | * the Free Software Foundation; either version 2 of the License, or 7 | * (at your option) any later version. 8 | * 9 | * This program is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU General Public License 15 | * along with this program; if not, write to the Free Software 16 | * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 17 | */ 18 | 19 | #ifndef DOSBOX_TIMER_H 20 | #define DOSBOX_TIMER_H 21 | 22 | /* underlying clock rate in HZ */ 23 | //#include 24 | 25 | #define PIT_TICK_RATE 1193182 26 | 27 | //#define GetTicks() SDL_GetTicks() 28 | 29 | typedef void (*TIMER_TickHandler)(void); 30 | 31 | /* Register a function that gets called everytime if 1 or more ticks pass */ 32 | void TIMER_AddTickHandler(TIMER_TickHandler handler); 33 | void TIMER_DelTickHandler(TIMER_TickHandler handler); 34 | 35 | /* This will add 1 milliscond to all timers */ 36 | void TIMER_AddTick(void); 37 | 38 | #endif 39 | -------------------------------------------------------------------------------- /src/filesys.sh: -------------------------------------------------------------------------------- 1 | #! /bin/sh 2 | # Script to convert an Amiga executable named filesys into a series of 3 | # dw(...) statements. 4 | # This assumes that the first four lines only contain hunk information. 5 | # That is what you get if you assemble/link with a68k/blink 6 | od -v -t xC -w8 filesys |tail -n +5 | sed -e "s,^.......,," \ 7 | -e "s,[0123456789abcdefABCDEF][0123456789abcdefABCDEF],db(0x&);,g" 8 | -------------------------------------------------------------------------------- /src/include/a2065.h: -------------------------------------------------------------------------------- 1 | #ifndef UAE_A2065_H 2 | #define UAE_A2065_H 3 | 4 | #ifdef A2065 5 | 6 | extern addrbank *a2065_init (int); 7 | extern void a2065_free (void); 8 | extern void a2065_reset (void); 9 | extern void a2065_hsync_handler (void); 10 | 11 | extern void rethink_a2065 (void); 12 | 13 | #endif 14 | 15 | #endif /* UAE_A2065_H */ 16 | -------------------------------------------------------------------------------- /src/include/akiko.h: -------------------------------------------------------------------------------- 1 | #ifndef UAE_AKIKO_H 2 | #define UAE_AKIKO_H 3 | 4 | #define AKIKO_BASE 0xb80000 5 | #define AKIKO_BASE_END 0xb80100 /* ?? */ 6 | 7 | extern void akiko_reset (void); 8 | extern int akiko_init (void); 9 | extern void akiko_free (void); 10 | 11 | extern void AKIKO_hsync_handler (void); 12 | extern void akiko_mute (int); 13 | 14 | extern void rethink_akiko (void); 15 | 16 | #endif /* UAE_AKIKO_H */ 17 | -------------------------------------------------------------------------------- /src/include/amax.h: -------------------------------------------------------------------------------- 1 | #ifndef UAE_AMAX_H 2 | #define UAE_AMAX_H 3 | 4 | #include "uae/types.h" 5 | 6 | void amax_diskwrite (uae_u16 w); 7 | void amax_bfe001_write (uae_u8 pra, uae_u8 dra); 8 | uae_u8 amax_disk_status (uae_u8); 9 | void amax_disk_select (uae_u8 v, uae_u8 ov, int); 10 | void amax_reset (void); 11 | void amax_init (void); 12 | bool amax_active(void); 13 | 14 | #endif /* UAE_AMAX_H */ 15 | -------------------------------------------------------------------------------- /src/include/arcadia.h: -------------------------------------------------------------------------------- 1 | #ifndef UAE_ARCADIA_H 2 | #define UAE_ARCADIA_H 3 | 4 | #ifdef ARCADIA 5 | 6 | extern void arcadia_init (void); 7 | extern int is_arcadia_rom (const TCHAR *path); 8 | extern int arcadia_map_banks (void); 9 | extern void arcadia_unmap (void); 10 | extern void arcadia_vsync (void); 11 | extern void arcadia_reset (void); 12 | extern uae_u8 arcadia_parport (int port, uae_u8 pra, uae_u8 dra); 13 | extern struct romdata *scan_arcadia_rom (TCHAR*, int); 14 | 15 | struct arcadiarom { 16 | int romid; 17 | const TCHAR *name, *romid1, *romid2; 18 | int type, extra; 19 | int b7, b6, b5, b4, b3, b2, b1, b0; 20 | const TCHAR *ext; 21 | const TCHAR *exts[24 + 1]; 22 | }; 23 | 24 | extern struct arcadiarom *arcadia_bios, *arcadia_game; 25 | extern int arcadia_flag, arcadia_coin[2]; 26 | 27 | #define NO_ARCADIA_ROM 0 28 | #define ARCADIA_BIOS 1 29 | #define ARCADIA_GAME 2 30 | 31 | #endif /* ARCADIA */ 32 | 33 | #endif /* UAE_ARCADIA_H */ 34 | -------------------------------------------------------------------------------- /src/include/calc.h: -------------------------------------------------------------------------------- 1 | #ifndef UAE_CALC_H 2 | #define UAE_CALC_H 3 | 4 | #include "uae/types.h" 5 | 6 | extern bool calc(const TCHAR *input, double *outval); 7 | extern bool iscalcformula (const TCHAR *formula); 8 | 9 | #endif /* UAE_CALC_H */ 10 | -------------------------------------------------------------------------------- /src/include/cd32_fmv.h: -------------------------------------------------------------------------------- 1 | #ifndef UAE_CD32_FMV_H 2 | #define UAE_CD32_FMV_H 3 | 4 | #include "uae/types.h" 5 | 6 | extern addrbank *cd32_fmv_init (uaecptr); 7 | extern void cd32_fmv_reset(void); 8 | extern void cd32_fmv_free(void); 9 | extern void rethink_cd32fmv(void); 10 | extern void cd32_fmv_hsync_handler(void); 11 | extern void cd32_fmv_vsync_handler(void); 12 | 13 | extern void cd32_fmv_state(int state); 14 | extern void cd32_fmv_new_image(int, int, int, uae_u8*); 15 | extern void cd32_fmv_genlock(struct vidbuffer*, struct vidbuffer*); 16 | extern void cd32_fmv_new_border_color(uae_u32); 17 | extern void cd32_fmv_set_sync(double svpos, double adjust); 18 | 19 | extern int cd32_fmv_active; 20 | 21 | #endif /* UAE_CD32_FMV_H */ 22 | -------------------------------------------------------------------------------- /src/include/cdtv.h: -------------------------------------------------------------------------------- 1 | #ifndef UAE_CDTV_H 2 | #define UAE_CDTV_H 3 | 4 | #include "uae/types.h" 5 | 6 | #ifdef CDTV 7 | 8 | extern addrbank dmac_bank; 9 | 10 | extern addrbank *cdtv_init (struct romconfig *rc); 11 | extern void cdtv_free (void); 12 | extern void CDTV_hsync_handler(void); 13 | extern void cdtv_check_banks (void); 14 | 15 | void cdtv_battram_write (int addr, int v); 16 | uae_u8 cdtv_battram_read (int addr); 17 | 18 | extern void cdtv_loadcardmem (uae_u8*, int); 19 | extern void cdtv_savecardmem (uae_u8*, int); 20 | 21 | extern void cdtv_add_scsi_unit (int ch, struct uaedev_config_info *ci, struct romconfig *rc); 22 | 23 | 24 | extern void cdtv_getdmadata (uae_u32*); 25 | 26 | extern void rethink_cdtv (void); 27 | extern void cdtv_scsi_int (void); 28 | extern void cdtv_scsi_clear_int (void); 29 | 30 | extern bool cdtv_front_panel (int); 31 | 32 | #endif /* CDTV */ 33 | 34 | #endif /* UAE_CDTV_H */ 35 | -------------------------------------------------------------------------------- /src/include/cdtvcr.h: -------------------------------------------------------------------------------- 1 | #ifndef UAE_CDTVCR_H 2 | #define UAE_CDTVCR_H 3 | 4 | void cdtvcr_reset(void); 5 | void cdtvcr_free(void); 6 | void rethink_cdtvcr(void); 7 | 8 | extern void CDTVCR_hsync_handler(void); 9 | 10 | #endif /* UAE_CDTVCR_H */ 11 | -------------------------------------------------------------------------------- /src/include/cia.h: -------------------------------------------------------------------------------- 1 | /* 2 | * UAE - The Un*x Amiga Emulator 3 | * 4 | * CIA chip support 5 | * 6 | * (c) 1995 Bernd Schmidt 7 | */ 8 | 9 | #ifndef UAE_CIA_H 10 | #define UAE_CIA_H 11 | 12 | #include "uae/types.h" 13 | 14 | extern void CIA_reset (void); 15 | extern void CIA_vsync_prehandler (void); 16 | extern void CIA_hsync_prehandler (void); 17 | extern void CIA_hsync_posthandler (bool); 18 | extern void CIA_handler (void); 19 | extern void CIAA_tod_inc (int); 20 | extern void CIAB_tod_handler (int); 21 | 22 | extern void diskindex_handler (void); 23 | extern void cia_parallelack (void); 24 | extern void cia_diskindex (void); 25 | 26 | extern void dumpcia (void); 27 | extern void rethink_cias (void); 28 | extern int resetwarning_do (int); 29 | extern void cia_set_overlay (bool); 30 | void cia_heartbeat (void); 31 | 32 | extern int parallel_direct_write_data (uae_u8, uae_u8); 33 | extern int parallel_direct_read_data (uae_u8*); 34 | extern int parallel_direct_write_status (uae_u8, uae_u8); 35 | extern int parallel_direct_read_status (uae_u8*); 36 | 37 | extern void rtc_hardreset (void); 38 | 39 | #endif /* UAE_CIA_H */ 40 | -------------------------------------------------------------------------------- /src/include/clipboard.h: -------------------------------------------------------------------------------- 1 | #ifndef UAE_CLIPBOARD_H 2 | #define UAE_CLIPBOARD_H 3 | 4 | #include "uae/types.h" 5 | 6 | extern int amiga_clipboard_want_data (void); 7 | extern void amiga_clipboard_got_data (uaecptr data, uae_u32 size, uae_u32 actual); 8 | extern void amiga_clipboard_die (void); 9 | extern void amiga_clipboard_init (void); 10 | extern uaecptr amiga_clipboard_proc_start (void); 11 | extern void amiga_clipboard_task_start (uaecptr); 12 | extern void clipboard_disable (bool); 13 | extern void clipboard_vsync (void); 14 | 15 | #endif /* UAE_CLIPBOARD_H */ 16 | -------------------------------------------------------------------------------- /src/include/consolehook.h: -------------------------------------------------------------------------------- 1 | #ifndef UAE_CONSOLEHOOK_H 2 | #define UAE_CONSOLEHOOK_H 3 | 4 | #include "uae/types.h" 5 | 6 | int consolehook_activate (void); 7 | void consolehook_ret (uaecptr condev, uaecptr oldbeginio); 8 | uaecptr consolehook_beginio (uaecptr request); 9 | void consolehook_config (struct uae_prefs *p); 10 | 11 | #endif /* UAE_CONSOLEHOOK_H */ 12 | -------------------------------------------------------------------------------- /src/include/crc32.h: -------------------------------------------------------------------------------- 1 | #ifndef UAE_CRC32_H 2 | #define UAE_CRC32_H 3 | 4 | #include "uae/types.h" 5 | 6 | extern uae_u32 get_crc32 (void *p, int size); 7 | extern uae_u16 get_crc16 (void *p, int size); 8 | extern uae_u32 get_crc32_val (uae_u8 v, uae_u32 crc); 9 | extern void get_sha1 (void *p, int size, void *out); 10 | extern const TCHAR *get_sha1_txt (void *p, int size); 11 | #define SHA1_SIZE 20 12 | 13 | #endif /* UAE_CRC32_H */ 14 | -------------------------------------------------------------------------------- /src/include/devices.h: -------------------------------------------------------------------------------- 1 | #ifndef UAE_DEVICES_H 2 | #define UAE_DEVICES_H 3 | 4 | void devices_reset(int hardreset); 5 | void devices_vsync_pre(void); 6 | void devices_vsync_post(void); 7 | void devices_hsync(void); 8 | void devices_rethink(void); 9 | void devices_syncchange(void); 10 | void devices_update_sound(double clk, double syncadjust); 11 | void devices_update_sync(double svpos, double syncadjust); 12 | void reset_all_systems(void); 13 | void do_leave_program(void); 14 | void virtualdevice_init(void); 15 | void devices_restore_start(void); 16 | 17 | #endif /* UAE_DEVICES_H */ 18 | -------------------------------------------------------------------------------- /src/include/diskutil.h: -------------------------------------------------------------------------------- 1 | #ifndef UAE_DISKUTIL_H 2 | #define UAE_DISKUTIL_H 3 | 4 | #include "uae/types.h" 5 | 6 | int isamigatrack (uae_u16 *amigamfmbuffer, uae_u8 *mfmdata, int len, uae_u8 *writebuffer, uae_u8 *writebuffer_ok, int track, int *outsize); 7 | int ispctrack (uae_u16 *amigamfmbuffer, uae_u8 *mfmdata, int len, uae_u8 *writebuffer, uae_u8 *writebuffer_ok, int track, int *outsize); 8 | 9 | #endif /* UAE_DISKUTIL_H */ 10 | -------------------------------------------------------------------------------- /src/include/dongle.h: -------------------------------------------------------------------------------- 1 | #ifndef UAE_DONGLE_H 2 | #define UAE_DONGLE_H 3 | 4 | #include "uae/types.h" 5 | 6 | extern void dongle_reset (void); 7 | extern uae_u8 dongle_cia_read (int, int, uae_u8); 8 | extern void dongle_cia_write (int, int, uae_u8); 9 | extern void dongle_joytest (uae_u16); 10 | extern uae_u16 dongle_joydat (int, uae_u16); 11 | extern void dongle_potgo (uae_u16); 12 | extern uae_u16 dongle_potgor (uae_u16); 13 | extern int dongle_analogjoy (int, int); 14 | 15 | #endif /* UAE_DONGLE_H */ 16 | -------------------------------------------------------------------------------- /src/include/enforcer.h: -------------------------------------------------------------------------------- 1 | #ifndef UAE_ENFORCER_H 2 | #define UAE_ENFORCER_H 3 | 4 | int enforcer_enable(int); 5 | int enforcer_disable(void); 6 | 7 | extern int enforcermode; 8 | 9 | #endif /* UAE_ENFORCER_H */ 10 | -------------------------------------------------------------------------------- /src/include/ersatz.h: -------------------------------------------------------------------------------- 1 | /* 2 | * UAE - The Un*x Amiga Emulator 3 | * 4 | * A "replacement" for a missing Kickstart 5 | * 6 | * (c) 1995 Bernd Schmidt 7 | */ 8 | 9 | #ifndef UAE_ERSATZ_H 10 | #define UAE_ERSATZ_H 11 | 12 | #include "uae/types.h" 13 | 14 | extern void init_ersatz_rom (uae_u8 *data); 15 | extern void ersatz_chipcopy (void); 16 | extern void ersatz_perform (uae_u16); 17 | extern void DISK_ersatz_read (int,int, uaecptr); 18 | 19 | #endif /* UAE_ERSATZ_H */ 20 | -------------------------------------------------------------------------------- /src/include/ethernet.h: -------------------------------------------------------------------------------- 1 | #ifndef UAE_ETHERNET_H 2 | #define UAE_ETHERNET_H 3 | 4 | #include "uae/types.h" 5 | 6 | #define UAENET_NONE 0 7 | #define UAENET_SLIRP 1 8 | #define UAENET_SLIRP_INBOUND 2 9 | #define UAENET_PCAP 3 10 | 11 | struct netdriverdata 12 | { 13 | int type; 14 | const TCHAR *name; 15 | const TCHAR *desc; 16 | int mtu; 17 | uae_u8 mac[6]; 18 | int active; 19 | }; 20 | 21 | 22 | typedef void (ethernet_gotfunc)(void *dev, const uae_u8 *data, int len); 23 | typedef int (ethernet_getfunc)(void *dev, uae_u8 *d, int *len); 24 | 25 | extern bool ethernet_enumerate (struct netdriverdata **, const TCHAR *name); 26 | extern void ethernet_enumerate_free (void); 27 | extern void ethernet_close_driver (struct netdriverdata *ndd); 28 | 29 | extern int ethernet_getdatalenght (struct netdriverdata *ndd); 30 | extern int ethernet_getbytespending (void*); 31 | extern int ethernet_open (struct netdriverdata *ndd, void*, void*, ethernet_gotfunc*, ethernet_getfunc*, int); 32 | extern void ethernet_close (struct netdriverdata *ndd, void*); 33 | extern void ethernet_trigger (struct netdriverdata *ndd, void*); 34 | 35 | #endif /* UAE_ETHERNET_H */ 36 | -------------------------------------------------------------------------------- /src/include/execlib.h: -------------------------------------------------------------------------------- 1 | /* 2 | * UAE - The Un*x Amiga Emulator 3 | * 4 | * Miscellaneous bits for exec emulation 5 | * 6 | * Copyright 1996 Bernd Schmidt 7 | */ 8 | 9 | #ifndef UAE_EXECLIB_H 10 | #define UAE_EXECLIB_H 11 | 12 | #define CMD_INVALID 0 13 | #define CMD_RESET 1 14 | #define CMD_READ 2 15 | #define CMD_WRITE 3 16 | #define CMD_UPDATE 4 17 | #define CMD_CLEAR 5 18 | #define CMD_STOP 6 19 | #define CMD_START 7 20 | #define CMD_FLUSH 8 21 | #define CMD_NONSTD 9 22 | 23 | #define TD_READ64 24 24 | #define TD_WRITE64 25 25 | #define TD_SEEK64 26 26 | #define TD_FORMAT64 27 27 | 28 | #define NT_TASK 1 29 | #define NT_DEVICE 3 30 | #define NT_MSGPORT 4 31 | #define NT_MESSAGE 5 32 | #define NT_FREEMSG 6 33 | #define NT_REPLYMSG 7 34 | #define NT_RESOURCE 8 35 | #define NT_LIBRARY 9 36 | #define NT_SIGNALSEM 15 37 | 38 | #define SIZEOF_LIBRARY 34 39 | 40 | #ifndef MEMF_PUBLIC /* protection for AmigaDOS */ 41 | #define MEMF_PUBLIC 1 42 | #define MEMF_CHIP 2 43 | #define MEMF_FAST 4 44 | #define MEMF_LOCAL 256 45 | #define MEMF_24BITDMA 512 46 | #define MEMF_CLEAR (1<<16) 47 | #define MEMF_LARGEST (1<<17) 48 | #define MEMF_REVERSE (1<<18) 49 | #define MEMF_TOTAL (1<<19) 50 | #endif 51 | 52 | #endif /* UAE_EXECLIB_H */ 53 | -------------------------------------------------------------------------------- /src/include/fdi2raw.h: -------------------------------------------------------------------------------- 1 | #ifndef UAE_FDI2RAW_H 2 | #define UAE_FDI2RAW_H 3 | 4 | #include "uae/types.h" 5 | 6 | typedef struct fdi FDI; 7 | 8 | #ifdef __cplusplus 9 | extern "C" { 10 | #endif 11 | 12 | extern int fdi2raw_loadtrack (FDI*, uae_u16 *mfmbuf, uae_u16 *tracktiming, int track, int *tracklength, int *indexoffset, int *multirev, int mfm); 13 | extern int fdi2raw_loadrevolution (FDI*, uae_u16 *mfmbuf, uae_u16 *tracktiming, int track, int *tracklength, int mfm); 14 | extern FDI *fdi2raw_header(struct zfile *f); 15 | extern void fdi2raw_header_free (FDI *); 16 | extern int fdi2raw_get_last_track(FDI *); 17 | extern int fdi2raw_get_num_sector (FDI *); 18 | extern int fdi2raw_get_last_head(FDI *); 19 | extern int fdi2raw_get_type (FDI *); 20 | extern int fdi2raw_get_bit_rate (FDI *); 21 | extern int fdi2raw_get_rotation (FDI *); 22 | extern int fdi2raw_get_write_protect (FDI *); 23 | 24 | #ifdef __cplusplus 25 | } 26 | #endif 27 | 28 | #endif /* UAE_FDI2RAW_H */ 29 | -------------------------------------------------------------------------------- /src/include/flashrom.h: -------------------------------------------------------------------------------- 1 | #ifndef UAE_FLASHROM_H 2 | #define UAE_FLASHROM_H 3 | 4 | #include "uae/types.h" 5 | 6 | /* FLASH */ 7 | 8 | void *flash_new(uae_u8 *rom, int flashsize, int allocsize, uae_u8 devicecode, struct zfile *zf, int flags); 9 | void flash_free(void *fdv); 10 | 11 | bool flash_write(void *fdv, uaecptr addr, uae_u8 v); 12 | uae_u32 flash_read(void *fdv, uaecptr addr); 13 | bool flash_active(void *fdv, uaecptr addr); 14 | int flash_size(void *fdv); 15 | 16 | /* EPROM */ 17 | 18 | #define BITBANG_I2C_SDA 0 19 | #define BITBANG_I2C_SCL 1 20 | 21 | void *eeprom_new(uae_u8 *rom, int size, struct zfile *zf); 22 | void eeprom_free(void *i2c); 23 | void eeprom_reset(void *i2c); 24 | int eeprom_i2c_set(void *i2c, int line, int level); 25 | 26 | #define FLASHROM_EVERY_OTHER_BYTE 1 27 | #define FLASHROM_EVERY_OTHER_BYTE_ODD 2 28 | #define FLASHROM_PARALLEL_EEPROM 4 29 | 30 | #endif /* UAE_FLASHROM_H */ 31 | -------------------------------------------------------------------------------- /src/include/fpp-ieee-be.h: -------------------------------------------------------------------------------- 1 | /* 2 | * UAE - The Un*x Amiga Emulator 3 | * 4 | * MC68881 emulation 5 | * Support functions for IEEE compatible host CPUs. 6 | * These functions use a GCC extension (type punning through unions) and 7 | * should only be compiled with compilers that support this. 8 | * 9 | * Copyright 1999 Sam Jordan 10 | */ 11 | 12 | #ifndef UAE_FPP_IEEE_BE_H 13 | #define UAE_FPP_IEEE_BE_H 14 | 15 | #include "uae/types.h" 16 | 17 | 18 | STATIC_INLINE double to_single (uae_u32 value) 19 | { 20 | union { 21 | float f; 22 | uae_u32 u; 23 | } val; 24 | 25 | val.u = value; 26 | return val.f; 27 | } 28 | 29 | STATIC_INLINE uae_u32 from_single (double src) 30 | { 31 | union { 32 | float f; 33 | uae_u32 u; 34 | } val; 35 | 36 | val.f = src; 37 | return val.u; 38 | } 39 | 40 | STATIC_INLINE double to_double(uae_u32 wrd1, uae_u32 wrd2) 41 | { 42 | union { 43 | double d; 44 | uae_u32 u[2]; 45 | } val; 46 | 47 | val.u[0] = wrd1; 48 | val.u[1] = wrd2; 49 | return val.d; 50 | } 51 | 52 | STATIC_INLINE void from_double(double src, uae_u32 * wrd1, uae_u32 * wrd2) 53 | { 54 | union { 55 | double d; 56 | uae_u32 u[2]; 57 | } val; 58 | 59 | val.d = src; 60 | *wrd1 = val.u[0]; 61 | *wrd2 = val.u[1]; 62 | } 63 | 64 | #define HAVE_from_double 65 | #define HAVE_to_double 66 | #define HAVE_from_single 67 | #define HAVE_to_single 68 | 69 | /* Get the rest of the conversion functions defined. */ 70 | #include "fpp-unknown.h" 71 | 72 | #endif /* UAE_FPP_IEEE_BE_H */ 73 | -------------------------------------------------------------------------------- /src/include/fsusage.h: -------------------------------------------------------------------------------- 1 | /* fsusage.h -- declarations for filesystem space usage info 2 | * Copyright (C) 1991, 1992 Free Software Foundation, Inc. 3 | * 4 | * This program is free software; you can redistribute it and/or modify 5 | * it under the terms of the GNU General Public License as published by 6 | * the Free Software Foundation; either version 2, or (at your option) 7 | * any later version. 8 | * 9 | * This program is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU General Public License 15 | * along with this program; if not, write to the Free Software Foundation, 16 | * Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ 17 | 18 | #ifndef UAE_FSUSAGE_H 19 | #define UAE_FSUSAGE_H 20 | 21 | #include "uae/types.h" 22 | 23 | /* Space usage statistics for a filesystem. Blocks are 512-byte. */ 24 | struct fs_usage 25 | { 26 | unsigned long fsu_blocks; /* Total blocks. */ 27 | unsigned long fsu_bfree; /* Free blocks available to superuser. */ 28 | unsigned long fsu_bavail; /* Free blocks available to non-superuser. */ 29 | unsigned long fsu_files; /* Total file nodes. */ 30 | unsigned long fsu_ffree; /* Free file nodes. */ 31 | }; 32 | 33 | int get_fs_usage (const TCHAR *path, const TCHAR *disk, struct fs_usage *fsp); 34 | 35 | #endif /* UAE_FSUSAGE_H */ 36 | -------------------------------------------------------------------------------- /src/include/gayle.h: -------------------------------------------------------------------------------- 1 | #ifndef UAE_GAYLE_H 2 | #define UAE_GAYLE_H 3 | 4 | #include "uae/types.h" 5 | 6 | extern void gayle_reset (int); 7 | extern void gayle_hsync (void); 8 | extern void gayle_free (void); 9 | extern int gayle_add_ide_unit (int ch, struct uaedev_config_info *ci); 10 | extern int gayle_modify_pcmcia_sram_unit (struct uaedev_config_info*, int insert); 11 | extern int gayle_modify_pcmcia_ide_unit (struct uaedev_config_info*, int insert); 12 | extern int gayle_add_pcmcia_sram_unit (struct uaedev_config_info*); 13 | extern int gayle_add_pcmcia_ide_unit (struct uaedev_config_info*); 14 | extern void gayle_free_units (void); 15 | extern void rethink_gayle (void); 16 | extern void gayle_map_pcmcia (void); 17 | 18 | extern int gary_toenb; // non-existing memory access = bus error. 19 | extern int gary_timeout; // non-existing memory access = delay 20 | 21 | #define PCMCIA_COMMON_START 0x600000 22 | #define PCMCIA_COMMON_SIZE 0x400000 23 | 24 | extern void gayle_dataflyer_enable(bool); 25 | 26 | #endif /* UAE_GAYLE_H */ 27 | -------------------------------------------------------------------------------- /src/include/genblitter.h: -------------------------------------------------------------------------------- 1 | /* 2 | * UAE - The Un*x Amiga Emulator 3 | * 4 | * Optimized blitter minterm function generator 5 | * 6 | * Copyright 1995,1996 Bernd Schmidt 7 | * Copyright 1996 Alessandro Bissacco 8 | */ 9 | 10 | #ifndef UAE_GENBLITTER_H 11 | #define UAE_GENBLITTER_H 12 | 13 | struct blitop { 14 | const char *s; 15 | int used; 16 | }; 17 | 18 | extern struct blitop blitops[256]; 19 | 20 | #endif /* UAE_GENBLITTER_H */ 21 | -------------------------------------------------------------------------------- /src/include/gensound.h: -------------------------------------------------------------------------------- 1 | /* 2 | * UAE - The Un*x Amiga Emulator 3 | * 4 | * Prototypes for general sound related functions 5 | * This use to be called sound.h, but that causes confusion 6 | * 7 | * Copyright 1997 Bernd Schmidt 8 | */ 9 | 10 | #ifndef UAE_GENSOUND_H 11 | #define UAE_GENSOUND_H 12 | 13 | extern int sound_available; 14 | 15 | extern void (*sample_handler) (void); 16 | /* sample_evtime is in normal Amiga cycles; scaled_sample_evtime is in our 17 | event cycles. */ 18 | extern float scaled_sample_evtime; 19 | 20 | /* Determine if we can produce any sound at all. This can be only a guess; 21 | * if unsure, say yes. Any call to init_sound may change the value. */ 22 | extern int setup_sound (void); 23 | 24 | extern int init_sound (void); 25 | extern void close_sound (void); 26 | 27 | extern void sample16_handler (void); 28 | extern void sample8_handler (void); 29 | extern void sample16s_handler (void); 30 | extern void sample16ss_handler (void); 31 | extern void sample8s_handler (void); 32 | 33 | #endif /* UAE_GENSOUND_H */ 34 | -------------------------------------------------------------------------------- /src/include/identify.h: -------------------------------------------------------------------------------- 1 | /* 2 | * UAE - The Un*x Amiga Emulator 3 | * 4 | * Tables for labelling amiga internals. 5 | * 6 | */ 7 | 8 | #ifndef UAE_IDENTIFY_H 9 | #define UAE_IDENTIFY_H 10 | 11 | #include "uae/types.h" 12 | 13 | struct mem_labels 14 | { 15 | const TCHAR *name; 16 | uae_u32 adr; 17 | }; 18 | 19 | struct customData 20 | { 21 | const TCHAR *name; 22 | uae_u32 adr; 23 | uae_u8 rw, special; 24 | }; 25 | 26 | /* 27 | special: 28 | 29 | 1: DMA pointer high word 30 | 2: DMA pointer low word 31 | 4: ECS/AGA only 32 | 8: AGA only 33 | */ 34 | 35 | extern const struct mem_labels mem_labels[]; 36 | extern const struct mem_labels int_labels[]; 37 | extern const struct mem_labels trap_labels[]; 38 | extern const struct customData custd[]; 39 | 40 | #endif /* UAE_IDENTIFY_H */ 41 | -------------------------------------------------------------------------------- /src/include/isofs_api.h: -------------------------------------------------------------------------------- 1 | #ifndef UAE_ISOFS_API_H 2 | #define UAE_ISOFS_API_H 3 | 4 | #include "uae/types.h" 5 | 6 | struct cd_opendir_s; 7 | struct cd_openfile_s; 8 | 9 | struct isofs_info 10 | { 11 | bool media; 12 | bool unknown_media; 13 | TCHAR volumename[256]; 14 | TCHAR devname[256]; 15 | uae_u32 blocks; 16 | uae_u32 totalblocks; 17 | uae_u32 blocksize; 18 | time_t creation; 19 | }; 20 | 21 | void *isofs_mount(int unitnum, uae_u64 *uniq); 22 | void isofs_unmount(void *sb); 23 | bool isofs_mediainfo(void *sb, struct isofs_info*); 24 | struct cd_opendir_s *isofs_opendir(void *sb, uae_u64 uniq); 25 | void isofs_closedir(struct cd_opendir_s*); 26 | bool isofs_readdir(struct cd_opendir_s*, TCHAR*, uae_u64 *uniq); 27 | bool isofs_stat(void *sb, uae_u64, struct mystat*); 28 | void isofss_fill_file_attrs(void *sb, uae_u64, int*, int*, TCHAR**, uae_u64); 29 | bool isofs_exists(void *sb, uae_u64, const TCHAR*, uae_u64*); 30 | void isofs_dispose_inode(void *sb, uae_u64); 31 | 32 | struct cd_openfile_s *isofs_openfile(void*,uae_u64, int); 33 | void isofs_closefile(struct cd_openfile_s*); 34 | uae_s64 isofs_lseek(struct cd_openfile_s*, uae_s64, int); 35 | uae_s64 isofs_fsize(struct cd_openfile_s*); 36 | uae_s64 isofs_read(struct cd_openfile_s*, void*, unsigned int); 37 | 38 | #endif /* UAE_ISOFS_API_H */ 39 | -------------------------------------------------------------------------------- /src/include/keybuf.h: -------------------------------------------------------------------------------- 1 | /* 2 | * UAE - The Un*x Amiga Emulator 3 | * 4 | * Keyboard buffer. Not really needed for X, but for SVGAlib and possibly 5 | * Mac and DOS ports. 6 | * 7 | * (c) 1996 Bernd Schmidt 8 | */ 9 | 10 | #ifndef UAE_KEYBUF_H 11 | #define UAE_KEYBUF_H 12 | 13 | extern int get_next_key (void); 14 | extern int keys_available (void); 15 | extern int record_key (int); 16 | extern int record_key_direct (int); 17 | extern void keybuf_init (void); 18 | extern int getcapslockstate (void); 19 | extern void setcapslockstate (int); 20 | 21 | #endif /* UAE_KEYBUF_H */ 22 | -------------------------------------------------------------------------------- /src/include/luascript.h: -------------------------------------------------------------------------------- 1 | /* 2 | * UAE - The Un*x Amiga Emulator 3 | * 4 | * LUA Scripting Layer 5 | * 6 | * Copyright 2013 Frode SOlheim 7 | */ 8 | 9 | #ifndef UAE_LUASCRIPT_H 10 | #define UAE_LUASCRIPT_H 11 | 12 | #ifdef WITH_LUA 13 | #include 14 | 15 | void uae_lua_init(void); 16 | void uae_lua_load(const TCHAR *filename); 17 | void uae_lua_loadall(void); 18 | void uae_lua_free(void); 19 | void uae_lua_init_state(lua_State *L); 20 | void uae_lua_run_handler(const char *name); 21 | void uae_lua_aquire_lock(); 22 | void uae_lua_release_lock(); 23 | 24 | #endif /* WITH_LUA */ 25 | 26 | #endif /* UAE_LUASCRIPT_H */ 27 | -------------------------------------------------------------------------------- /src/include/moduleripper.h: -------------------------------------------------------------------------------- 1 | #ifndef UAE_MODULERIPPER_H 2 | #define UAE_MODULERIPPER_H 3 | 4 | extern "C" int prowizard_search (unsigned char *in_data, int in_size); 5 | extern void moduleripper (void); 6 | 7 | #endif /* UAE_MODULERIPPER_H */ 8 | -------------------------------------------------------------------------------- /src/include/native2amiga_api.h: -------------------------------------------------------------------------------- 1 | /* 2 | * The following functions do exactly the same thing as their 3 | * Amiga counterpart, but can be called in situation where calling 4 | * the exec.library functions is impossible. 5 | */ 6 | 7 | #ifndef UAE_NATIVE2AMIGA_API_H 8 | #define UAE_NATIVE2AMIGA_API_H 9 | 10 | #include "uae/types.h" 11 | 12 | #ifdef SUPPORT_THREADS 13 | void uae_Cause(uaecptr interrupt); 14 | void uae_ReplyMsg(uaecptr msg); 15 | void uae_PutMsg(uaecptr port, uaecptr msg); 16 | void uae_Signal(uaecptr task, uae_u32 mask); 17 | void uae_NotificationHack(uaecptr, uaecptr); 18 | #endif 19 | void uae_NewList(uaecptr list); 20 | int native2amiga_isfree (void); 21 | 22 | #endif /* UAE_NATIVE2AMIGA_API_H */ 23 | -------------------------------------------------------------------------------- /src/include/osemu.h: -------------------------------------------------------------------------------- 1 | /* 2 | * UAE - The Un*x Amiga Emulator 3 | * 4 | * OS emulation prototypes 5 | * 6 | * Copyright 1996 Bernd Schmidt 7 | */ 8 | 9 | #ifndef UAE_OSEMU_H 10 | #define UAE_OSEMU_H 11 | 12 | #include "uae/types.h" 13 | 14 | STATIC_INLINE char *raddr(uaecptr p) 15 | { 16 | return p == 0 ? NULL : (char *)get_real_address (p); 17 | } 18 | 19 | extern void gfxlib_install(void); 20 | 21 | /* graphics.library */ 22 | 23 | extern int GFX_WritePixel(uaecptr rp, int x, int y); 24 | 25 | #endif /* UAE_OSEMU_H */ 26 | -------------------------------------------------------------------------------- /src/include/packed.h: -------------------------------------------------------------------------------- 1 | #define PACKED 2 | #pragma pack(push,1) 3 | -------------------------------------------------------------------------------- /src/include/parallel.h: -------------------------------------------------------------------------------- 1 | #ifndef UAE_PARALLEL_H 2 | #define UAE_PARALLEL_H 3 | 4 | #include "uae/types.h" 5 | 6 | extern int isprinter (void); 7 | extern void doprinter (uae_u8); 8 | extern void flushprinter (void); 9 | extern void closeprinter (void); 10 | extern int isprinteropen (void); 11 | extern void initparallel (void); 12 | 13 | #endif /* UAE_PARALLEL_H */ 14 | -------------------------------------------------------------------------------- /src/include/pci.h: -------------------------------------------------------------------------------- 1 | #ifndef UAE_PCI_H 2 | #define UAE_PCI_H 3 | 4 | extern void pci_free(void); 5 | extern void pci_reset(void); 6 | extern void pci_hsync(void); 7 | extern void pci_rethink(void); 8 | extern void pci_dump(int); 9 | 10 | extern addrbank *dkb_wildfire_pci_init(struct romconfig *rc); 11 | extern addrbank *prometheus_init(struct romconfig *rc); 12 | extern addrbank *cbvision_init(struct romconfig *rc);; 13 | extern addrbank *grex_init(struct romconfig *rc); 14 | extern addrbank *mediator_init(struct romconfig *rc); 15 | extern addrbank *mediator_init2(struct romconfig *rc); 16 | 17 | #endif /* UAE_PCI_H */ 18 | -------------------------------------------------------------------------------- /src/include/sampler.h: -------------------------------------------------------------------------------- 1 | #ifndef UAE_SAMPLER_H 2 | #define UAE_SAMPLER_H 3 | 4 | #include "uae/types.h" 5 | 6 | extern uae_u8 sampler_getsample (int); 7 | extern int sampler_init (void); 8 | extern void sampler_free (void); 9 | extern void sampler_vsync (void); 10 | 11 | #endif /* UAE_SAMPLER_H */ 12 | -------------------------------------------------------------------------------- /src/include/sana2.h: -------------------------------------------------------------------------------- 1 | /* 2 | * UAE - The Un*x Amiga Emulator 3 | * 4 | * SANAII compatible network driver emulation 5 | * 6 | * (c) 2007 Toni Wilen 7 | */ 8 | 9 | #ifndef UAE_SANA2_H 10 | #define UAE_SANA2_H 11 | 12 | #include "uae/types.h" 13 | 14 | #define MAX_TOTAL_NET_DEVICES 10 15 | 16 | uaecptr netdev_startup (uaecptr resaddr); 17 | void netdev_install (void); 18 | void netdev_reset (void); 19 | void netdev_start_threads (void); 20 | 21 | extern int log_net; 22 | 23 | #endif /* UAE_SANA2_H */ 24 | -------------------------------------------------------------------------------- /src/include/scp.h: -------------------------------------------------------------------------------- 1 | #ifndef UAE_SCP_H 2 | #define UAE_SCP_H 3 | 4 | #include "uae/types.h" 5 | 6 | int scp_open(struct zfile *zf, int drv, int *num_tracks); 7 | void scp_close(int drv); 8 | int scp_loadtrack( 9 | uae_u16 *mfmbuf, uae_u16 *tracktiming, int drv, 10 | int track, int *tracklength, int *multirev, 11 | int *gapoffset, int *nextrev, bool setrev); 12 | void scp_loadrevolution( 13 | uae_u16 *mfmbuf, int drv, uae_u16 *tracktiming, 14 | int *tracklength); 15 | 16 | #endif /* UAE_SCP_H */ 17 | -------------------------------------------------------------------------------- /src/include/scsidev.h: -------------------------------------------------------------------------------- 1 | /* 2 | * UAE - The Un*x Amiga Emulator 3 | * 4 | * a SCSI device 5 | * 6 | * (c) 1995 Bernd Schmidt (hardfile.c) 7 | * (c) 1999 Patrick Ohly 8 | * (c) 2001-2005 Toni Wilen 9 | */ 10 | 11 | #ifndef UAE_SCSIDEV_H 12 | #define UAE_SCSIDEV_H 13 | 14 | #include "uae/types.h" 15 | 16 | uaecptr scsidev_startup (uaecptr resaddr); 17 | void scsidev_install (void); 18 | void scsidev_reset (void); 19 | void scsidev_start_threads (void); 20 | int scsi_do_disk_change (int unitnum, int insert, int *pollmode); 21 | int scsi_do_disk_device_change (void); 22 | uae_u32 scsi_get_cd_drive_mask (void); 23 | uae_u32 scsi_get_cd_drive_media_mask (void); 24 | int scsi_add_tape (struct uaedev_config_info *uci); 25 | 26 | extern int log_scsi; 27 | 28 | #if defined(_WIN32) || defined(__AROS__) 29 | #define UAESCSI_CDEMU 0 30 | #define UAESCSI_SPTI 1 31 | #define UAESCSI_SPTISCAN 2 32 | #define UAESCSI_LAST 2 33 | #endif 34 | 35 | #endif /* UAE_SCSIDEV_H */ 36 | -------------------------------------------------------------------------------- /src/include/sndboard.h: -------------------------------------------------------------------------------- 1 | #ifndef UAE_SNDBOARD_H 2 | #define UAE_SNDBOARD_H 3 | 4 | #include "uae/types.h" 5 | 6 | addrbank *sndboard_init(int devnum); 7 | void sndboard_free(void); 8 | void sndboard_hsync(void); 9 | void sndboard_vsync(void); 10 | void sndboard_rethink(void); 11 | void update_sndboard_sound(double); 12 | void sndboard_reset(void); 13 | void sndboard_ext_volume(void); 14 | 15 | #endif /* UAE_SNDBOARD_H */ 16 | -------------------------------------------------------------------------------- /src/include/specialmonitors.h: -------------------------------------------------------------------------------- 1 | #ifndef UAE_SPECIALMONITORS_H 2 | #define UAE_SPECIALMONITORS_H 3 | 4 | #include "memory.h" 5 | 6 | bool emulate_specialmonitors(struct vidbuffer *src, struct vidbuffer *dst); 7 | void specialmonitor_store_fmode(int vpos, int hpos, uae_u16 fmode); 8 | void specialmonitor_reset(void); 9 | bool specialmonitor_need_genlock(void); 10 | addrbank *specialmonitor_autoconfig_init(int devnum); 11 | bool emulate_genlock(struct vidbuffer*, struct vidbuffer*); 12 | 13 | #endif /* UAE_SPECIALMONITORS_H */ 14 | -------------------------------------------------------------------------------- /src/include/statusline.h: -------------------------------------------------------------------------------- 1 | #ifndef UAE_STATUSLINE_H 2 | #define UAE_STATUSLINE_H 3 | 4 | #include "uae/types.h" 5 | 6 | #define TD_PADX 4 7 | #define TD_PADY 2 8 | #define TD_WIDTH 30 9 | #define TD_LED_WIDTH 24 10 | #define TD_LED_HEIGHT 4 11 | 12 | #define TD_RIGHT 1 13 | #define TD_BOTTOM 2 14 | 15 | #define TD_NUM_WIDTH 7 16 | #define TD_NUM_HEIGHT 7 17 | 18 | #define TD_TOTAL_HEIGHT (TD_PADY * 2 + TD_NUM_HEIGHT) 19 | 20 | #define NUMBERS_NUM 17 21 | 22 | #define TD_BORDER 0x333333 23 | 24 | #define STATUSLINE_CHIPSET 1 25 | #define STATUSLINE_RTG 2 26 | #define STATUSLINE_TARGET 0x80 27 | 28 | extern void draw_status_line_single (uae_u8 *buf, int bpp, int y, int totalwidth, uae_u32 *rc, uae_u32 *gc, uae_u32 *bc, uae_u32 *alpha); 29 | extern void statusline_single_erase(uae_u8 *buf, int bpp, int y, int totalwidth); 30 | extern void statusline_getpos(int *x, int *y, int width, int height); 31 | 32 | extern bool createstatusline(void); 33 | extern void deletestatusline(void); 34 | extern void statusline_render(uae_u8 *buf, int bpp, int pitch, int width, int height, uae_u32 *rc, uae_u32 *gc, uae_u32 *bc, uae_u32 *alpha); 35 | extern void statusline_add_message(const TCHAR *format, ...); 36 | extern void statusline_clear(void); 37 | extern void statusline_vsync(void); 38 | extern void statusline_updated(void); 39 | extern bool has_statusline_updated(void); 40 | extern const TCHAR *statusline_fetch(void); 41 | 42 | #endif /* UAE_STATUSLINE_H */ 43 | -------------------------------------------------------------------------------- /src/include/tabletlibrary.h: -------------------------------------------------------------------------------- 1 | #ifndef UAE_TABLETLIBRARY_H 2 | #define UAE_TABLETLIBRARY_H 3 | 4 | #include "uae/types.h" 5 | 6 | uaecptr tabletlib_startup (uaecptr resaddr); 7 | void tabletlib_install (void); 8 | 9 | extern void tabletlib_tablet (int x, int y, int z, 10 | int pressure, int maxpressure, uae_u32 buttonbits, int inproximity, 11 | int ax, int ay, int az); 12 | extern void tabletlib_tablet_info (int maxx, int maxy, int maxz, int maxax, int maxay, int maxaz, int xres, int yres); 13 | 14 | #endif /* UAE_TABLETLIBRARY_H */ 15 | -------------------------------------------------------------------------------- /src/include/uae/attributes.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Defines useful functions and variable attributes for UAE 3 | * Copyright (C) 2014 Frode Solheim 4 | * 5 | * Licensed under the terms of the GNU General Public License version 2. 6 | * See the file 'COPYING' for full license text. 7 | */ 8 | 9 | #ifndef UAE_ATTRIBUTES_H 10 | #define UAE_ATTRIBUTES_H 11 | 12 | /* This file is intended to be included by external libraries as well, 13 | * so don't pull in too much UAE-specific stuff. */ 14 | 15 | #ifdef _WIN32 16 | #define uae_cdecl __cdecl 17 | #elif defined(__GNUC__) && defined(__i386__) 18 | #define uae_cdecl __attribute__((cdecl)) 19 | #else 20 | #define uae_cdecl 21 | #endif 22 | 23 | /* This attribute allows (some) compiles to emit warnings when incorrect 24 | * arguments are used with the format string. */ 25 | 26 | #ifdef __GNUC__ 27 | #define UAE_PRINTF_FORMAT(f, a) __attribute__((format(printf, f, a))) 28 | #else 29 | #define UAE_PRINTF_FORMAT(f, a) 30 | #endif 31 | 32 | #define UAE_WPRINTF_FORMAT(f, a) 33 | 34 | #endif /* UAE_ATTRIBUTES_H */ 35 | -------------------------------------------------------------------------------- /src/include/uae/cdrom.h: -------------------------------------------------------------------------------- 1 | #ifndef UAE_CDROM_H 2 | #define UAE_CDROM_H 3 | 4 | #include "uae/types.h" 5 | 6 | void encode_l2(uae_u8 *p, int address); 7 | 8 | #endif /* UAE_CDROM_H */ 9 | -------------------------------------------------------------------------------- /src/include/uae/dlopen.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Platform-independent loadable module functions for UAE. 3 | * Copyright (C) 2014 Frode Solheim 4 | * 5 | * Licensed under the terms of the GNU General Public License version 2. 6 | * See the file 'COPYING' for full license text. 7 | */ 8 | 9 | #ifndef UAE_DLOPEN_H 10 | #define UAE_DLOPEN_H 11 | 12 | #include "uae/types.h" 13 | 14 | #ifdef _WIN32 15 | #define UAE_DLHANDLE HINSTANCE 16 | #else 17 | #define UAE_DLHANDLE void * 18 | #endif 19 | 20 | /* General loadable module support */ 21 | 22 | UAE_DLHANDLE uae_dlopen(const TCHAR *path); 23 | void *uae_dlsym(UAE_DLHANDLE handle, const char *symbol); 24 | void uae_dlclose(UAE_DLHANDLE handle); 25 | 26 | /* UAE plugin support functions */ 27 | 28 | UAE_DLHANDLE uae_dlopen_plugin(const TCHAR *name); 29 | void uae_dlopen_patch_common(UAE_DLHANDLE handle); 30 | 31 | #endif /* UAE_DLOPEN_H */ 32 | -------------------------------------------------------------------------------- /src/include/uae/inline.h: -------------------------------------------------------------------------------- 1 | #ifndef UAE_INLINE_H 2 | #define UAE_INLINE_H 3 | 4 | #ifdef HAVE_CONFIG_H 5 | #include "config.h" 6 | #endif 7 | 8 | // FIXME: could be named funcattr.h or something, perhaps 9 | // FIXME: move regparams here? 10 | 11 | #if defined(HAVE_FUNC_ATTRIBUTE_ALWAYS_INLINE) 12 | #define UAE_STATIC_INLINE static __inline__ __attribute__ ((always_inline)) 13 | #elif defined(_MSC_VER) 14 | #define UAE_STATIC_INLINE static __forceinline 15 | #else 16 | #define UAE_STATIC_INLINE static inline 17 | #endif 18 | 19 | #if defined(HAVE_FUNC_ATTRIBUTE_NOINLINE) 20 | #define UAE_NOINLINE __attribute__ ((noinline)) 21 | #elif defined(_MSC_VER) 22 | #define UAE_NOINLINE __declspec(noinline) 23 | #else 24 | #define UAE_NOINLINE 25 | #endif 26 | 27 | #if defined(HAVE_FUNC_ATTRIBUTE_NORETURN) 28 | #define UAE_NORETURN __attribute__ ((noreturn)) 29 | #elif defined(_MSC_VER) 30 | #define UAE_NORETURN __declspec(noreturn) 31 | #else 32 | #define UAE_NORETURN 33 | #endif 34 | 35 | #ifndef STATIC_INLINE 36 | #define STATIC_INLINE UAE_STATIC_INLINE 37 | #endif 38 | 39 | #ifndef NOINLINE 40 | #define NOINLINE UAE_NOINLINE 41 | #endif 42 | 43 | #ifndef NORETURN 44 | #define NORETURN UAE_NORETURN 45 | #endif 46 | 47 | #endif /* UAE_INLINE_H */ 48 | -------------------------------------------------------------------------------- /src/include/uae/io.h: -------------------------------------------------------------------------------- 1 | #ifndef UAE_IO_H 2 | #define UAE_IO_H 3 | 4 | #include "uae/types.h" 5 | #include 6 | 7 | #ifdef WINUAE 8 | #define uae_tfopen _tfopen 9 | #else 10 | 11 | #ifdef __AROS__ 12 | #define uae_tfopen fopen 13 | #else 14 | FILE *uae_tfopen(const TCHAR *path, const TCHAR *mode); 15 | #endif 16 | #endif 17 | 18 | #endif /* UAE_IO_H */ 19 | -------------------------------------------------------------------------------- /src/include/uae/likely.h: -------------------------------------------------------------------------------- 1 | #ifndef UAE_LIKELY_H 2 | #define UAE_LIKELY_H 3 | 4 | #ifdef HAVE___BUILTIN_EXPECT 5 | 6 | #define likely(x) __builtin_expect(!!(x), 1) 7 | #define unlikely(x) __builtin_expect(!!(x), 0) 8 | 9 | #else 10 | 11 | #define likely(x) x 12 | #define unlikely(x) x 13 | 14 | #endif 15 | 16 | #endif /* UAE_LIKELY_H */ 17 | -------------------------------------------------------------------------------- /src/include/uae/mman.h: -------------------------------------------------------------------------------- 1 | #ifndef UAE_MMAN_H 2 | #define UAE_MMAN_H 3 | 4 | #include "uae/types.h" 5 | 6 | #define MAX_SHMID 256 7 | 8 | typedef int uae_key_t; 9 | 10 | /* One shmid data structure for each shared memory segment in the system. */ 11 | struct uae_shmid_ds { 12 | uae_key_t key; 13 | uae_u32 size; 14 | uae_u32 rosize; 15 | void *addr; 16 | TCHAR name[MAX_PATH]; 17 | void *attached; 18 | int mode; 19 | void *natmembase; 20 | bool fake; 21 | int maprom; 22 | }; 23 | 24 | void *uae_shmat(addrbank *ab, int shmid, void *shmaddr, int shmflg); 25 | int uae_shmdt(const void *shmaddr); 26 | int uae_shmget(uae_key_t key, size_t size, int shmflg, const TCHAR *name); 27 | int uae_shmctl(int shmid, int cmd, struct uae_shmid_ds *buf); 28 | 29 | #define UAE_IPC_PRIVATE 0x01 30 | #define UAE_IPC_RMID 0x02 31 | #define UAE_IPC_CREAT 0x04 32 | #define UAE_IPC_STAT 0x08 33 | 34 | #endif /* UAE_MMAN_H */ 35 | -------------------------------------------------------------------------------- /src/include/uae/seh.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Structured exception handling 3 | * Copyright (C) 2014 Frode Solheim 4 | * 5 | * Licensed under the terms of the GNU General Public License version 2. 6 | * See the file 'COPYING' for full license text. 7 | */ 8 | 9 | #ifndef UAE_SEH_H 10 | #define UAE_SEH_H 11 | 12 | #ifdef _MSC_VER 13 | 14 | /* Structured exception handling is available */ 15 | 16 | #else 17 | 18 | /* MinGW defines __try / __except */ 19 | #undef __try 20 | #undef __except 21 | 22 | /* Structured exception handling is not available - do nothing */ 23 | #define __try 24 | #define __except(x) 25 | 26 | #endif 27 | 28 | #endif /* UAE_SEH_H */ 29 | -------------------------------------------------------------------------------- /src/include/uae/slirp.h: -------------------------------------------------------------------------------- 1 | #ifndef UAE_SLIRP_H 2 | #define UAE_SLIRP_H 3 | 4 | #include "uae/types.h" 5 | 6 | #ifdef _WIN32 7 | #else 8 | #include 9 | #include 10 | #include 11 | #endif 12 | 13 | int uae_slirp_init(void); 14 | void uae_slirp_cleanup(void); 15 | int uae_slirp_redir(int is_udp, int host_port, struct in_addr guest_addr, 16 | int guest_port); 17 | bool uae_slirp_start (void); 18 | void uae_slirp_end (void); 19 | void uae_slirp_input(const uint8_t *pkt, int pkt_len); 20 | 21 | void slirp_output(const uint8_t *pkt, int pkt_len); 22 | 23 | #endif /* UAE_SLIRP_H */ 24 | -------------------------------------------------------------------------------- /src/include/uae/time.h: -------------------------------------------------------------------------------- 1 | #ifndef UAE_TIME_H 2 | #define UAE_TIME_H 3 | 4 | #include "uae/types.h" 5 | 6 | /* frame_time_t is often cast to int in the code so we use int for now... */ 7 | typedef uae_u32 uae_time_t; 8 | 9 | void uae_time_init(void); 10 | void uae_time_calibrate(void); 11 | uae_time_t uae_time(void); 12 | 13 | #ifdef _WIN32 14 | void uae_time_use_rdtsc(bool enable); 15 | uae_u32 read_system_time(void); 16 | #endif 17 | 18 | typedef uae_time_t frame_time_t; 19 | 20 | static inline frame_time_t read_processor_time(void) 21 | { 22 | return uae_time(); 23 | } 24 | 25 | #endif /* UAE_TIME_H */ 26 | -------------------------------------------------------------------------------- /src/include/uaeexe.h: -------------------------------------------------------------------------------- 1 | /* 2 | * uaeexe.h - launch executable in UAE 3 | * 4 | * (c) 1997 by Samuel Devulder 5 | */ 6 | 7 | #ifndef UAE_UAEEXE_H 8 | #define UAE_UAEEXE_H 9 | 10 | #include "uae/types.h" 11 | 12 | struct uae_xcmd { 13 | struct uae_xcmd *prev, *next; 14 | TCHAR *cmd; 15 | }; 16 | 17 | #define UAEEXE_ORG 0xF0FF90 /* sam: I hope this slot is free */ 18 | 19 | #define UAEEXE_OK 0 20 | #define UAEEXE_NOTRUNNING 1 21 | #define UAEEXE_NOMEM 2 22 | 23 | extern void uaeexe_install (void); 24 | extern int uaeexe (const TCHAR *cmd); 25 | 26 | #endif /* UAE_UAEEXE_H */ 27 | -------------------------------------------------------------------------------- /src/include/uaeipc.h: -------------------------------------------------------------------------------- 1 | #ifndef UAE_UAEIPC_H 2 | #define UAE_UAEIPC_H 3 | 4 | #include "uae/types.h" 5 | 6 | extern void *createIPC (const TCHAR *name, int); 7 | extern void closeIPC (void*); 8 | extern int checkIPC (void*,struct uae_prefs*); 9 | extern void *geteventhandleIPC (void*); 10 | extern int sendBinIPC (void*, uae_u8 *msg, int len); 11 | extern int sendIPC (void*, TCHAR *msg); 12 | extern int isIPC (const TCHAR *pipename); 13 | 14 | #endif /* UAE_UAEIPC_H */ 15 | -------------------------------------------------------------------------------- /src/include/uaenative.h: -------------------------------------------------------------------------------- 1 | /* 2 | * UAE - The Un*x Amiga Emulator 3 | * 4 | * UAE Native Interface (UNI) 5 | * 6 | * Copyright 2013-2014 Frode Solheim 7 | */ 8 | 9 | #ifndef UAE_UAENATIVE_H 10 | #define UAE_UAENATIVE_H 11 | 12 | #ifdef WITH_UAENATIVE 13 | 14 | #define UNI_IMPORT 15 | #include "uni_common.h" 16 | 17 | #define UNI_FLAG_ASYNCHRONOUS 1 18 | #define UNI_FLAG_COMPAT 2 19 | #define UNI_FLAG_NAMED_FUNCTION 4 20 | 21 | uae_u32 uaenative_open_library(TrapContext *context, int flags); 22 | uae_u32 uaenative_get_function(TrapContext *context, int flags); 23 | uae_u32 uaenative_call_function(TrapContext *context, int flags); 24 | uae_u32 uaenative_close_library(TrapContext *context, int flags); 25 | 26 | void *uaenative_get_uaevar(void); 27 | 28 | void uaenative_install (); 29 | uaecptr uaenative_startup (uaecptr resaddr); 30 | 31 | /* This function must return a list of directories to look for native 32 | * libraries in. The returned list must be NULL-terminated, and must not 33 | * be de-allocated. */ 34 | const TCHAR **uaenative_get_library_dirs(void); 35 | 36 | #endif /* WITH_UAENATIVE */ 37 | 38 | #endif /* UAE_UAENATIVE_H */ 39 | -------------------------------------------------------------------------------- /src/include/uaeresource.h: -------------------------------------------------------------------------------- 1 | #ifndef UAE_UAERESOURCE_H 2 | #define UAE_UAERESOURCE_H 3 | 4 | #include "uae/types.h" 5 | 6 | uaecptr uaeres_startup (uaecptr resaddr); 7 | void uaeres_install (void); 8 | 9 | #endif /* UAE_UAERESOURCE_H */ 10 | -------------------------------------------------------------------------------- /src/include/uaeserial.h: -------------------------------------------------------------------------------- 1 | /* 2 | * UAE - The Un*x Amiga Emulator 3 | * 4 | * uaeserial.device 5 | * 6 | * (c) 2006 Toni Wilen 7 | */ 8 | 9 | #ifndef UAE_UAESERIAL_H 10 | #define UAE_UAESERIAL_H 11 | 12 | #include "uae/types.h" 13 | 14 | uaecptr uaeserialdev_startup (uaecptr resaddr); 15 | void uaeserialdev_install (void); 16 | void uaeserialdev_reset (void); 17 | void uaeserialdev_start_threads (void); 18 | 19 | extern int log_uaeserial; 20 | 21 | struct uaeserialdata 22 | { 23 | #ifdef _WIN32 24 | void *handle; 25 | void *writeevent; 26 | #endif 27 | }; 28 | 29 | #endif /* UAE_UAESERIAL_H */ 30 | -------------------------------------------------------------------------------- /src/include/unpacked.h: -------------------------------------------------------------------------------- 1 | ; 2 | #pragma pack(pop) 3 | #undef PACKED 4 | -------------------------------------------------------------------------------- /src/include/x86.h: -------------------------------------------------------------------------------- 1 | #ifndef UAE_X86_H 2 | #define UAE_X86_H 3 | 4 | extern addrbank *a1060_init(struct romconfig *rc); 5 | extern addrbank *a2088xt_init(struct romconfig *rc); 6 | extern addrbank *a2088t_init(struct romconfig *rc); 7 | extern addrbank *a2286_init(struct romconfig *rc); 8 | extern addrbank *a2386_init(struct romconfig *rc); 9 | void x86_bridge_hsync(void); 10 | void x86_bridge_vsync(void); 11 | void x86_bridge_reset(void); 12 | void x86_bridge_free(void); 13 | void x86_bridge_rethink(void); 14 | void x86_bridge_sync_change(void); 15 | 16 | #define X86_STATE_INACTIVE 0 17 | #define X86_STATE_STOP 1 18 | #define X86_STATE_ACTIVE 2 19 | 20 | int is_x86_cpu(struct uae_prefs*); 21 | void x86_bridge_execute_until(int until); 22 | extern bool x86_turbo_on; 23 | 24 | #endif /* UAE_X86_H */ 25 | -------------------------------------------------------------------------------- /src/jit/readme.txt: -------------------------------------------------------------------------------- 1 | To get a feeling, how the communication between the jit and the main-exe works.. 2 | 3 | jit objects call the following functions and use the following extern objects: 4 | 5 | areg_byteinc 6 | __assert_fail 7 | baseaddr 8 | canbang 9 | changed_prefs 10 | comp_pc_p 11 | cpufunctbl 12 | currprefs 13 | failure 14 | fp_1e1 15 | fp_1e2 16 | fp_1e4 17 | fp_1e8 18 | imm8_table 19 | kickmem_bank 20 | lookuptab 21 | m68k_pc_offset 22 | mem_banks 23 | natmem_offset 24 | needed_flags 25 | nr_cpuop_funcs 26 | op_smalltbl_0_comp_ff 27 | op_smalltbl_0_comp_nf 28 | pissoff 29 | regflags 30 | regs 31 | special_mem 32 | start_pc 33 | start_pc_p 34 | table68k 35 | xhex_1e1024 36 | xhex_1e128 37 | xhex_1e16 38 | xhex_1e2048 39 | xhex_1e256 40 | xhex_1e32 41 | xhex_1e4096 42 | xhex_1e512 43 | xhex_1e64 44 | xhex_exp_1 45 | xhex_l10_2 46 | xhex_l10_e 47 | xhex_ln_10 48 | cache_free(unsigned char*) -> not used 49 | do_nothing() 50 | cache_alloc(int) -> not used 51 | exec_nostats() -> not used 52 | read_table68k() 53 | execute_normal() 54 | au(char const*) 55 | ua(char const*) 56 | op_illg(unsigned int) 57 | do_merges() 58 | jit_abort(char const*, ...) 59 | 60 | extern code uses the following jit objects/functions: 61 | 62 | build_comp() 63 | flush_icache(unsigned int, int) 64 | compemu_reset() 65 | compile_block(cpu_history*, int, int) 66 | set_cache_state(int) 67 | check_for_cache_miss() 68 | check_prefs_changed_comp() 69 | -------------------------------------------------------------------------------- /src/logging.cpp: -------------------------------------------------------------------------------- 1 | #include "uae/log.h" 2 | #include 3 | #include 4 | 5 | void UAECALL uae_log(const char *format, ...) 6 | { 7 | /* Redirect UAE_LOG_VA_ARGS_FULL to use write_log instead */ 8 | #define uae_log write_log 9 | UAE_LOG_VA_ARGS_FULL(format); 10 | #undef uae_log 11 | } 12 | -------------------------------------------------------------------------------- /src/missing.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | * UAE - The Un*x Amiga Emulator 3 | * 4 | * Various stuff missing in some OSes. 5 | * 6 | * Copyright 1997 Bernd Schmidt 7 | */ 8 | 9 | #include "sysconfig.h" 10 | #include "sysdeps.h" 11 | 12 | #include "uae.h" 13 | 14 | #ifndef HAVE_STRDUP 15 | 16 | TCHAR *my_strdup (const TCHAR *s) 17 | { 18 | TCHAR *x = (char*)malloc(strlen((TCHAR *)s) + 1); 19 | strcpy(x, (TCHAR *)s); 20 | return x; 21 | } 22 | 23 | #endif 24 | 25 | char *ua (const TCHAR *s) { 26 | return strdup(s); 27 | } 28 | 29 | #if 0 30 | 31 | void *xmalloc (size_t n) 32 | { 33 | void *a = malloc (n); 34 | return a; 35 | } 36 | 37 | void *xcalloc (size_t n, size_t size) 38 | { 39 | void *a = calloc (n, size); 40 | return a; 41 | } 42 | 43 | void xfree (const void *p) 44 | { 45 | 46 | free (p); 47 | } 48 | 49 | #endif 50 | -------------------------------------------------------------------------------- /src/nogui.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | * UAE - The Un*x Amiga Emulator 3 | * 4 | * Interface to the Tcl/Tk GUI 5 | * 6 | * Copyright 1996 Bernd Schmidt 7 | */ 8 | 9 | #include "sysconfig.h" 10 | #include "sysdeps.h" 11 | 12 | #include "config.h" 13 | #include "options.h" 14 | #include "gui.h" 15 | 16 | static void sigchldhandler(int foo) 17 | { 18 | } 19 | 20 | int gui_init (void) 21 | { 22 | return 0; 23 | } 24 | 25 | int gui_update (void) 26 | { 27 | return 0; 28 | } 29 | 30 | void gui_exit (void) 31 | { 32 | } 33 | 34 | void gui_fps (int x) 35 | { 36 | } 37 | 38 | void gui_led (int led, int on) 39 | { 40 | } 41 | 42 | void gui_hd_led (int led) 43 | { 44 | } 45 | 46 | void gui_cd_led (int led) 47 | { 48 | } 49 | 50 | void gui_filename (int num, const char *name) 51 | { 52 | } 53 | 54 | static void getline (char *p) 55 | { 56 | } 57 | 58 | void gui_handle_events (void) 59 | { 60 | } 61 | 62 | void gui_changesettings (void) 63 | { 64 | } 65 | 66 | void gui_update_gfx (void) 67 | { 68 | } 69 | 70 | void gui_lock (void) 71 | { 72 | } 73 | 74 | void gui_unlock (void) 75 | { 76 | } 77 | 78 | void gui_message (const char *format,...) 79 | { 80 | char msg[2048]; 81 | va_list parms; 82 | 83 | va_start (parms,format); 84 | vsprintf ( msg, format, parms); 85 | va_end (parms); 86 | 87 | write_log (msg); 88 | } 89 | -------------------------------------------------------------------------------- /src/od-aros/7z/7zCrc.h: -------------------------------------------------------------------------------- 1 | /* 7zCrc.h -- CRC32 calculation 2 | 2009-11-21 : Igor Pavlov : Public domain */ 3 | 4 | #ifndef __7Z_CRC_H 5 | #define __7Z_CRC_H 6 | 7 | #include "types.h" 8 | 9 | EXTERN_C_BEGIN 10 | 11 | extern UInt32 g_CrcTable[]; 12 | 13 | /* Call CrcGenerateTable one time before other CRC functions */ 14 | void MY_FAST_CALL CrcGenerateTable(void); 15 | 16 | #define CRC_INIT_VAL 0xFFFFFFFF 17 | #define CRC_GET_DIGEST(crc) ((crc) ^ CRC_INIT_VAL) 18 | #define CRC_UPDATE_BYTE(crc, b) (g_CrcTable[((crc) ^ (b)) & 0xFF] ^ ((crc) >> 8)) 19 | 20 | UInt32 MY_FAST_CALL CrcUpdate(UInt32 crc, const void *data, size_t size); 21 | UInt32 MY_FAST_CALL CrcCalc(const void *data, size_t size); 22 | 23 | EXTERN_C_END 24 | 25 | #endif 26 | -------------------------------------------------------------------------------- /src/od-aros/7z/7zVersion.h: -------------------------------------------------------------------------------- 1 | #define MY_VER_MAJOR 9 2 | #define MY_VER_MINOR 13 3 | #define MY_VER_BUILD 0 4 | #define MY_VERSION "9.13 beta" 5 | #define MY_DATE "2010-04-15" 6 | #define MY_COPYRIGHT ": Igor Pavlov : Public domain" 7 | #define MY_VERSION_COPYRIGHT_DATE MY_VERSION " " MY_COPYRIGHT " : " MY_DATE 8 | -------------------------------------------------------------------------------- /src/od-aros/7z/7zalloc.h: -------------------------------------------------------------------------------- 1 | /* 7zAlloc.h -- Allocation functions 2 | 2009-02-07 : Igor Pavlov : Public domain */ 3 | 4 | #ifndef __7Z_ALLOC_H 5 | #define __7Z_ALLOC_H 6 | 7 | #include 8 | 9 | #ifdef __cplusplus 10 | extern "C" { 11 | #endif 12 | 13 | void *SzAlloc(void *p, size_t size); 14 | void SzFree(void *p, void *address); 15 | 16 | void *SzAllocTemp(void *p, size_t size); 17 | void SzFreeTemp(void *p, void *address); 18 | 19 | #ifdef __cplusplus 20 | } 21 | #endif 22 | 23 | #endif 24 | -------------------------------------------------------------------------------- /src/od-aros/7z/7zbuf.h: -------------------------------------------------------------------------------- 1 | /* 7zBuf.h -- Byte Buffer 2 | 2009-02-07 : Igor Pavlov : Public domain */ 3 | 4 | #ifndef __7Z_BUF_H 5 | #define __7Z_BUF_H 6 | 7 | #include "types.h" 8 | 9 | #ifdef __cplusplus 10 | extern "C" { 11 | #endif 12 | 13 | typedef struct 14 | { 15 | Byte *data; 16 | size_t size; 17 | } CBuf; 18 | 19 | void Buf_Init(CBuf *p); 20 | int Buf_Create(CBuf *p, size_t size, ISzAlloc *alloc); 21 | void Buf_Free(CBuf *p, ISzAlloc *alloc); 22 | 23 | typedef struct 24 | { 25 | Byte *data; 26 | size_t size; 27 | size_t pos; 28 | } CDynBuf; 29 | 30 | void DynBuf_Construct(CDynBuf *p); 31 | void DynBuf_SeekToBeg(CDynBuf *p); 32 | int DynBuf_Write(CDynBuf *p, const Byte *buf, size_t size, ISzAlloc *alloc); 33 | void DynBuf_Free(CDynBuf *p, ISzAlloc *alloc); 34 | 35 | #ifdef __cplusplus 36 | } 37 | #endif 38 | 39 | #endif 40 | -------------------------------------------------------------------------------- /src/od-aros/7z/Alloc.h: -------------------------------------------------------------------------------- 1 | /* Alloc.h -- Memory allocation functions 2 | 2009-02-07 : Igor Pavlov : Public domain */ 3 | 4 | #ifndef __COMMON_ALLOC_H 5 | #define __COMMON_ALLOC_H 6 | 7 | #include 8 | 9 | #ifdef __cplusplus 10 | extern "C" { 11 | #endif 12 | 13 | void *MyAlloc(size_t size); 14 | void MyFree(void *address); 15 | 16 | #ifdef _WIN32 17 | 18 | void SetLargePageSize(); 19 | 20 | void *MidAlloc(size_t size); 21 | void MidFree(void *address); 22 | void *BigAlloc(size_t size); 23 | void BigFree(void *address); 24 | 25 | #else 26 | 27 | #define MidAlloc(size) MyAlloc(size) 28 | #define MidFree(address) MyFree(address) 29 | #define BigAlloc(size) MyAlloc(size) 30 | #define BigFree(address) MyFree(address) 31 | 32 | #endif 33 | 34 | #ifdef __cplusplus 35 | } 36 | #endif 37 | 38 | #endif 39 | -------------------------------------------------------------------------------- /src/od-aros/7z/aes.h: -------------------------------------------------------------------------------- 1 | /* Aes.h -- AES encryption / decryption 2 | 2009-11-23 : Igor Pavlov : Public domain */ 3 | 4 | #ifndef __AES_H 5 | #define __AES_H 6 | 7 | #include "types.h" 8 | 9 | EXTERN_C_BEGIN 10 | 11 | #define AES_BLOCK_SIZE 16 12 | 13 | /* Call AesGenTables one time before other AES functions */ 14 | void AesGenTables(void); 15 | 16 | /* UInt32 pointers must be 16-byte aligned */ 17 | 18 | /* 16-byte (4 * 32-bit words) blocks: 1 (IV) + 1 (keyMode) + 15 (AES-256 roundKeys) */ 19 | #define AES_NUM_IVMRK_WORDS ((1 + 1 + 15) * 4) 20 | 21 | /* aes - 16-byte aligned pointer to keyMode+roundKeys sequence */ 22 | /* keySize = 16 or 24 or 32 (bytes) */ 23 | typedef void (MY_FAST_CALL *AES_SET_KEY_FUNC)(UInt32 *aes, const Byte *key, unsigned keySize); 24 | void MY_FAST_CALL Aes_SetKey_Enc(UInt32 *aes, const Byte *key, unsigned keySize); 25 | void MY_FAST_CALL Aes_SetKey_Dec(UInt32 *aes, const Byte *key, unsigned keySize); 26 | 27 | /* ivAes - 16-byte aligned pointer to iv+keyMode+roundKeys sequence: UInt32[AES_NUM_IVMRK_WORDS] */ 28 | void AesCbc_Init(UInt32 *ivAes, const Byte *iv); /* iv size is AES_BLOCK_SIZE */ 29 | /* data - 16-byte aligned pointer to data */ 30 | /* numBlocks - the number of 16-byte blocks in data array */ 31 | typedef void (MY_FAST_CALL *AES_CODE_FUNC)(UInt32 *ivAes, Byte *data, size_t numBlocks); 32 | extern AES_CODE_FUNC g_AesCbc_Encode; 33 | extern AES_CODE_FUNC g_AesCbc_Decode; 34 | extern AES_CODE_FUNC g_AesCtr_Code; 35 | 36 | EXTERN_C_END 37 | 38 | #endif 39 | -------------------------------------------------------------------------------- /src/od-aros/7z/bcj2.h: -------------------------------------------------------------------------------- 1 | /* Bcj2.h -- Converter for x86 code (BCJ2) 2 | 2009-02-07 : Igor Pavlov : Public domain */ 3 | 4 | #ifndef __BCJ2_H 5 | #define __BCJ2_H 6 | 7 | #include "types.h" 8 | 9 | #ifdef __cplusplus 10 | extern "C" { 11 | #endif 12 | 13 | /* 14 | Conditions: 15 | outSize <= FullOutputSize, 16 | where FullOutputSize is full size of output stream of x86_2 filter. 17 | 18 | If buf0 overlaps outBuf, there are two required conditions: 19 | 1) (buf0 >= outBuf) 20 | 2) (buf0 + size0 >= outBuf + FullOutputSize). 21 | 22 | Returns: 23 | SZ_OK 24 | SZ_ERROR_DATA - Data error 25 | */ 26 | 27 | int Bcj2_Decode( 28 | const Byte *buf0, SizeT size0, 29 | const Byte *buf1, SizeT size1, 30 | const Byte *buf2, SizeT size2, 31 | const Byte *buf3, SizeT size3, 32 | Byte *outBuf, SizeT outSize); 33 | 34 | #ifdef __cplusplus 35 | } 36 | #endif 37 | 38 | #endif 39 | -------------------------------------------------------------------------------- /src/od-aros/7z/bwtsort.h: -------------------------------------------------------------------------------- 1 | /* BwtSort.h -- BWT block sorting 2 | 2009-02-07 : Igor Pavlov : Public domain */ 3 | 4 | #ifndef __BWT_SORT_H 5 | #define __BWT_SORT_H 6 | 7 | #include "types.h" 8 | 9 | #ifdef __cplusplus 10 | extern "C" { 11 | #endif 12 | 13 | /* use BLOCK_SORT_EXTERNAL_FLAGS if blockSize can be > 1M */ 14 | /* #define BLOCK_SORT_EXTERNAL_FLAGS */ 15 | 16 | #ifdef BLOCK_SORT_EXTERNAL_FLAGS 17 | #define BLOCK_SORT_EXTERNAL_SIZE(blockSize) ((((blockSize) + 31) >> 5)) 18 | #else 19 | #define BLOCK_SORT_EXTERNAL_SIZE(blockSize) 0 20 | #endif 21 | 22 | #define BLOCK_SORT_BUF_SIZE(blockSize) ((blockSize) * 2 + BLOCK_SORT_EXTERNAL_SIZE(blockSize) + (1 << 16)) 23 | 24 | UInt32 BlockSort(UInt32 *indices, const Byte *data, UInt32 blockSize); 25 | 26 | #ifdef __cplusplus 27 | } 28 | #endif 29 | 30 | #endif 31 | -------------------------------------------------------------------------------- /src/od-aros/7z/delta.h: -------------------------------------------------------------------------------- 1 | /* Delta.h -- Delta converter 2 | 2009-04-15 : Igor Pavlov : Public domain */ 3 | 4 | #ifndef __DELTA_H 5 | #define __DELTA_H 6 | 7 | #include "types.h" 8 | 9 | #ifdef __cplusplus 10 | extern "C" { 11 | #endif 12 | 13 | #define DELTA_STATE_SIZE 256 14 | 15 | void Delta_Init(Byte *state); 16 | void Delta_Encode(Byte *state, unsigned delta, Byte *data, SizeT size); 17 | void Delta_Decode(Byte *state, unsigned delta, Byte *data, SizeT size); 18 | 19 | #ifdef __cplusplus 20 | } 21 | #endif 22 | 23 | #endif 24 | -------------------------------------------------------------------------------- /src/od-aros/7z/huffenc.h: -------------------------------------------------------------------------------- 1 | /* HuffEnc.h -- Huffman encoding 2 | 2009-02-07 : Igor Pavlov : Public domain */ 3 | 4 | #ifndef __HUFF_ENC_H 5 | #define __HUFF_ENC_H 6 | 7 | #include "types.h" 8 | 9 | #ifdef __cplusplus 10 | extern "C" { 11 | #endif 12 | 13 | /* 14 | Conditions: 15 | num <= 1024 = 2 ^ NUM_BITS 16 | Sum(freqs) < 4M = 2 ^ (32 - NUM_BITS) 17 | maxLen <= 16 = kMaxLen 18 | Num_Items(p) >= HUFFMAN_TEMP_SIZE(num) 19 | */ 20 | 21 | void Huffman_Generate(const UInt32 *freqs, UInt32 *p, Byte *lens, UInt32 num, UInt32 maxLen); 22 | 23 | #ifdef __cplusplus 24 | } 25 | #endif 26 | 27 | #endif 28 | -------------------------------------------------------------------------------- /src/od-aros/7z/rotatedefs.h: -------------------------------------------------------------------------------- 1 | /* RotateDefs.h -- Rotate functions 2 | 2009-02-07 : Igor Pavlov : Public domain */ 3 | 4 | #ifndef __ROTATE_DEFS_H 5 | #define __ROTATE_DEFS_H 6 | 7 | #ifdef _MSC_VER 8 | 9 | #include 10 | #define rotlFixed(x, n) _rotl((x), (n)) 11 | #define rotrFixed(x, n) _rotr((x), (n)) 12 | 13 | #else 14 | 15 | #define rotlFixed(x, n) (((x) << (n)) | ((x) >> (32 - (n)))) 16 | #define rotrFixed(x, n) (((x) >> (n)) | ((x) << (32 - (n)))) 17 | 18 | #endif 19 | 20 | #endif 21 | -------------------------------------------------------------------------------- /src/od-aros/7z/sha256.h: -------------------------------------------------------------------------------- 1 | /* Sha256.h -- SHA-256 Hash 2 | 2009-02-07 : Igor Pavlov : Public domain */ 3 | 4 | #ifndef __CRYPTO_SHA256_H 5 | #define __CRYPTO_SHA256_H 6 | 7 | #include "types.h" 8 | 9 | #ifdef __cplusplus 10 | extern "C" { 11 | #endif 12 | 13 | #define SHA256_DIGEST_SIZE 32 14 | 15 | typedef struct 16 | { 17 | UInt32 state[8]; 18 | UInt64 count; 19 | Byte buffer[64]; 20 | } CSha256; 21 | 22 | void Sha256_Init(CSha256 *p); 23 | void Sha256_Update(CSha256 *p, const Byte *data, size_t size); 24 | void Sha256_Final(CSha256 *p, Byte *digest); 25 | 26 | #ifdef __cplusplus 27 | } 28 | #endif 29 | 30 | #endif 31 | -------------------------------------------------------------------------------- /src/od-aros/7z/sort.h: -------------------------------------------------------------------------------- 1 | /* Sort.h -- Sort functions 2 | 2009-02-07 : Igor Pavlov : Public domain */ 3 | 4 | #ifndef __7Z_SORT_H 5 | #define __7Z_SORT_H 6 | 7 | #include "types.h" 8 | 9 | #ifdef __cplusplus 10 | extern "C" { 11 | #endif 12 | 13 | void HeapSort(UInt32 *p, UInt32 size); 14 | /* void HeapSortRef(UInt32 *p, UInt32 *vals, UInt32 size); */ 15 | 16 | #ifdef __cplusplus 17 | } 18 | #endif 19 | 20 | #endif 21 | -------------------------------------------------------------------------------- /src/od-aros/7z/xzcrc64.h: -------------------------------------------------------------------------------- 1 | /* XzCrc64.c -- CRC64 calculation 2 | 2009-04-15 : Igor Pavlov : Public domain */ 3 | 4 | #ifndef __XZ_CRC64_H 5 | #define __XZ_CRC64_H 6 | 7 | #include 8 | 9 | #include "types.h" 10 | 11 | #ifdef __cplusplus 12 | extern "C" { 13 | #endif 14 | 15 | extern UInt64 g_Crc64Table[]; 16 | 17 | void MY_FAST_CALL Crc64GenerateTable(void); 18 | 19 | #define CRC64_INIT_VAL 0xFFFFFFFFFFFFFFFF 20 | #define CRC64_GET_DIGEST(crc) ((crc) ^ 0xFFFFFFFFFFFFFFFF) 21 | #define CRC64_UPDATE_BYTE(crc, b) (g_Crc64Table[((crc) ^ (b)) & 0xFF] ^ ((crc) >> 8)) 22 | 23 | UInt64 MY_FAST_CALL Crc64Update(UInt64 crc, const void *data, size_t size); 24 | UInt64 MY_FAST_CALL Crc64Calc(const void *data, size_t size); 25 | 26 | #ifdef __cplusplus 27 | } 28 | #endif 29 | 30 | #endif 31 | -------------------------------------------------------------------------------- /src/od-aros/7z/xzenc.h: -------------------------------------------------------------------------------- 1 | /* XzEnc.h -- Xz Encode 2 | 2009-04-15 : Igor Pavlov : Public domain */ 3 | 4 | #ifndef __XZ_ENC_H 5 | #define __XZ_ENC_H 6 | 7 | #include "lzma2enc.h" 8 | 9 | #include "xz.h" 10 | 11 | #ifdef __cplusplus 12 | extern "C" { 13 | #endif 14 | 15 | SRes Xz_Encode(ISeqOutStream *outStream, ISeqInStream *inStream, 16 | const CLzma2EncProps *lzma2Props, Bool useSubblock, 17 | ICompressProgress *progress); 18 | 19 | SRes Xz_EncodeEmpty(ISeqOutStream *outStream); 20 | 21 | #ifdef __cplusplus 22 | } 23 | #endif 24 | 25 | #endif 26 | -------------------------------------------------------------------------------- /src/od-aros/SDL_Config/Makefile: -------------------------------------------------------------------------------- 1 | # 2 | # simple Makefile to build SDL_Config link library for AROS 3 | # 4 | # Copyright 2011-2017 Oliver Brunner - arosoliver-brunner.de 5 | # 6 | 7 | # to build for 8 | # AROS ABI v0: ABI=v0 9 | # AROS ABI v1: ABI=v1 10 | 11 | OBJDIR = obj/$(CPU) 12 | # build library in the parent object dir. It is fetched from there during linking 13 | BIN = ../$(OBJDIR)/libSDL_Config.a 14 | 15 | CPP = $(SVN)/AROS/bin/$(ARCH)-$(CPU)/tools/crosstools/$(CPU)-aros-c++ 16 | CC = $(SVN)/AROS/bin/$(ARCH)-$(CPU)/tools/crosstools/$(CPU)-aros-gcc 17 | AR = $(SVN)/AROS/bin/$(ARCH)-$(CPU)/tools/crosstools/$(CPU)-aros-ar 18 | 19 | OBJS = $(OBJDIR)/SDL_config.o 20 | 21 | LINKOBJ = SDL_config.o 22 | SUB = AROS/Developer 23 | INCS = -I$(SVN)/AROS/bin/$(ARCH)-$(CPU)/$(SUB)/include -I$(SVN)/AROS/bin/amiga-$(CPU)/$(SUB)/include -I$(SVN)/AROS/bin/$(ARCH)-$(CPU)/AROS/Developer/SDK/Extras/include 24 | 25 | CPPFLAGS= $(INCS) -fexpensive-optimizations -O3 26 | RM = rm -f 27 | 28 | 29 | .PHONY: all all-before all-after clean clean-custom 30 | 31 | all: prepare $(BIN) 32 | 33 | prepare: 34 | mkdir -p $(OBJDIR) 35 | 36 | clean: 37 | ${RM} $(OBJS) $(BIN) $(TESTOBJ) 38 | 39 | $(BIN): $(OBJS) 40 | $(AR) r $(BIN) $(OBJS) 41 | 42 | #ranlib $(BIN) 43 | 44 | $(OBJDIR)/%.o: %.c 45 | $(CPP) $(CPPFLAGS) -o $@ -c $*.c 46 | -------------------------------------------------------------------------------- /src/od-aros/SDL_Config/SDL_config_lib.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BlitterStudio/janus-uae/4e579335c43b26e54573f954464c1e849ec8a90d/src/od-aros/SDL_Config/SDL_config_lib.h -------------------------------------------------------------------------------- /src/od-aros/SDL_Config/mmakefile.src: -------------------------------------------------------------------------------- 1 | # $Id$ 2 | 3 | include $(SRCDIR)/config/aros.cfg 4 | 5 | LIBSDLCONFFILES := \ 6 | SDL_config 7 | ## SDL_config_cpp_interface \ 8 | ## SDL_config_multi_values \ 9 | ## SDL_config_cpp_readnwrite \ 10 | ## SDL_config_saving \ 11 | ## SDL_config_utils 12 | 13 | NOWARN_FLAGS := $(NOWARN_OVERFLOW) $(NOWARN_UNUSED_VALUE) \ 14 | $(NOWARN_MISLEADING_INDENTATION) $(NOWARN_SIGN_COMPARE) \ 15 | $(NOWARN_COMMENT) 16 | LIBSDLCONFOBJS := $(addsuffix .o,$(addprefix $(GENDIR)/$(CURDIR)/,$(LIBSDLCONFFILES))) 17 | USER_INCLUDES := -I$(SRCDIR)/$(CURDIR) -I$(AROS_CONTRIB_INCLUDES) 18 | USER_LDFLAGS := -L$(AROS_CONTRIB_LIB) 19 | 20 | #MM local-juae-sdlconfig-obj : contrib-sdl local-juae-sdlconfig-dirs 21 | 22 | local-juae-sdlconfig-obj: $(LIBSDLCONFOBJS) 23 | 24 | $(GENDIR)/$(CURDIR)/%.o: %.c 25 | @$(AROS_CXX) $(CXXFLAGS) $(NOWARN_FLAGS) $(USER_INCLUDES) -o $@ -c $< 26 | 27 | #MM local-juae-sdlconfig : local-juae-sdlconfig-obj 28 | 29 | local-juae-sdlconfig: 30 | %mklib_q to=$(GENDIR)/$(CURDIR)/../../lib/libSDL_Config.a from="$(LIBSDLCONFOBJS)" 31 | 32 | #MM 33 | local-juae-sdlconfig-dirs : 34 | %mkdirs_q $(GENDIR)/$(CURDIR) $(GENDIR)/$(CURDIR)/../../lib 35 | 36 | %common 37 | -------------------------------------------------------------------------------- /src/od-aros/aros_uaenet.h: -------------------------------------------------------------------------------- 1 | #include "ethernet.h" 2 | 3 | typedef void (uaenet_gotfunc)(struct s2devstruct *dev, const uae_u8 *data, int len); 4 | typedef int (uaenet_getfunc)(struct s2devstruct *dev, uae_u8 *d, int *len); 5 | 6 | #define MAX_TOTAL_NET_DEVICES 10 7 | 8 | extern struct netdriverdata *uaenet_enumerate (struct netdriverdata **out, const TCHAR *name); 9 | extern void uaenet_enumerate_free (struct netdriverdata *tcp); 10 | extern void uaenet_close_driver (struct netdriverdata *tc); 11 | 12 | extern int uaenet_getdatalenght (void); 13 | extern int uaenet_getbytespending (void*); 14 | extern int uaenet_open (void*, struct netdriverdata*, void*, uaenet_gotfunc*, uaenet_getfunc*, int); 15 | extern void uaenet_close (void*); 16 | extern void uaenet_gotdata (struct s2devstruct *dev, const uae_u8 *data, int len); 17 | extern int uaenet_getdata (struct s2devstruct *dev, uae_u8 *d, int *len); 18 | extern void uaenet_trigger (void*); 19 | 20 | -------------------------------------------------------------------------------- /src/od-aros/avioutput.cpp: -------------------------------------------------------------------------------- 1 | /* avi output stubs.. */ 2 | 3 | void frame_drawn (void) { 4 | } 5 | -------------------------------------------------------------------------------- /src/od-aros/cda_play.h: -------------------------------------------------------------------------------- 1 | 2 | #ifdef _WIN32 3 | #include 4 | #endif 5 | 6 | class cda_audio 7 | { 8 | private: 9 | int bufsize; 10 | #ifdef _WIN32 11 | HWAVEOUT wavehandle; 12 | WAVEHDR whdr[2]; 13 | int num_sectors; 14 | int sectorsize; 15 | int volume[2]; 16 | LPDIRECTSOUND8 ds; 17 | LPDIRECTSOUNDBUFFER8 dsbuf; 18 | LPDIRECTSOUNDNOTIFY dsnotify; 19 | HANDLE notifyevent[2]; 20 | #endif 21 | bool playing; 22 | bool active; 23 | 24 | public: 25 | uae_u8 *buffers[2]; 26 | 27 | cda_audio(int num_sectors, int sectorsize, int samplerate); 28 | ~cda_audio(); 29 | void setvolume(int left, int right); 30 | bool play(int bufnum); 31 | void wait(void); 32 | void wait(int bufnum); 33 | bool isplaying(int bufnum); 34 | }; 35 | 36 | -------------------------------------------------------------------------------- /src/od-aros/gui/combo.h: -------------------------------------------------------------------------------- 1 | #ifndef __COMBO_H__ 2 | #define __COMBO_H__ 3 | 4 | int create_combo_class(void); 5 | void delete_combo_class(void); 6 | 7 | extern struct MUI_CustomClass *CL_Combo; 8 | #endif /* __COMBO_H__ */ 9 | -------------------------------------------------------------------------------- /src/od-aros/gui/cursor.cpp: -------------------------------------------------------------------------------- 1 | 2 | #include 3 | #include 4 | 5 | #include 6 | #include 7 | #include 8 | #include 9 | 10 | #include "sysconfig.h" 11 | #include "sysdeps.h" 12 | 13 | #include "aros.h" 14 | #include "winnt.h" 15 | #include "cursor.h" 16 | 17 | 18 | HCURSOR LoadCursor( HINSTANCE hInstance, LPCTSTR lpCursorName) { 19 | TODO(); 20 | return NULL; 21 | } 22 | 23 | HCURSOR SetCursor(HCURSOR hCursor) { 24 | TODO(); 25 | return NULL; 26 | } 27 | -------------------------------------------------------------------------------- /src/od-aros/gui/cursor.h: -------------------------------------------------------------------------------- 1 | #ifndef __CURSOR_H__ 2 | #define __CURSOR_H__ 3 | 4 | #include "aros.h" 5 | 6 | #define HCURSOR IPTR 7 | 8 | #define IDC_ARROW "IDC_ARROW" 9 | #define IDC_WAIT "IDC_WAIT" 10 | 11 | HCURSOR LoadCursor(HINSTANCE hInstance, LPCTSTR lpCursorName); 12 | HCURSOR SetCursor(HCURSOR hCursor); 13 | 14 | #endif 15 | 16 | -------------------------------------------------------------------------------- /src/od-aros/gui/images/README.txt: -------------------------------------------------------------------------------- 1 | Those files are from od-win32/resources/*.ico files. 2 | Autoconverting them failed for some more comlex ico formats, so 3 | I converted the manually (with convert or with gimp). 4 | 5 | oli 6 | -------------------------------------------------------------------------------- /src/od-aros/gui/images/amigainfo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BlitterStudio/janus-uae/4e579335c43b26e54573f954464c1e849ec8a90d/src/od-aros/gui/images/amigainfo.png -------------------------------------------------------------------------------- /src/od-aros/gui/images/avioutput.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BlitterStudio/janus-uae/4e579335c43b26e54573f954464c1e849ec8a90d/src/od-aros/gui/images/avioutput.png -------------------------------------------------------------------------------- /src/od-aros/gui/images/chip.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BlitterStudio/janus-uae/4e579335c43b26e54573f954464c1e849ec8a90d/src/od-aros/gui/images/chip.png -------------------------------------------------------------------------------- /src/od-aros/gui/images/configfile.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BlitterStudio/janus-uae/4e579335c43b26e54573f954464c1e849ec8a90d/src/od-aros/gui/images/configfile.png -------------------------------------------------------------------------------- /src/od-aros/gui/images/cpu.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BlitterStudio/janus-uae/4e579335c43b26e54573f954464c1e849ec8a90d/src/od-aros/gui/images/cpu.png -------------------------------------------------------------------------------- /src/od-aros/gui/images/diskimage.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BlitterStudio/janus-uae/4e579335c43b26e54573f954464c1e849ec8a90d/src/od-aros/gui/images/diskimage.png -------------------------------------------------------------------------------- /src/od-aros/gui/images/drive.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BlitterStudio/janus-uae/4e579335c43b26e54573f954464c1e849ec8a90d/src/od-aros/gui/images/drive.png -------------------------------------------------------------------------------- /src/od-aros/gui/images/e.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BlitterStudio/janus-uae/4e579335c43b26e54573f954464c1e849ec8a90d/src/od-aros/gui/images/e.png -------------------------------------------------------------------------------- /src/od-aros/gui/images/expansion.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BlitterStudio/janus-uae/4e579335c43b26e54573f954464c1e849ec8a90d/src/od-aros/gui/images/expansion.png -------------------------------------------------------------------------------- /src/od-aros/gui/images/file.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BlitterStudio/janus-uae/4e579335c43b26e54573f954464c1e849ec8a90d/src/od-aros/gui/images/file.png -------------------------------------------------------------------------------- /src/od-aros/gui/images/floppy35.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BlitterStudio/janus-uae/4e579335c43b26e54573f954464c1e849ec8a90d/src/od-aros/gui/images/floppy35.png -------------------------------------------------------------------------------- /src/od-aros/gui/images/folder.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BlitterStudio/janus-uae/4e579335c43b26e54573f954464c1e849ec8a90d/src/od-aros/gui/images/folder.png -------------------------------------------------------------------------------- /src/od-aros/gui/images/i.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BlitterStudio/janus-uae/4e579335c43b26e54573f954464c1e849ec8a90d/src/od-aros/gui/images/i.png -------------------------------------------------------------------------------- /src/od-aros/gui/images/joystick.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BlitterStudio/janus-uae/4e579335c43b26e54573f954464c1e849ec8a90d/src/od-aros/gui/images/joystick.png -------------------------------------------------------------------------------- /src/od-aros/gui/images/k.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BlitterStudio/janus-uae/4e579335c43b26e54573f954464c1e849ec8a90d/src/od-aros/gui/images/k.png -------------------------------------------------------------------------------- /src/od-aros/gui/images/l.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BlitterStudio/janus-uae/4e579335c43b26e54573f954464c1e849ec8a90d/src/od-aros/gui/images/l.png -------------------------------------------------------------------------------- /src/od-aros/gui/images/misc.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BlitterStudio/janus-uae/4e579335c43b26e54573f954464c1e849ec8a90d/src/od-aros/gui/images/misc.png -------------------------------------------------------------------------------- /src/od-aros/gui/images/move_dow.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BlitterStudio/janus-uae/4e579335c43b26e54573f954464c1e849ec8a90d/src/od-aros/gui/images/move_dow.png -------------------------------------------------------------------------------- /src/od-aros/gui/images/move_up.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BlitterStudio/janus-uae/4e579335c43b26e54573f954464c1e849ec8a90d/src/od-aros/gui/images/move_up.png -------------------------------------------------------------------------------- /src/od-aros/gui/images/paths.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BlitterStudio/janus-uae/4e579335c43b26e54573f954464c1e849ec8a90d/src/od-aros/gui/images/paths.png -------------------------------------------------------------------------------- /src/od-aros/gui/images/port.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BlitterStudio/janus-uae/4e579335c43b26e54573f954464c1e849ec8a90d/src/od-aros/gui/images/port.png -------------------------------------------------------------------------------- /src/od-aros/gui/images/quickstart.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BlitterStudio/janus-uae/4e579335c43b26e54573f954464c1e849ec8a90d/src/od-aros/gui/images/quickstart.png -------------------------------------------------------------------------------- /src/od-aros/gui/images/root.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BlitterStudio/janus-uae/4e579335c43b26e54573f954464c1e849ec8a90d/src/od-aros/gui/images/root.png -------------------------------------------------------------------------------- /src/od-aros/gui/images/screen.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BlitterStudio/janus-uae/4e579335c43b26e54573f954464c1e849ec8a90d/src/od-aros/gui/images/screen.png -------------------------------------------------------------------------------- /src/od-aros/gui/images/sound.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BlitterStudio/janus-uae/4e579335c43b26e54573f954464c1e849ec8a90d/src/od-aros/gui/images/sound.png -------------------------------------------------------------------------------- /src/od-aros/gui/images/winuae2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BlitterStudio/janus-uae/4e579335c43b26e54573f954464c1e849ec8a90d/src/od-aros/gui/images/winuae2.png -------------------------------------------------------------------------------- /src/od-aros/gui/mui_class.h: -------------------------------------------------------------------------------- 1 | #ifndef __MUI_CLASS_H__ 2 | #define __MUI_CLASS_H__ 3 | 4 | struct Data { 5 | struct Hook LayoutHook; 6 | struct Hook MyMUIHook_pushbutton; 7 | struct Hook MyMUIHook_select; 8 | struct Hook MyMUIHook_slide; 9 | struct Hook MyMUIHook_combo; 10 | struct Hook MyMUIHook_entry; 11 | struct Hook MyMUIHook_list_active; 12 | struct Hook MyMUIHook_tree_active; 13 | struct Hook MyMUIHook_tree_double; 14 | #if 0 15 | struct Hook MyMUIHook_tree_insert; 16 | struct Hook MyMUIHook_tree_construct; 17 | struct Hook MyMUIHook_tree_destruct; 18 | struct Hook MyMUIHook_tree_display; 19 | #endif 20 | ULONG width, height; 21 | HWND hwnd; 22 | struct TextFont *font; 23 | int *(*func) (Element *hDlg, UINT msg, ULONG wParam, IPTR lParam); 24 | }; 25 | 26 | Element *get_elem_from_obj(struct Data *data, Object *obj); 27 | Object *new_tree(ULONG i, void *f, struct Data *data, Object **nlisttree); 28 | 29 | #endif 30 | -------------------------------------------------------------------------------- /src/od-aros/gui/mui_dialog.h: -------------------------------------------------------------------------------- 1 | #ifndef _MUI_DIALOG_H_ 2 | #define _MUI_DIALOG_H_ 3 | 4 | #include "muigui.h" /* HINSTANCE declaration */ 5 | 6 | #define INT_PTR int 7 | #define DLGPROC IPTR 8 | 9 | typedef struct { 10 | DWORD style; 11 | DWORD dwExtendedStyle; 12 | WORD cdit; 13 | short x; 14 | short y; 15 | short cx; 16 | short cy; 17 | } DLGTEMPLATE, *LPDLGTEMPLATE, *LPCDLGTEMPLATEW, *LPDLGTEMPLATE; 18 | 19 | typedef DLGTEMPLATE *LPCDLGTEMPLATE; 20 | 21 | struct newresource 22 | { 23 | LPCDLGTEMPLATEW resource; 24 | HINSTANCE inst; 25 | int size; 26 | int tmpl; 27 | int width, height; 28 | }; 29 | 30 | int GetDlgCtrlID(HWND hwndCtl); 31 | BOOL EndDialog(HWND hDlg, int nResult); 32 | UINT GetDlgItemInt(HWND hDlg, int nIDDlgItem, BOOL *lpTranslated, BOOL bSigned); 33 | INT_PTR DialogBoxIndirect(HINSTANCE hInstance, LPCDLGTEMPLATE lpTemplate, HWND hWndParent, INT_PTR (*func) (HWND hDlg, UINT msg, WPARAM wParam, LPARAM lParam)); 34 | /* AROS hack version: */ 35 | INT_PTR DialogBoxIndirect(ULONG hInstance, LPCDLGTEMPLATE lpTemplate, HWND hWndParent, INT_PTR (*func) (HWND hDlg, UINT msg, WPARAM wParam, LPARAM lParam)); 36 | #endif 37 | -------------------------------------------------------------------------------- /src/od-aros/gui/png2c/INSTALL: -------------------------------------------------------------------------------- 1 | Just type 'make'. You need libz.a and libpng.a installed 2 | properly with their header in the include path. 3 | -------------------------------------------------------------------------------- /src/od-aros/gui/png2c/README: -------------------------------------------------------------------------------- 1 | png2c is a small tool that converts a PNG file to 2 | a C source. 3 | 4 | Formats currently supported: 5 | - 32-bit (output: ARGB) 6 | - 24-bit 7 | 8 | Compiled and tested under unix and MorphOS 9 | (http://www.morphos.net/) 10 | 11 | -- 12 | David Gerber 13 | 14 | 15 | history: 16 | -------- 17 | 18 | 1.1: 19 | ---- 20 | - now tells RGBA instead of ARGB within the output. PNGs are always stored in 21 | RGBA. png2c will convert to ARGB though 22 | - added RGB support 23 | - changed to use defines for width/height/depth instead of constants 24 | -------------------------------------------------------------------------------- /src/od-aros/gui/png2c/mmakefile.src: -------------------------------------------------------------------------------- 1 | # $Id$ 2 | 3 | include $(TOP)/config/make.cfg 4 | 5 | #MM local-juae-gui-png2c : local-juae-gui-png2c-dirs 6 | 7 | JUAEHOSTTOOLSDIR := $(GENDIR)/$(CURDIR)/../../.. 8 | 9 | local-juae-gui-png2c: $(JUAEHOSTTOOLSDIR)/png2c 10 | 11 | $(JUAEHOSTTOOLSDIR)/png2c: png2c.c 12 | @$(HOST_CC) $(HOST_CFLAGS) $(HOST_INCLUDES) -lpng $? -o $@ 13 | 14 | #MM 15 | local-juae-gui-png2c-dirs : 16 | %mkdirs_q $(GENDIR)/$(CURDIR) 17 | 18 | %common 19 | -------------------------------------------------------------------------------- /src/od-aros/hotkeys.h: -------------------------------------------------------------------------------- 1 | /* 2 | * UAE - The Un*x Amiga Emulator 3 | * 4 | * Target-independent support for parsing hotkey sequences 5 | * 6 | * Copyright 2004 Richard Drummond 7 | * 8 | * Based on the hotkey handling previously found 9 | * in x11win.c and sdlgfx.c 10 | */ 11 | 12 | 13 | /* Maximum number of keys in a sequence */ 14 | #define HOTKEYSEQ_MAXKEYS 4 15 | 16 | struct uae_hotkeyseq 17 | { 18 | uae_u16 keyseq [HOTKEYSEQ_MAXKEYS]; /* the keycodes in this sequence */ 19 | uae_u16 key_pressed [HOTKEYSEQ_MAXKEYS]; /* a record of which have been pressed */ 20 | int complete; /* true when all keys in this sequence are pressed */ 21 | int event; /* the event this sequence generates */ 22 | }; 23 | 24 | #define MAKE_HOTKEYSEQ(key1,key2,key3,key4,event) \ 25 | {(key1), (key2), (key3), (key4)}, {0, 0, 0, 0}, 0, (event) 26 | 27 | /* The last entry in a hotkey list must be marked */ 28 | #define HOTKEYS_END MAKE_HOTKEYSEQ (0,0,0,0,0) 29 | 30 | extern void reset_hotkeys (void); 31 | 32 | extern void set_default_hotkeys (struct uae_hotkeyseq *keys); 33 | 34 | extern int match_hotkey_sequence (int key, int state); 35 | 36 | extern int handle_input_event (int, int, int, int, bool, bool); 37 | 38 | static inline void handle_hotkey_event (int event, int state) 39 | { 40 | handle_input_event (event, state, 0, 0, false, false); 41 | } 42 | -------------------------------------------------------------------------------- /src/od-aros/icons/j-uae-drawer.info.src: -------------------------------------------------------------------------------- 1 | TYPE = DRAWER 2 | -------------------------------------------------------------------------------- /src/od-aros/icons/j-uae-drawer.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BlitterStudio/janus-uae/4e579335c43b26e54573f954464c1e849ec8a90d/src/od-aros/icons/j-uae-drawer.png -------------------------------------------------------------------------------- /src/od-aros/icons/j-uae.info.src: -------------------------------------------------------------------------------- 1 | TYPE = TOOL 2 | STACK = 524288 3 | TOOLTYPE = (FORMFEED) 4 | TOOLTYPE = (UNIT=0) 5 | -------------------------------------------------------------------------------- /src/od-aros/icons/j-uae.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BlitterStudio/janus-uae/4e579335c43b26e54573f954464c1e849ec8a90d/src/od-aros/icons/j-uae.png -------------------------------------------------------------------------------- /src/od-aros/icons/mmakefile.src: -------------------------------------------------------------------------------- 1 | # $Id$ 2 | 3 | include $(TOP)/config/make.cfg 4 | 5 | #MM- local-juae : local-juae-icons-app 6 | 7 | %build_icons mmake=local-juae-icons-app icons="J-UAE" \ 8 | dir=$(AROS_CONTRIB)/Emu/J-UAE 9 | -------------------------------------------------------------------------------- /src/od-aros/include/direct3d.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BlitterStudio/janus-uae/4e579335c43b26e54573f954464c1e849ec8a90d/src/od-aros/include/direct3d.h -------------------------------------------------------------------------------- /src/od-aros/include/dxwrap.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BlitterStudio/janus-uae/4e579335c43b26e54573f954464c1e849ec8a90d/src/od-aros/include/dxwrap.h -------------------------------------------------------------------------------- /src/od-aros/include/registry.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BlitterStudio/janus-uae/4e579335c43b26e54573f954464c1e849ec8a90d/src/od-aros/include/registry.h -------------------------------------------------------------------------------- /src/od-aros/include/resource.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BlitterStudio/janus-uae/4e579335c43b26e54573f954464c1e849ec8a90d/src/od-aros/include/resource.h -------------------------------------------------------------------------------- /src/od-aros/include/uae/uae_inputevents_def.h: -------------------------------------------------------------------------------- 1 | #ifndef LIBAMIGA_LIBAMIGA_INPUT_EVENTS_H_ 2 | #define LIBAMIGA_LIBAMIGA_INPUT_EVENTS_H_ 3 | 4 | #include "../../../inputevents.def" 5 | 6 | #endif // LIBAMIGA_LIBAMIGA_INPUT_EVENTS_H_ 7 | -------------------------------------------------------------------------------- /src/od-aros/include/win32gfx.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BlitterStudio/janus-uae/4e579335c43b26e54573f954464c1e849ec8a90d/src/od-aros/include/win32gfx.h -------------------------------------------------------------------------------- /src/od-aros/include/win32gui.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BlitterStudio/janus-uae/4e579335c43b26e54573f954464c1e849ec8a90d/src/od-aros/include/win32gui.h -------------------------------------------------------------------------------- /src/od-aros/libfsemu/video/video-common.c: -------------------------------------------------------------------------------- 1 | #ifdef HAVE_CONFIG_H 2 | #include "config.h" 3 | #endif 4 | 5 | #ifdef FS_EMU_DRIVERS 6 | 7 | #define FS_EMU_INTERNAL 8 | #include 9 | #include 10 | #include 11 | #include 12 | #include 13 | #include 14 | 15 | void (*fs_emu_buffer_configure)(int width, int height) = 0; 16 | 17 | void (*fs_emu_buffer_finish)(fs_emu_buffer *buffer) = 0; 18 | 19 | fs_emu_buffer *(*fs_emu_buffer_get)(void) = 0; 20 | 21 | void (*fs_emu_video_create_window)(int width, int height) = 0; 22 | 23 | void (*fs_emu_video_render)(void) = 0; 24 | 25 | #endif /* FS_EMU_DRIVERS */ 26 | -------------------------------------------------------------------------------- /src/od-aros/libfsemu/video/video-driver-dummy.c: -------------------------------------------------------------------------------- 1 | #ifdef HAVE_CONFIG_H 2 | #include "config.h" 3 | #endif 4 | 5 | #ifdef FS_EMU_DRIVERS 6 | 7 | #define FS_EMU_INTERNAL 8 | #include 9 | #include 10 | 11 | static void register_functions(void) 12 | { 13 | 14 | } 15 | 16 | void fs_emu_video_dummy_init(void) 17 | { 18 | fs_log("fs_emu_video_dummy_init\n"); 19 | register_functions(); 20 | } 21 | 22 | #endif /* FS_EMU_DRIVER */ 23 | -------------------------------------------------------------------------------- /src/od-aros/libfsemu/video/video-driver-sdl-software.c: -------------------------------------------------------------------------------- 1 | #define VIDEO_DRIVER_SDL_SOFTWARE 2 | #include "video-driver-sdl.c" 3 | -------------------------------------------------------------------------------- /src/od-aros/libfsemu/video/video-init.c: -------------------------------------------------------------------------------- 1 | #ifdef HAVE_CONFIG_H 2 | #include "config.h" 3 | #endif 4 | 5 | #ifdef FS_EMU_DRIVERS 6 | 7 | #define FS_EMU_INTERNAL 8 | #include 9 | #include 10 | #include 11 | #include 12 | #include 13 | #include 14 | #include 15 | 16 | void fs_emu_video_init(void) 17 | { 18 | fs_log("fs_emu_video_init\n"); 19 | 20 | fs_emu_buffer_init(); 21 | 22 | fs_emu_video_dummy_init(); 23 | 24 | const char *driver = fs_config_get_const_string(OPTION_VIDEO_DRIVER); 25 | if (0) { 26 | #ifdef USE_SDL2 27 | } else if (!driver || strcmp(driver, "sdl") == 0) { 28 | fs_emu_video_sdl_init(); 29 | } else if (!driver || strcmp(driver, "sdl-software") == 0) { 30 | fs_emu_video_sdl_software_init(); 31 | #endif 32 | } 33 | 34 | fs_log("creating window\n"); 35 | fs_emu_video_create_window(640, 512); 36 | } 37 | 38 | #endif /* FS_EMU_DRIVERS */ 39 | -------------------------------------------------------------------------------- /src/od-aros/libmpeg2/AUTHORS: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BlitterStudio/janus-uae/4e579335c43b26e54573f954464c1e849ec8a90d/src/od-aros/libmpeg2/AUTHORS -------------------------------------------------------------------------------- /src/od-aros/libmpeg2/Makefile.am: -------------------------------------------------------------------------------- 1 | SUBDIRS = libmpeg2 include libvo src test vc++ 2 | DIST_SUBDIRS = doc $(SUBDIRS) 3 | 4 | EXTRA_DIST = bootstrap CodingStyle \ 5 | m4/cflags.m4 m4/inttypes.m4 m4/keywords.m4 m4/nonpic.m4 6 | ACLOCAL_AMFLAGS = -I m4 7 | 8 | -------------------------------------------------------------------------------- /src/od-aros/libmpeg2/doc/.deps/sample1.Po: -------------------------------------------------------------------------------- 1 | # dummy 2 | -------------------------------------------------------------------------------- /src/od-aros/libmpeg2/doc/.deps/sample2.Po: -------------------------------------------------------------------------------- 1 | # dummy 2 | -------------------------------------------------------------------------------- /src/od-aros/libmpeg2/doc/.deps/sample3.Po: -------------------------------------------------------------------------------- 1 | # dummy 2 | -------------------------------------------------------------------------------- /src/od-aros/libmpeg2/doc/.deps/sample4.Po: -------------------------------------------------------------------------------- 1 | # dummy 2 | -------------------------------------------------------------------------------- /src/od-aros/libmpeg2/doc/.deps/sample5.Po: -------------------------------------------------------------------------------- 1 | # dummy 2 | -------------------------------------------------------------------------------- /src/od-aros/libmpeg2/doc/.deps/sample6.Po: -------------------------------------------------------------------------------- 1 | # dummy 2 | -------------------------------------------------------------------------------- /src/od-aros/libmpeg2/doc/Makefile.am: -------------------------------------------------------------------------------- 1 | AM_CFLAGS = $(MPEG2DEC_CFLAGS) 2 | 3 | libmpeg2 = $(top_builddir)/libmpeg2/libmpeg2.la 4 | libmpeg2convert = $(top_builddir)/libmpeg2/convert/libmpeg2convert.la 5 | 6 | noinst_PROGRAMS = sample1 sample2 sample3 sample4 sample5 sample6 7 | sample1_SOURCES = sample1.c 8 | sample1_LDADD = $(libmpeg2) 9 | sample2_SOURCES = sample2.c 10 | sample2_LDADD = $(libmpeg2) $(libmpeg2convert) 11 | sample3_SOURCES = sample3.c 12 | sample3_LDADD = $(libmpeg2) 13 | sample4_SOURCES = sample4.c 14 | sample4_LDADD = $(libmpeg2) $(libmpeg2convert) 15 | sample5_SOURCES = sample5.c 16 | sample5_LDADD = $(libmpeg2) 17 | sample6_SOURCES = sample6.c 18 | sample6_LDADD = $(libmpeg2) $(libmpeg2convert) 19 | 20 | EXTRA_DIST = libmpeg2.txt 21 | -------------------------------------------------------------------------------- /src/od-aros/libmpeg2/include/Makefile.am: -------------------------------------------------------------------------------- 1 | libincludedir = $(includedir)/mpeg2dec 2 | libinclude_HEADERS = mpeg2.h mpeg2convert.h 3 | 4 | EXTRA_DIST = video_out.h mmx.h alpha_asm.h vis.h attributes.h tendra.h 5 | -------------------------------------------------------------------------------- /src/od-aros/libmpeg2/include/stamp-h1: -------------------------------------------------------------------------------- 1 | timestamp for include/config.h 2 | -------------------------------------------------------------------------------- /src/od-aros/libmpeg2/libmpeg2/.deps/motion_comp_arm_s.Plo: -------------------------------------------------------------------------------- 1 | # dummy 2 | -------------------------------------------------------------------------------- /src/od-aros/libmpeg2/libmpeg2/Makefile.am: -------------------------------------------------------------------------------- 1 | SUBDIRS = convert 2 | 3 | AM_CFLAGS = $(OPT_CFLAGS) $(LIBMPEG2_CFLAGS) 4 | 5 | lib_LTLIBRARIES = libmpeg2.la 6 | libmpeg2_la_SOURCES = alloc.c header.c decode.c slice.c motion_comp.c idct.c 7 | libmpeg2_la_LIBADD = libmpeg2arch.la 8 | libmpeg2_la_LDFLAGS = -no-undefined -version-info 1:0:1 9 | 10 | noinst_LTLIBRARIES = libmpeg2arch.la 11 | libmpeg2arch_la_SOURCES = motion_comp_mmx.c idct_mmx.c \ 12 | motion_comp_altivec.c idct_altivec.c \ 13 | motion_comp_alpha.c idct_alpha.c \ 14 | motion_comp_vis.c motion_comp_arm.c \ 15 | cpu_accel.c cpu_state.c 16 | if ARCH_ARM 17 | libmpeg2arch_la_SOURCES += motion_comp_arm_s.S 18 | endif 19 | libmpeg2arch_la_CFLAGS = $(OPT_CFLAGS) $(ARCH_OPT_CFLAGS) $(LIBMPEG2_CFLAGS) 20 | 21 | pkgconfigdir = $(libdir)/pkgconfig 22 | pkgconfig_DATA = libmpeg2.pc 23 | 24 | EXTRA_DIST = vlc.h mpeg2_internal.h 25 | -------------------------------------------------------------------------------- /src/od-aros/libmpeg2/libmpeg2/convert/Makefile.am: -------------------------------------------------------------------------------- 1 | AM_CFLAGS = $(OPT_CFLAGS) $(LIBMPEG2_CFLAGS) 2 | 3 | lib_LTLIBRARIES = libmpeg2convert.la 4 | libmpeg2convert_la_SOURCES = rgb.c uyvy.c 5 | libmpeg2convert_la_LIBADD = libmpeg2convertarch.la 6 | libmpeg2convert_la_LDFLAGS = -no-undefined 7 | 8 | noinst_LTLIBRARIES = libmpeg2convertarch.la 9 | libmpeg2convertarch_la_SOURCES = rgb_mmx.c rgb_vis.c 10 | libmpeg2convertarch_la_CFLAGS = $(OPT_CFLAGS) $(ARCH_OPT_CFLAGS) $(LIBMPEG2_CFLAGS) 11 | 12 | pkgconfigdir = $(libdir)/pkgconfig 13 | pkgconfig_DATA = libmpeg2convert.pc 14 | 15 | EXTRA_DIST = convert_internal.h 16 | -------------------------------------------------------------------------------- /src/od-aros/libmpeg2/libmpeg2/convert/libmpeg2convert.pc: -------------------------------------------------------------------------------- 1 | prefix=/usr/local 2 | exec_prefix=${prefix} 3 | libdir=${exec_prefix}/lib 4 | includedir=${prefix}/include 5 | 6 | Name: libmpeg2convert 7 | Description: Image conversion library helper for libmpeg2 8 | Version: 0.5.1 9 | Libs: -L${libdir} -lmpeg2convert 10 | Cflags: -I${includedir}/mpeg2dec 11 | -------------------------------------------------------------------------------- /src/od-aros/libmpeg2/libmpeg2/convert/libmpeg2convert.pc.in: -------------------------------------------------------------------------------- 1 | prefix=@prefix@ 2 | exec_prefix=@exec_prefix@ 3 | libdir=@libdir@ 4 | includedir=@includedir@ 5 | 6 | Name: libmpeg2convert 7 | Description: Image conversion library helper for libmpeg2 8 | Version: @VERSION@ 9 | Libs: -L${libdir} -lmpeg2convert 10 | Cflags: -I${includedir}/mpeg2dec 11 | -------------------------------------------------------------------------------- /src/od-aros/libmpeg2/libmpeg2/libmpeg2.pc: -------------------------------------------------------------------------------- 1 | prefix=/usr/local 2 | exec_prefix=${prefix} 3 | libdir=${exec_prefix}/lib 4 | includedir=${prefix}/include 5 | 6 | Name: libmpeg2 7 | Description: MPEG-1 and MPEG-2 stream decoding library 8 | Version: 0.5.1 9 | Libs: -L${libdir} -lmpeg2 10 | Cflags: -I${includedir}/mpeg2dec 11 | -------------------------------------------------------------------------------- /src/od-aros/libmpeg2/libmpeg2/libmpeg2.pc.in: -------------------------------------------------------------------------------- 1 | prefix=@prefix@ 2 | exec_prefix=@exec_prefix@ 3 | libdir=@libdir@ 4 | includedir=@includedir@ 5 | 6 | Name: libmpeg2 7 | Description: MPEG-1 and MPEG-2 stream decoding library 8 | Version: @VERSION@ 9 | Libs: -L${libdir} -lmpeg2 10 | Cflags: -I${includedir}/mpeg2dec 11 | -------------------------------------------------------------------------------- /src/od-aros/libmpeg2/libvo/Makefile.am: -------------------------------------------------------------------------------- 1 | AM_CFLAGS = $(OPT_CFLAGS) $(LIBVO_CFLAGS) 2 | 3 | noinst_LIBRARIES = libvo.a 4 | libvo_a_SOURCES = video_out.c video_out_x11.c video_out_dx.c video_out_sdl.c \ 5 | video_out_null.c video_out_pgm.c vo_internal.h 6 | -------------------------------------------------------------------------------- /src/od-aros/libmpeg2/m4/cflags.m4: -------------------------------------------------------------------------------- 1 | dnl AC_TRY_CFLAGS (CFLAGS, [ACTION-IF-WORKS], [ACTION-IF-FAILS]) 2 | dnl check if $CC supports a given set of cflags 3 | AC_DEFUN([AC_TRY_CFLAGS], 4 | [AC_MSG_CHECKING([if $CC supports $1 flags]) 5 | SAVE_CFLAGS="$CFLAGS" 6 | CFLAGS="$1" 7 | AC_TRY_COMPILE([],[],[ac_cv_try_cflags_ok=yes],[ac_cv_try_cflags_ok=no]) 8 | CFLAGS="$SAVE_CFLAGS" 9 | AC_MSG_RESULT([$ac_cv_try_cflags_ok]) 10 | if test x"$ac_cv_try_cflags_ok" = x"yes"; then 11 | ifelse([$2],[],[:],[$2]) 12 | else 13 | ifelse([$3],[],[:],[$3]) 14 | fi]) 15 | -------------------------------------------------------------------------------- /src/od-aros/libmpeg2/m4/nonpic.m4: -------------------------------------------------------------------------------- 1 | dnl AC_LIBTOOL_NON_PIC ([ACTION-IF-WORKS], [ACTION-IF-FAILS]) 2 | dnl check for nonbuggy libtool -prefer-non-pic 3 | AC_DEFUN([AC_LIBTOOL_NON_PIC], 4 | [AC_MSG_CHECKING([if libtool supports -prefer-non-pic flag]) 5 | mkdir ac_test_libtool; cd ac_test_libtool; ac_cv_libtool_non_pic=no 6 | echo "int g (int i); static int h (int i) {return g (i);} int f (int i) {return h (i);}" >f.c 7 | echo "int (* hook) (int) = 0; int g (int i) {if (hook) i = hook (i); return i + 1;}" >g.c 8 | ../libtool --mode=compile $CC $CFLAGS -prefer-non-pic \ 9 | -c f.c >/dev/null 2>&1 && \ 10 | ../libtool --mode=compile $CC $CFLAGS -prefer-non-pic \ 11 | -c g.c >/dev/null 2>&1 && \ 12 | ../libtool --mode=link $CC $CFLAGS -prefer-non-pic -o libfoo.la \ 13 | -rpath / f.lo g.lo >/dev/null 2>&1 && 14 | ac_cv_libtool_non_pic=yes 15 | cd ..; rm -fr ac_test_libtool; AC_MSG_RESULT([$ac_cv_libtool_non_pic]) 16 | if test x"$ac_cv_libtool_non_pic" = x"yes"; then 17 | ifelse([$1],[],[:],[$1]) 18 | else 19 | ifelse([$2],[],[:],[$2]) 20 | fi]) 21 | 22 | -------------------------------------------------------------------------------- /src/od-aros/libmpeg2/mmakefile.src: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BlitterStudio/janus-uae/4e579335c43b26e54573f954464c1e849ec8a90d/src/od-aros/libmpeg2/mmakefile.src -------------------------------------------------------------------------------- /src/od-aros/libmpeg2/src/Makefile.am: -------------------------------------------------------------------------------- 1 | AM_CFLAGS = $(MPEG2DEC_CFLAGS) $(LIBVO_CFLAGS) 2 | 3 | libmpeg2 = $(top_builddir)/libmpeg2/libmpeg2.la 4 | libmpeg2convert = $(top_builddir)/libmpeg2/convert/libmpeg2convert.la 5 | libvo = $(top_builddir)/libvo/libvo.a $(LIBVO_LIBS) 6 | 7 | bin_PROGRAMS = mpeg2dec extract_mpeg2 corrupt_mpeg2 8 | mpeg2dec_SOURCES = mpeg2dec.c dump_state.c getopt.c gettimeofday.c 9 | mpeg2dec_LDADD = $(libvo) $(libmpeg2) $(libmpeg2convert) 10 | extract_mpeg2_SOURCES = extract_mpeg2.c getopt.c 11 | corrupt_mpeg2_SOURCES = corrupt_mpeg2.c getopt.c 12 | 13 | man_MANS = mpeg2dec.1 extract_mpeg2.1 14 | 15 | EXTRA_DIST = getopt.h gettimeofday.h $(man_MANS) 16 | -------------------------------------------------------------------------------- /src/od-aros/libmpeg2/src/extract_mpeg2.1: -------------------------------------------------------------------------------- 1 | .TH mpeg2dec "1" "extract_mpeg2" 2 | .SH NAME 3 | extract_mpeg2 \- extract MPEG video streams from a multiplexed stream. 4 | .SH SYNOPSIS 5 | .B extract_mpeg2 6 | [\fI-h\fR] [\fI-s [track]\fR] [\fI-t pid\fR] [\fIfile\fR] 7 | .SH DESCRIPTION 8 | `extract_mpeg2' extracts MPEG video streams from a multiplexed stream. 9 | Input is from stdin if no file is given. 10 | .TP 11 | \fB\-h\fR 12 | display help 13 | .TP 14 | \fB\-s track\fR 15 | set track number (0-0xf or 0xe0-0xef) 16 | .TP 17 | \fB\-t pid\fR 18 | use transport stream demultiplexer, pid 0x10-0x1ffe 19 | .SH AUTHORS 20 | Michel Lespinasse 21 | .br 22 | Aaron Holtzman 23 | .br 24 | And many others on the net. 25 | .SH "REPORTING BUGS" 26 | Report bugs to . 27 | .SH COPYRIGHT 28 | Copyright \(co 2000-2003 Michel Lespinasse 29 | .br 30 | Copyright \(co 1999-2000 Aaron Holtzman 31 | .br 32 | This is free software; see the source for copying conditions. There is NO 33 | warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 34 | .SH "SEE ALSO" 35 | .BR mpeg2dec "(1)" 36 | -------------------------------------------------------------------------------- /src/od-aros/libmpeg2/src/gettimeofday.c: -------------------------------------------------------------------------------- 1 | /* 2 | * gettimeofday.c 3 | * Copyright (C) 2000-2003 Michel Lespinasse 4 | * Copyright (C) 1999-2000 Aaron Holtzman 5 | * 6 | * This file is part of mpeg2dec, a free MPEG-2 video stream decoder. 7 | * See http://libmpeg2.sourceforge.net/ for updates. 8 | * 9 | * mpeg2dec is free software; you can redistribute it and/or modify 10 | * it under the terms of the GNU General Public License as published by 11 | * the Free Software Foundation; either version 2 of the License, or 12 | * (at your option) any later version. 13 | * 14 | * mpeg2dec is distributed in the hope that it will be useful, 15 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 16 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 17 | * GNU General Public License for more details. 18 | * 19 | * You should have received a copy of the GNU General Public License 20 | * along with this program; if not, write to the Free Software 21 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 22 | */ 23 | 24 | #include "config.h" 25 | 26 | #include "gettimeofday.h" 27 | 28 | #ifdef CUSTOM_GETTIMEOFDAY 29 | 30 | #include 31 | 32 | void gettimeofday (struct timeval * tp, void * dummy) 33 | { 34 | struct timeb tm; 35 | ftime (&tm); 36 | tp->tv_sec = tm.time; 37 | tp->tv_usec = tm.millitm * 1000; 38 | } 39 | 40 | #endif 41 | -------------------------------------------------------------------------------- /src/od-aros/libmpeg2/src/mpeg2dec.1: -------------------------------------------------------------------------------- 1 | .TH mpeg2dec "1" "mpeg2dec" 2 | .SH NAME 3 | mpeg2dec \- decode MPEG and MPEG2 video streams 4 | .SH SYNOPSIS 5 | .B mpeg2dec 6 | [\fI-h\fR] [\fI-s [track]\fR] [\fI-t pid\fR] [\fI-c\fR] [\fI-o mode\fR] [\fIfile\fR] 7 | .SH DESCRIPTION 8 | `mpeg2dec' displays MPEG1 and MPEG2 video stream. 9 | Input is from stdin if no file is given. 10 | .TP 11 | \fB\-h\fR 12 | display help and available video modes 13 | .TP 14 | \fB\-s\fR 15 | use program stream demultiplexer, track 0-0xf or 0xe0-0xef 16 | .TP 17 | \fB\-t pid\fR 18 | use transport stream demultiplexer, pid 0x10-0x1ffe 19 | .TP 20 | \fB\-c\fR 21 | use c implementation, disables all accelerations 22 | .TP 23 | \fB\-o\fR \fImode\fR 24 | use video output driver `mode'. 25 | .br 26 | A list of modes is available using the \fB\-h\fR option. 27 | .SH AUTHORS 28 | Michel Lespinasse 29 | .br 30 | Aaron Holtzman 31 | .br 32 | And many others on the net. 33 | .SH "REPORTING BUGS" 34 | Report bugs to . 35 | .SH COPYRIGHT 36 | Copyright \(co 2000-2003 Michel Lespinasse 37 | .br 38 | Copyright \(co 1999-2000 Aaron Holtzman 39 | .br 40 | This is free software; see the source for copying conditions. There is NO 41 | warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 42 | .SH "SEE ALSO" 43 | .BR extract_mpeg2 "(1)" 44 | -------------------------------------------------------------------------------- /src/od-aros/libmpeg2/test/Makefile.am: -------------------------------------------------------------------------------- 1 | EXTRA_DIST = regression tests tek-525 tek-625 compile globals 2 | TESTS = regression compile globals 3 | -------------------------------------------------------------------------------- /src/od-aros/libmpeg2/test/README: -------------------------------------------------------------------------------- 1 | Please do use these tests if you do some libmpeg2 changes. 2 | 3 | * get the official suite of mpeg2 torture tests at 4 | http://libmpeg2.sourceforge.net/files/mpeg2dec-streams.tar.gz 5 | 6 | or using SVN : 7 | 8 | # svn co svn://svn.videolan.org/libmpeg2/streams 9 | 10 | (OK, I did some reorganization work on the archive, so it is not really the 11 | official suite anymore) 12 | 13 | Then, 14 | 15 | * extract this archive at the same level as your mpeg2dec directory : 16 | in your working directory you should have subdirectories mpeg2dec 17 | and streams. 18 | 19 | * or, extract this archive where you want, but change the first line 20 | of the "tests" file to reflect that location. Do _not_ remove the 21 | pound (#) sign at the beginning of the line. 22 | 23 | Now run test/regression 24 | 25 | is the name of the test suite you want to use. For the official 26 | mpeg video conformance tests, just use "tests". 27 | 28 | is the type of IDCT you are using. If your machine supports MMX, 29 | choose "mmx". If your machine uses the c idct, choose "c" 30 | 31 | That's it... 32 | 33 | walken 34 | -------------------------------------------------------------------------------- /src/od-aros/libmpeg2/test/globals: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | if test x"$srcdir" != x""; then 4 | builddir="." # running from make check, but it does not define that 5 | else 6 | srcdir=`echo "$0" | sed s,[^/]*$,,` 7 | test "$srcdir" = "$0" && srcdir=. 8 | test -z "$srcdir" && srcdir=. 9 | builddir="$srcdir" # running manually, have to assume 10 | fi 11 | 12 | srcdir=`cd $srcdir;pwd` 13 | builddir=`cd $builddir;pwd` 14 | 15 | error=0 16 | 17 | bad_globals=`nm -g --defined-only $builddir/../libmpeg2/*.o |\ 18 | awk '{if ($3) print $3}' | grep -v '^_\?mpeg2_'` 19 | 20 | if test x"$bad_globals" != x""; then 21 | echo BAD GLOBAL SYMBOLS: 22 | for s in $bad_globals; do echo $s; done 23 | error=1 24 | fi 25 | 26 | bad_globals=`nm -g --defined-only $builddir/../libmpeg2/convert/*.o |\ 27 | awk '{if ($3) print $3}' | grep -v '^_\?mpeg2convert_'` 28 | 29 | if test x"$bad_globals" != x""; then 30 | echo BAD GLOBAL SYMBOLS: 31 | for s in $bad_globals; do echo $s; done 32 | error=1 33 | fi 34 | 35 | exit $error 36 | -------------------------------------------------------------------------------- /src/od-aros/libmpeg2/vc++/Makefile.am: -------------------------------------------------------------------------------- 1 | DISTCLEANFILES = cpu_accel.obj rgb_mmx.obj cpu_state.obj \ 2 | idct_mmx.obj motion_comp_mmx.obj 3 | 4 | EXTRA_DIST = config.h inttypes.h libmpeg2.dsp libmpeg2convert.dsp \ 5 | libvo.dsp mpeg2dec.dsp mpeg2dec.dsw $(DISTCLEANFILES) 6 | 7 | WIN_GCC = i586-mingw32msvc-gcc \ 8 | -I$(top_srcdir)/include -I$(top_builddir)/include \ 9 | -Wall -Werror -O3 -fomit-frame-pointer -mcpu=pentiumpro 10 | 11 | cpu_accel.obj: FORCE 12 | $(WIN_GCC) -c $(top_srcdir)/libmpeg2/cpu_accel.c -o cpu_accel.obj 13 | 14 | cpu_state.obj: FORCE 15 | $(WIN_GCC) -c $(top_srcdir)/libmpeg2/cpu_state.c -o cpu_state.obj 16 | 17 | idct_mmx.obj: FORCE 18 | $(WIN_GCC) -c $(top_srcdir)/libmpeg2/idct_mmx.c -o idct_mmx.obj 19 | 20 | motion_comp_mmx.obj: FORCE 21 | $(WIN_GCC) -c $(top_srcdir)/libmpeg2/motion_comp_mmx.c -o motion_comp_mmx.obj 22 | 23 | rgb_mmx.obj: FORCE 24 | $(WIN_GCC) -c $(top_srcdir)/libmpeg2/convert/rgb_mmx.c -o rgb_mmx.obj 25 | 26 | FORCE: 27 | -------------------------------------------------------------------------------- /src/od-aros/libmpeg2/vc++/inttypes.h: -------------------------------------------------------------------------------- 1 | typedef signed char int8_t; 2 | typedef signed short int16_t; 3 | typedef signed int int32_t; 4 | 5 | typedef unsigned char uint8_t; 6 | typedef unsigned short uint16_t; 7 | typedef unsigned int uint32_t; 8 | -------------------------------------------------------------------------------- /src/od-aros/machdep/rpt.h: -------------------------------------------------------------------------------- 1 | /* 2 | * UAE - The Un*x Amiga Emulator 3 | * 4 | * Definitions for accessing cycle counters on a given machine, if possible. 5 | * 6 | * Copyright 1997, 1998 Bernd Schmidt 7 | * Copyright 1999 Brian King - Win32 specific 8 | */ 9 | #ifndef _RPT_H_ 10 | #define _RPT_H_ 11 | 12 | typedef unsigned long frame_time_t; 13 | extern frame_time_t read_processor_time (void); 14 | 15 | #endif 16 | -------------------------------------------------------------------------------- /src/od-aros/mp3decoder.h: -------------------------------------------------------------------------------- 1 | 2 | class mp3decoder 3 | { 4 | void *g_mp3stream; 5 | public: 6 | mp3decoder::mp3decoder(struct zfile *zf); 7 | mp3decoder(); 8 | ~mp3decoder(); 9 | uae_u8 *get(struct zfile *zf, uae_u8 *, int maxsize); 10 | uae_u32 mp3decoder::getsize(struct zfile *zf); 11 | }; 12 | -------------------------------------------------------------------------------- /src/od-aros/parser.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | * UAE - The Un*x Amiga Emulator 3 | * 4 | * Not a parser, but parallel and serial emulation for AROS 5 | * 6 | */ 7 | 8 | #include "sysconfig.h" 9 | 10 | int flashscreen; 11 | 12 | -------------------------------------------------------------------------------- /src/od-aros/registry.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BlitterStudio/janus-uae/4e579335c43b26e54573f954464c1e849ec8a90d/src/od-aros/registry.cpp -------------------------------------------------------------------------------- /src/od-aros/scaler_more.cpp: -------------------------------------------------------------------------------- 1 | /************************************************************************ 2 | * 3 | * UAE - The Un*x Amiga Emulator 4 | * 5 | * scaler_more 6 | * 7 | * Copyright 2011 Oliver Brunner - arosoliver-brunner.de 8 | * 9 | * This file is part of Janus-UAE. 10 | * 11 | * Janus-UAE is free software: you can redistribute it and/or modify 12 | * it under the terms of the GNU General Public License as published by 13 | * the Free Software Foundation, either version 3 of the License, or 14 | * (at your option) any later version. 15 | * 16 | * Janus-UAE is distributed in the hope that it will be useful, 17 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 18 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 19 | * GNU General Public License for more details. 20 | * 21 | * You should have received a copy of the GNU General Public License 22 | * along with Janus-UAE. If not, see . 23 | * 24 | * $Id$ 25 | * 26 | ************************************************************************/ 27 | 28 | #include "sysconfig.h" 29 | #include "sysdeps.h" 30 | 31 | #include "options.h" 32 | #include "custom.h" 33 | 34 | #include 35 | 36 | uae_u32 redc[3 * 256], grec[3 * 256], bluc[3 * 256]; 37 | static uae_u32 *predc, *pgrec, *pbluc; 38 | 39 | uae_s32 tyhrgb[65536]; 40 | uae_s32 tylrgb[65536]; 41 | uae_s32 tcbrgb[65536]; 42 | uae_s32 tcrrgb[65536]; 43 | 44 | -------------------------------------------------------------------------------- /src/od-aros/screenshot.cpp: -------------------------------------------------------------------------------- 1 | #include "sysconfig.h" 2 | #include "sysdeps.h" 3 | 4 | void screenshot (int mode, int doprepare) { 5 | TODO(); 6 | } 7 | -------------------------------------------------------------------------------- /src/od-aros/sdl_aros.h: -------------------------------------------------------------------------------- 1 | #define MAXBLOCKLINES_MAX INT_MAX; 2 | 3 | #define GFX_NAME "aros" 4 | -------------------------------------------------------------------------------- /src/od-aros/sdlgfx.h: -------------------------------------------------------------------------------- 1 | /* 2 | * UAE - The Un*x Amiga Emulator 3 | * 4 | * SDL graphics support 5 | * 6 | * Copyright 2004 Richard Drummond 7 | */ 8 | 9 | /* 10 | * What graphics platform are we running on . . .? 11 | * 12 | * Yes, SDL is supposed to abstract away from the underlying 13 | * platform, but we need to know this to be able to map raw keys 14 | * and to work around any platform-specific quirks . . . 15 | */ 16 | enum { 17 | SDLGFX_DRIVER_UNKNOWN, 18 | SDLGFX_DRIVER_X11, 19 | SDLGFX_DRIVER_DGA, 20 | SDLGFX_DRIVER_SVGALIB, 21 | SDLGFX_DRIVER_FBCON, 22 | SDLGFX_DRIVER_DIRECTFB, 23 | SDLGFX_DRIVER_QUARTZ, 24 | SDLGFX_DRIVER_BWINDOW, 25 | SDLGFX_DRIVER_CYBERGFX, 26 | SDLGFX_DRIVER_AMIGAOS4 27 | }; 28 | 29 | extern int get_sdlgfx_type (void); 30 | 31 | /* keyboard support */ 32 | struct uae_input_device_kbr_default *get_default_raw_keymap (int type); 33 | extern int keysym2amiga (int keycode); 34 | int modifier_hack (int *scancode, int *pressed); 35 | 36 | void DX_Fill (int dstx, int dsty, int width, int height, uae_u32 color); 37 | 38 | /* hotkey support */ 39 | struct uae_hotkeyseq *get_default_cooked_hotkeys (void); 40 | struct uae_hotkeyseq *get_default_raw_hotkeys (void); 41 | -------------------------------------------------------------------------------- /src/od-aros/sdlkeys_dik.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | #ifndef GFX_SDL_SDLKEYS_DIK_H_INCLUDED 3 | #define GFX_SDL_SDLKEYS_DIK_H_INCLUDED 1 4 | 5 | static int kc_dik_decode (int key); 6 | extern int sdlk2dik (int key); 7 | static int decode_dik_fr (int key); 8 | static int decode_dik_us (int key); 9 | static int decode_dik_de (int key); 10 | static int decode_dik_dk (int key); 11 | static int decode_dik_se (int key); 12 | static int decode_dik_it (int key); 13 | static int decode_dik_es (int key); 14 | static int decode_dik_fi (int key); 15 | static int decode_dik_tr (int key); 16 | 17 | 18 | #endif // GFX_SDL_SDLKEYS_DIK_H_INCLUDED 19 | -------------------------------------------------------------------------------- /src/od-aros/serial.cpp: -------------------------------------------------------------------------------- 1 | #include "sysconfig.h" 2 | #include "sysdeps.h" 3 | 4 | uae_u16 serper=0,serdat; 5 | -------------------------------------------------------------------------------- /src/od-aros/sound.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | * UAE - The Un*x Amiga Emulator 3 | * 4 | * Win32 sound interface (DirectSound) 5 | * 6 | * Copyright 1997 Mathias Ortmann 7 | * Copyright 1997-2001 Brian King 8 | * Copyright 2000-2002 Bernd Roesch 9 | * Copyright 2002-2003 Toni Wilen 10 | */ 11 | 12 | #include "sysconfig.h" 13 | #include "sysdeps.h" 14 | 15 | #include "memory.h" 16 | #include "sound.h" 17 | 18 | #define SND_MAX_BUFFER2 524288 19 | #define SND_MAX_BUFFER 8192 20 | 21 | uae_u16 *paula_sndbufpt; 22 | int paula_sndbufsize; 23 | uae_u16 paula_sndbuffer[SND_MAX_BUFFER]; 24 | 25 | int sounddrivermask; 26 | -------------------------------------------------------------------------------- /src/od-aros/stubs.h: -------------------------------------------------------------------------------- 1 | 2 | unsigned int GetDriveType(const TCHAR *pathname); 3 | 4 | int timeend (void); 5 | int timebegin (void); 6 | -------------------------------------------------------------------------------- /src/od-aros/sys/ipc.h: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /src/od-aros/sys/shm.h: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /src/od-aros/test.cpp: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | #include "mpeg2.h" 4 | #include "mpeg2convert.h" 5 | #include "mpeg2_internal.h" 6 | 7 | 8 | static mpeg2dec_t *mpeg_decoder; 9 | 10 | int main(void) { 11 | 12 | mpeg2_state_t mpeg_state = mpeg2_parse(mpeg_decoder); 13 | printf("foo!\n"); 14 | 15 | return 0; 16 | } 17 | -------------------------------------------------------------------------------- /src/od-aros/threaddep/thread.h: -------------------------------------------------------------------------------- 1 | #include "../thread.h" 2 | -------------------------------------------------------------------------------- /src/od-aros/video.cpp: -------------------------------------------------------------------------------- 1 | /* taken from fs-uae */ 2 | #include "sysconfig.h" 3 | #include "sysdeps.h" 4 | 5 | 6 | int g_amiga_rtg_modes[] = { 7 | 640, 360, // 16:9 8 | 9 | 800, 450, // 16:9 10 | 800, 500, // 16:10 11 | 800, 600, 12 | 13 | 1024, 576, // 16:9 14 | 1024, 600, // 16:10 15 | 1024, 768, 16 | 17 | 1280, 720, // 16:9 18 | //add_mode (md1, 1280, 800, 32, 50, 1); // 16:10 19 | //add_mode (md1, 1280, 720, 32, 50, 1); 20 | 21 | 0, 0, 22 | 0, 0, 23 | 0, 0, 24 | 0, 0, 25 | 0, 0, 26 | 0, 0, 27 | 0, 0, 28 | 0, 0, 29 | 0, 0, 30 | -1, -1, 31 | }; 32 | 33 | -------------------------------------------------------------------------------- /src/od-win32/ahidsound.h: -------------------------------------------------------------------------------- 1 | extern void ahi_updatesound(int force); 2 | extern uae_u32 REGPARAM2 ahi_demux (TrapContext*); 3 | extern int ahi_open_sound (void); 4 | extern void ahi_close_sound (void); 5 | extern void ahi_finish_sound_buffer (void); 6 | 7 | extern int ahi_on; 8 | extern int ahi_pollrate; -------------------------------------------------------------------------------- /src/od-win32/ahidsound_new.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BlitterStudio/janus-uae/4e579335c43b26e54573f954464c1e849ec8a90d/src/od-win32/ahidsound_new.cpp -------------------------------------------------------------------------------- /src/od-win32/ahidsound_new.h: -------------------------------------------------------------------------------- 1 | extern void init_ahi_v2 (void); 2 | extern void free_ahi_v2 (void); 3 | extern void ahi2_pause_sound (int); 4 | -------------------------------------------------------------------------------- /src/od-win32/ahidsound_new2.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BlitterStudio/janus-uae/4e579335c43b26e54573f954464c1e849ec8a90d/src/od-win32/ahidsound_new2.cpp -------------------------------------------------------------------------------- /src/od-win32/ahidsoundx_new.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BlitterStudio/janus-uae/4e579335c43b26e54573f954464c1e849ec8a90d/src/od-win32/ahidsoundx_new.cpp -------------------------------------------------------------------------------- /src/od-win32/asm.cmd: -------------------------------------------------------------------------------- 1 | nasm -O1 -f win32 hq2x32.asm 2 | nasm -O1 -f win32 hq3x32.asm 3 | nasm -O1 -f win32 hq4x32.asm 4 | nasm -O1 -f win32 hq2x16.asm 5 | nasm -O1 -f win32 hq3x16.asm 6 | nasm -O1 -f win32 hq4x16.asm 7 | -------------------------------------------------------------------------------- /src/od-win32/avioutput.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BlitterStudio/janus-uae/4e579335c43b26e54573f954464c1e849ec8a90d/src/od-win32/avioutput.cpp -------------------------------------------------------------------------------- /src/od-win32/avioutput.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BlitterStudio/janus-uae/4e579335c43b26e54573f954464c1e849ec8a90d/src/od-win32/avioutput.h -------------------------------------------------------------------------------- /src/od-win32/build68k_msvc/build68k_msvc.vcxproj.filters: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | {3133564f-b672-41da-b189-9631304a07d0} 6 | cpp;c;cxx;rc;def;r;odl;idl;hpj;bat 7 | 8 | 9 | 10 | 11 | Source Files 12 | 13 | 14 | -------------------------------------------------------------------------------- /src/od-win32/caps/Comlib.h: -------------------------------------------------------------------------------- 1 | #undef DllSub 2 | #undef DllVar 3 | #undef ExtSub 4 | #undef ExtVar 5 | 6 | #ifdef LIB_USER 7 | 8 | #define DllSub DllImport 9 | #define DllVar DllImport 10 | 11 | #else 12 | 13 | #define DllSub DllExport 14 | #define DllVar extern DllExport 15 | 16 | #endif 17 | 18 | #define ExtSub extern "C" DllSub 19 | #define ExtVar extern "C" DllVar 20 | 21 | -------------------------------------------------------------------------------- /src/od-win32/caps/caps_win32.h: -------------------------------------------------------------------------------- 1 | int caps_init (void); 2 | void caps_unloadimage (int drv); 3 | int caps_loadimage (struct zfile *zf, int drv, int *num_tracks); 4 | int caps_loadtrack (uae_u16 *mfmbuf, uae_u16 *tracktiming, int drv, int track, int *tracklength, int *multirev, int *gapoffset, int *nextrev, bool setrev); 5 | int caps_loadrevolution (uae_u16 *mfmbuf, uae_u16 *tracktiming, int drv, int track, int *tracklength, int *nextrev, bool track_access_done); 6 | 7 | -------------------------------------------------------------------------------- /src/od-win32/cda_play.h: -------------------------------------------------------------------------------- 1 | 2 | #ifdef _WIN32 3 | #include 4 | #endif 5 | 6 | class cda_audio 7 | { 8 | private: 9 | int bufsize; 10 | #ifdef _WIN32 11 | HWAVEOUT wavehandle; 12 | WAVEHDR whdr[2]; 13 | int num_sectors; 14 | int sectorsize; 15 | int volume[2]; 16 | LPDIRECTSOUND8 ds; 17 | LPDIRECTSOUNDBUFFER8 dsbuf; 18 | LPDIRECTSOUNDNOTIFY dsnotify; 19 | HANDLE notifyevent[2]; 20 | #endif 21 | bool playing; 22 | bool active; 23 | 24 | public: 25 | uae_u8 *buffers[2]; 26 | 27 | cda_audio(int num_sectors, int sectorsize, int samplerate); 28 | ~cda_audio(); 29 | void setvolume(int left, int right); 30 | bool play(int bufnum); 31 | void wait(void); 32 | void wait(int bufnum); 33 | bool isplaying(int bufnum); 34 | }; 35 | 36 | -------------------------------------------------------------------------------- /src/od-win32/clipboard_win32.h: -------------------------------------------------------------------------------- 1 | 2 | extern void clipboard_init (HWND hwnd); 3 | extern void clipboard_changed (HWND); 4 | extern void clipboard_reset (void); 5 | extern void clipboard_active (HWND, int); 6 | -------------------------------------------------------------------------------- /src/od-win32/cloanto/RetroPlatformIPC_doc_draft.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BlitterStudio/janus-uae/4e579335c43b26e54573f954464c1e849ec8a90d/src/od-win32/cloanto/RetroPlatformIPC_doc_draft.txt -------------------------------------------------------------------------------- /src/od-win32/debug_win32.h: -------------------------------------------------------------------------------- 1 | #ifndef __DEBUG_WIN32_H__ 2 | #define __DEBUG_WIN32_H__ 3 | 4 | extern int open_debug_window(void); 5 | extern void close_debug_window(void); 6 | extern void WriteOutput(const TCHAR *out, int len); 7 | extern int GetInput (TCHAR *out, int maxlen); 8 | extern int console_get_gui (TCHAR *out, int maxlen); 9 | 10 | #endif 11 | -------------------------------------------------------------------------------- /src/od-win32/direct3d.h: -------------------------------------------------------------------------------- 1 | extern void D3D_resize (int width, int height); 2 | extern void D3D_free (bool immediate); 3 | extern const TCHAR *D3D_init (HWND ahwnd, int w_w, int h_h, int depth, int *freq, int mmult); 4 | extern bool D3D_alloctexture (int, int); 5 | extern void D3D_getpixelformat (int depth,int *rb, int *bb, int *gb, int *rs, int *bs, int *gs, int *ab, int *ar, int *a); 6 | extern void D3D_refresh (void); 7 | extern bool D3D_renderframe (bool); 8 | extern void D3D_showframe (void); 9 | extern void D3D_showframe_special (int); 10 | extern uae_u8 *D3D_locktexture(int*, int*, bool); 11 | extern void D3D_unlocktexture(void); 12 | extern void D3D_flushtexture (int miny, int maxy); 13 | extern void D3D_guimode (bool); 14 | extern HDC D3D_getDC(HDC hdc); 15 | extern int D3D_isenabled (void); 16 | extern void D3D_clear (void); 17 | extern int D3D_canshaders (void); 18 | extern int D3D_goodenough (void); 19 | extern void D3D_setcursor (int x, int y, int width, int height, bool visible, bool noscale); 20 | extern bool D3D_getvblankpos (int *vpos); 21 | extern double D3D_getrefreshrate (void); 22 | extern void D3D_vblank_reset (double freq); 23 | extern void D3D_restore (void); 24 | extern LPDIRECT3DTEXTURE9 cursorsurfaced3d; 25 | 26 | #define CURSORMAXWIDTH 64 27 | #define CURSORMAXHEIGHT 64 28 | -------------------------------------------------------------------------------- /src/od-win32/diskutil.h: -------------------------------------------------------------------------------- 1 | 2 | typedef unsigned char UBYTE; 3 | typedef unsigned short UWORD; 4 | typedef unsigned long ULONG; 5 | 6 | extern int isamigatrack(UBYTE *mfmdata, int len, UBYTE *writebuffer, UBYTE *writebuffer_ok, int track); 7 | 8 | -------------------------------------------------------------------------------- /src/od-win32/genblitter_msvc/genblitter_msvc.vcxproj.filters: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | {decdb3b3-1173-4d69-8b51-8be056924551} 6 | cpp;c;cxx;rc;def;r;odl;idl;hpj;bat 7 | 8 | 9 | 10 | 11 | Source Files 12 | 13 | 14 | Source Files 15 | 16 | 17 | -------------------------------------------------------------------------------- /src/od-win32/gencomp_msvc/gencomp_msvc.vcxproj.filters: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | {6025a959-4cf1-4916-b403-90e54a13dc9e} 6 | cpp;c;cxx;rc;def;r;odl;idl;hpj;bat 7 | 8 | 9 | 10 | 11 | Source Files 12 | 13 | 14 | Source Files 15 | 16 | 17 | Source Files 18 | 19 | 20 | Source Files 21 | 22 | 23 | Source Files 24 | 25 | 26 | -------------------------------------------------------------------------------- /src/od-win32/gencpu_msvc/gencpu_msvc.vcxproj.filters: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | {e03ab946-4d92-4f82-9bfd-f808b6304cd0} 6 | cpp;c;cxx;rc;def;r;odl;idl;hpj;bat 7 | 8 | 9 | 10 | 11 | Source Files 12 | 13 | 14 | Source Files 15 | 16 | 17 | Source Files 18 | 19 | 20 | Source Files 21 | 22 | 23 | Source Files 24 | 25 | 26 | -------------------------------------------------------------------------------- /src/od-win32/genlinetoscr_msvc/genlinetoscr_msvc.vcxproj.filters: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | {4FC737F1-C7A5-4376-A066-2A32D752A2FF} 6 | cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx 7 | 8 | 9 | 10 | 11 | Source Files 12 | 13 | 14 | -------------------------------------------------------------------------------- /src/od-win32/graphics/amiga_header.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BlitterStudio/janus-uae/4e579335c43b26e54573f954464c1e849ec8a90d/src/od-win32/graphics/amiga_header.bmp -------------------------------------------------------------------------------- /src/od-win32/graphics/amiga_header_2013.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BlitterStudio/janus-uae/4e579335c43b26e54573f954464c1e849ec8a90d/src/od-win32/graphics/amiga_header_2013.bmp -------------------------------------------------------------------------------- /src/od-win32/graphics/amiga_welcome.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BlitterStudio/janus-uae/4e579335c43b26e54573f954464c1e849ec8a90d/src/od-win32/graphics/amiga_welcome.bmp -------------------------------------------------------------------------------- /src/od-win32/graphics/amiga_welcome_2013.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BlitterStudio/janus-uae/4e579335c43b26e54573f954464c1e849ec8a90d/src/od-win32/graphics/amiga_welcome_2013.bmp -------------------------------------------------------------------------------- /src/od-win32/graphics/installer_icon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BlitterStudio/janus-uae/4e579335c43b26e54573f954464c1e849ec8a90d/src/od-win32/graphics/installer_icon.ico -------------------------------------------------------------------------------- /src/od-win32/graphics/test_card.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BlitterStudio/janus-uae/4e579335c43b26e54573f954464c1e849ec8a90d/src/od-win32/graphics/test_card.png -------------------------------------------------------------------------------- /src/od-win32/ioport.h: -------------------------------------------------------------------------------- 1 | 2 | int ioport_init (void); 3 | void ioport_free (void); 4 | void ioport_write (int,uae_u8); 5 | uae_u8 ioport_read (int); 6 | 7 | int paraport_init (void); 8 | int paraport_open (TCHAR*); 9 | void paraport_free (void); 10 | -------------------------------------------------------------------------------- /src/od-win32/lcd.h: -------------------------------------------------------------------------------- 1 | extern int lcd_open (void); 2 | extern void lcd_close (void); 3 | extern void lcd_update (int, int); 4 | extern void lcd_priority (int); -------------------------------------------------------------------------------- /src/od-win32/machdep/rpt.h: -------------------------------------------------------------------------------- 1 | #include "uae/time.h" 2 | -------------------------------------------------------------------------------- /src/od-win32/makeexe.cmd: -------------------------------------------------------------------------------- 1 | del *.zip 2 | copy d:\amiga\winuae.exe c:\projects\winuae\distribution 3 | cd c:\projects\winuae\distribution 4 | copy docs\windows\translation.txt d:\amiga 5 | zip -9 -r c:\projects\winuae\src\od-win32\winuae.zip * 6 | cd c:\projects\winuae\src\od-win32 7 | copy winuae.zip d:\amiga\WinUAE%1.zip 8 | copy c:\projects\winuae\src\od-win32\wix\bin\Release\winuae.msi d:\amiga\InstallWinUAE%1.exe 9 | copy resourcedll\release\resourcedll.dll d:\amiga\WinUAE_default.dll 10 | cdd d:\amiga 11 | zip -9 WinUAE%1_translation WinUAE_default.dll translation.txt 12 | del translation.txt 13 | cdd c:\projects\winuae\src\od-win32 14 | ;zip -9 winuaedebug%1 winuae_msvc11\fullrelease\winuae.pdb winuae_msvc11\x64\fullrelease\winuae.pdb 15 | copy winuaedebug%1.zip d:\amiga\winuaepackets\debug 16 | del *.zip 17 | -------------------------------------------------------------------------------- /src/od-win32/midi.h: -------------------------------------------------------------------------------- 1 | /* 2 | * MODULE: midi.h 3 | * AUTHOR: Brian King 4 | * COPYRIGHT: Copyright 1999 under GNU Public License 5 | * VERSION: 1.0 6 | */ 7 | #ifndef __MIDI_H__ 8 | #define __MIDI_H__ 9 | 10 | #define MIDI_BUFFERS 2 11 | #define BUFFLEN 32766 12 | 13 | #define MAXTEMPO 350 14 | #define MINTEMPO 10 15 | 16 | #define MIDI_NOTEOFF 0x80 17 | #define MIDI_NOTEON 0x90 18 | #define MIDI_PTOUCH 0xA0 19 | #define MIDI_CCHANGE 0xB0 20 | #define MIDI_PCHANGE 0xC0 21 | #define MIDI_MTOUCH 0xD0 22 | #define MIDI_PBEND 0xE0 23 | #define MIDI_SYSX 0xF0 24 | #define MIDI_MTC 0xF1 25 | #define MIDI_SONGPP 0xF2 26 | #define MIDI_SONGS 0xF3 27 | #define MIDI_EOX 0xF7 28 | #define MIDI_CLOCK 0xF8 29 | #define MIDI_START 0xFA 30 | #define MIDI_CONTINUE 0xFB 31 | #define MIDI_STOP 0xFC 32 | #define MIDI_SENSE 0xFE 33 | 34 | typedef struct mos 35 | { 36 | BYTE status; 37 | BYTE byte1; 38 | BYTE byte2; 39 | int length; 40 | int posn; 41 | int sysex; 42 | int timecode; 43 | int unknown; 44 | } MidiOutStatus; 45 | 46 | typedef enum 47 | { 48 | midi_input, 49 | midi_output 50 | } midi_direction_e; 51 | 52 | extern BOOL midi_ready; 53 | 54 | extern int Midi_Parse (midi_direction_e direction, BYTE *c); 55 | extern int Midi_Open (void); 56 | extern void Midi_Close (void); 57 | extern LONG getmidibyte(void); 58 | extern int ismidibyte(void); 59 | 60 | #endif 61 | 62 | -------------------------------------------------------------------------------- /src/od-win32/midiin.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BlitterStudio/janus-uae/4e579335c43b26e54573f954464c1e849ec8a90d/src/od-win32/midiin.cpp -------------------------------------------------------------------------------- /src/od-win32/mp3decoder.h: -------------------------------------------------------------------------------- 1 | 2 | class mp3decoder 3 | { 4 | void *g_mp3stream; 5 | public: 6 | mp3decoder::mp3decoder(struct zfile *zf); 7 | mp3decoder(); 8 | ~mp3decoder(); 9 | uae_u8 *get(struct zfile *zf, uae_u8 *, int maxsize); 10 | uae_u32 mp3decoder::getsize(struct zfile *zf); 11 | }; 12 | -------------------------------------------------------------------------------- /src/od-win32/opengl.h: -------------------------------------------------------------------------------- 1 | 2 | extern void OGL_resize (int width, int height); 3 | extern void OGL_free (); 4 | extern const TCHAR *OGL_init (HWND ahwnd, int w_w, int w_h, int t_w, int t_h, int depth); 5 | extern void OGL_render (void); 6 | extern void OGL_getpixelformat (int depth,int *rb, int *bb, int *gb, int *rs, int *bs, int *gs, int *ab, int *ar, int *a); 7 | extern void OGL_refresh (void); 8 | extern HDC OGL_getDC (HDC hdc); 9 | extern int OGL_isenabled (void); 10 | -------------------------------------------------------------------------------- /src/od-win32/posixemu.h: -------------------------------------------------------------------------------- 1 | /* posixemu prototypes */ 2 | #ifndef __POSIXEMU_H__ 3 | #define __POSIXEMU_H__ 4 | void fname_atow (const char *src, char *dst, int size); 5 | void fname_wtoa (unsigned char *ptr); 6 | int w32fopendel(char *name, char *mode, int delflag); 7 | #endif -------------------------------------------------------------------------------- /src/od-win32/registry.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BlitterStudio/janus-uae/4e579335c43b26e54573f954464c1e849ec8a90d/src/od-win32/registry.cpp -------------------------------------------------------------------------------- /src/od-win32/registry.h: -------------------------------------------------------------------------------- 1 | 2 | typedef struct UAEREG { 3 | HKEY fkey; 4 | TCHAR *inipath; 5 | } UAEREG; 6 | 7 | extern const TCHAR *getregmode (void); 8 | extern int reginitializeinit (TCHAR **path); 9 | extern void regstatus (void); 10 | 11 | extern int regsetstr (UAEREG*, const TCHAR *name, const TCHAR *str); 12 | extern int regsetint (UAEREG*, const TCHAR *name, int val); 13 | extern int regqueryint (UAEREG*, const TCHAR *name, int *val); 14 | extern int regquerystr (UAEREG*, const TCHAR *name, TCHAR *str, int *size); 15 | extern int regsetlonglong (UAEREG *root, const TCHAR *name, ULONGLONG val); 16 | extern int regquerylonglong (UAEREG *root, const TCHAR *name, ULONGLONG *val); 17 | 18 | extern int regdelete (UAEREG*, const TCHAR *name); 19 | extern void regdeletetree (UAEREG*, const TCHAR *name); 20 | 21 | extern int regexists (UAEREG*, const TCHAR *name); 22 | extern int regexiststree (UAEREG *, const TCHAR *name); 23 | 24 | extern int regquerydatasize (UAEREG *root, const TCHAR *name, int *size); 25 | extern int regsetdata (UAEREG*, const TCHAR *name, const void *str, int size); 26 | extern int regquerydata (UAEREG *root, const TCHAR *name, void *str, int *size); 27 | 28 | extern int regenumstr (UAEREG*, int idx, TCHAR *name, int *nsize, TCHAR *str, int *size); 29 | 30 | extern UAEREG *regcreatetree (UAEREG*, const TCHAR *name); 31 | extern void regclosetree (UAEREG *key); 32 | 33 | -------------------------------------------------------------------------------- /src/od-win32/resources/35floppy.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BlitterStudio/janus-uae/4e579335c43b26e54573f954464c1e849ec8a90d/src/od-win32/resources/35floppy.ico -------------------------------------------------------------------------------- /src/od-win32/resources/Mycomp.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BlitterStudio/janus-uae/4e579335c43b26e54573f954464c1e849ec8a90d/src/od-win32/resources/Mycomp.ico -------------------------------------------------------------------------------- /src/od-win32/resources/WinUAE_German.rc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BlitterStudio/janus-uae/4e579335c43b26e54573f954464c1e849ec8a90d/src/od-win32/resources/WinUAE_German.rc -------------------------------------------------------------------------------- /src/od-win32/resources/amiga.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BlitterStudio/janus-uae/4e579335c43b26e54573f954464c1e849ec8a90d/src/od-win32/resources/amiga.png -------------------------------------------------------------------------------- /src/od-win32/resources/amigainfo.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BlitterStudio/janus-uae/4e579335c43b26e54573f954464c1e849ec8a90d/src/od-win32/resources/amigainfo.ico -------------------------------------------------------------------------------- /src/od-win32/resources/avioutput.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BlitterStudio/janus-uae/4e579335c43b26e54573f954464c1e849ec8a90d/src/od-win32/resources/avioutput.ico -------------------------------------------------------------------------------- /src/od-win32/resources/base floppy.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BlitterStudio/janus-uae/4e579335c43b26e54573f954464c1e849ec8a90d/src/od-win32/resources/base floppy.png -------------------------------------------------------------------------------- /src/od-win32/resources/chip.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BlitterStudio/janus-uae/4e579335c43b26e54573f954464c1e849ec8a90d/src/od-win32/resources/chip.ico -------------------------------------------------------------------------------- /src/od-win32/resources/configfile.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BlitterStudio/janus-uae/4e579335c43b26e54573f954464c1e849ec8a90d/src/od-win32/resources/configfile.ico -------------------------------------------------------------------------------- /src/od-win32/resources/cpu.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BlitterStudio/janus-uae/4e579335c43b26e54573f954464c1e849ec8a90d/src/od-win32/resources/cpu.ico -------------------------------------------------------------------------------- /src/od-win32/resources/diskimage.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BlitterStudio/janus-uae/4e579335c43b26e54573f954464c1e849ec8a90d/src/od-win32/resources/diskimage.ico -------------------------------------------------------------------------------- /src/od-win32/resources/drive.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BlitterStudio/janus-uae/4e579335c43b26e54573f954464c1e849ec8a90d/src/od-win32/resources/drive.ico -------------------------------------------------------------------------------- /src/od-win32/resources/drive_click.wav: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BlitterStudio/janus-uae/4e579335c43b26e54573f954464c1e849ec8a90d/src/od-win32/resources/drive_click.wav -------------------------------------------------------------------------------- /src/od-win32/resources/drive_snatch.wav: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BlitterStudio/janus-uae/4e579335c43b26e54573f954464c1e849ec8a90d/src/od-win32/resources/drive_snatch.wav -------------------------------------------------------------------------------- /src/od-win32/resources/drive_spin.wav: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BlitterStudio/janus-uae/4e579335c43b26e54573f954464c1e849ec8a90d/src/od-win32/resources/drive_spin.wav -------------------------------------------------------------------------------- /src/od-win32/resources/drive_spinnd.wav: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BlitterStudio/janus-uae/4e579335c43b26e54573f954464c1e849ec8a90d/src/od-win32/resources/drive_spinnd.wav -------------------------------------------------------------------------------- /src/od-win32/resources/drive_startup.wav: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BlitterStudio/janus-uae/4e579335c43b26e54573f954464c1e849ec8a90d/src/od-win32/resources/drive_startup.wav -------------------------------------------------------------------------------- /src/od-win32/resources/expansion.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BlitterStudio/janus-uae/4e579335c43b26e54573f954464c1e849ec8a90d/src/od-win32/resources/expansion.ico -------------------------------------------------------------------------------- /src/od-win32/resources/file.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BlitterStudio/janus-uae/4e579335c43b26e54573f954464c1e849ec8a90d/src/od-win32/resources/file.ico -------------------------------------------------------------------------------- /src/od-win32/resources/folder.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BlitterStudio/janus-uae/4e579335c43b26e54573f954464c1e849ec8a90d/src/od-win32/resources/folder.ico -------------------------------------------------------------------------------- /src/od-win32/resources/h_arrow.cur: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BlitterStudio/janus-uae/4e579335c43b26e54573f954464c1e849ec8a90d/src/od-win32/resources/h_arrow.cur -------------------------------------------------------------------------------- /src/od-win32/resources/icon3.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BlitterStudio/janus-uae/4e579335c43b26e54573f954464c1e849ec8a90d/src/od-win32/resources/icon3.ico -------------------------------------------------------------------------------- /src/od-win32/resources/joystick.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BlitterStudio/janus-uae/4e579335c43b26e54573f954464c1e849ec8a90d/src/od-win32/resources/joystick.ico -------------------------------------------------------------------------------- /src/od-win32/resources/lcd.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BlitterStudio/janus-uae/4e579335c43b26e54573f954464c1e849ec8a90d/src/od-win32/resources/lcd.bmp -------------------------------------------------------------------------------- /src/od-win32/resources/misc.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BlitterStudio/janus-uae/4e579335c43b26e54573f954464c1e849ec8a90d/src/od-win32/resources/misc.ico -------------------------------------------------------------------------------- /src/od-win32/resources/move_dow.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BlitterStudio/janus-uae/4e579335c43b26e54573f954464c1e849ec8a90d/src/od-win32/resources/move_dow.ico -------------------------------------------------------------------------------- /src/od-win32/resources/move_up.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BlitterStudio/janus-uae/4e579335c43b26e54573f954464c1e849ec8a90d/src/od-win32/resources/move_up.ico -------------------------------------------------------------------------------- /src/od-win32/resources/paths.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BlitterStudio/janus-uae/4e579335c43b26e54573f954464c1e849ec8a90d/src/od-win32/resources/paths.ico -------------------------------------------------------------------------------- /src/od-win32/resources/port.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BlitterStudio/janus-uae/4e579335c43b26e54573f954464c1e849ec8a90d/src/od-win32/resources/port.ico -------------------------------------------------------------------------------- /src/od-win32/resources/quickstart.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BlitterStudio/janus-uae/4e579335c43b26e54573f954464c1e849ec8a90d/src/od-win32/resources/quickstart.ico -------------------------------------------------------------------------------- /src/od-win32/resources/root.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BlitterStudio/janus-uae/4e579335c43b26e54573f954464c1e849ec8a90d/src/od-win32/resources/root.ico -------------------------------------------------------------------------------- /src/od-win32/resources/screen.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BlitterStudio/janus-uae/4e579335c43b26e54573f954464c1e849ec8a90d/src/od-win32/resources/screen.ico -------------------------------------------------------------------------------- /src/od-win32/resources/sound.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BlitterStudio/janus-uae/4e579335c43b26e54573f954464c1e849ec8a90d/src/od-win32/resources/sound.ico -------------------------------------------------------------------------------- /src/od-win32/resources/winuae.exe.manifest: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | -------------------------------------------------------------------------------- /src/od-win32/resources/winuae.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BlitterStudio/janus-uae/4e579335c43b26e54573f954464c1e849ec8a90d/src/od-win32/resources/winuae.ico -------------------------------------------------------------------------------- /src/od-win32/resources/winuae.rc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BlitterStudio/janus-uae/4e579335c43b26e54573f954464c1e849ec8a90d/src/od-win32/resources/winuae.rc -------------------------------------------------------------------------------- /src/od-win32/resources/winuae64.exe.manifest: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 6 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | -------------------------------------------------------------------------------- /src/od-win32/resources/winuae9.exe.manifest: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 12 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /src/od-win32/resources/winuae_minimal.rc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BlitterStudio/janus-uae/4e579335c43b26e54573f954464c1e849ec8a90d/src/od-win32/resources/winuae_minimal.rc -------------------------------------------------------------------------------- /src/od-win32/resources/winuae_old.rc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BlitterStudio/janus-uae/4e579335c43b26e54573f954464c1e849ec8a90d/src/od-win32/resources/winuae_old.rc -------------------------------------------------------------------------------- /src/od-win32/resources/xarcade-winuae.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BlitterStudio/janus-uae/4e579335c43b26e54573f954464c1e849ec8a90d/src/od-win32/resources/xarcade-winuae.bmp -------------------------------------------------------------------------------- /src/od-win32/support.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | * UAE - The Un*x Amiga Emulator 3 | * 4 | * Miscellaneous machine dependent support functions and definitions 5 | * 6 | * Copyright 1996 Bernd Schmidt 7 | */ 8 | 9 | #include "sysconfig.h" 10 | #include "sysdeps.h" 11 | 12 | #include "config.h" 13 | #include "options.h" 14 | #include "machdep/m68k.h" 15 | 16 | struct flag_struct regflags; 17 | 18 | -------------------------------------------------------------------------------- /src/od-win32/target.h: -------------------------------------------------------------------------------- 1 | /* 2 | * UAE - The Un*x Amiga Emulator 3 | * 4 | * Target specific stuff, Win32 version 5 | * 6 | * Copyright 1997 Mathias Ortmann 7 | */ 8 | 9 | #ifdef _WIN32_WCE 10 | #define TARGET_NAME "WinCE" 11 | #define TARGET_NO_AUTOCONF 12 | #define TARGET_NO_ZFILE 13 | #define DONT_PARSE_CMDLINE 14 | #else 15 | #define TARGET_NAME _T("win32") 16 | #endif 17 | #define TARGET_PROVIDES_DEFAULT_PREFS 18 | #define TARGET_NO_DITHER 19 | 20 | #define NO_MAIN_IN_MAIN_C 21 | 22 | #define OPTIONSFILENAME _T("default.uae") 23 | 24 | -------------------------------------------------------------------------------- /src/od-win32/threaddep/thread.h: -------------------------------------------------------------------------------- 1 | typedef HANDLE uae_sem_t; 2 | typedef HANDLE uae_thread_id; 3 | 4 | extern void uae_sem_destroy (uae_sem_t*); 5 | extern int uae_sem_trywait (uae_sem_t*); 6 | extern void uae_sem_post (uae_sem_t*); 7 | extern void uae_sem_wait (uae_sem_t*t); 8 | extern void uae_sem_init (uae_sem_t*, int manual_reset, int initial_state); 9 | extern int uae_start_thread (const TCHAR *name, void *(*f)(void *), void *arg, uae_thread_id *thread); 10 | extern int uae_start_thread_fast (void *(*f)(void *), void *arg, uae_thread_id *thread); 11 | extern void uae_end_thread (uae_thread_id *thread); 12 | extern void uae_set_thread_priority (uae_thread_id *, int); 13 | 14 | #include "commpipe.h" 15 | 16 | STATIC_INLINE void uae_wait_thread (uae_thread_id tid) 17 | { 18 | WaitForSingleObject (tid, INFINITE); 19 | CloseHandle (tid); 20 | } 21 | -------------------------------------------------------------------------------- /src/od-win32/tun_uae.h: -------------------------------------------------------------------------------- 1 | 2 | struct netdriverdata 3 | { 4 | HANDLE h; 5 | int mtu; 6 | uae_u8 mac[6]; 7 | int active; 8 | }; 9 | 10 | int uaenet_open_driver (struct netdriverdata *tc, const char *name); 11 | void uaenet_close_driver (struct netdriverdata *tc); 12 | 13 | -------------------------------------------------------------------------------- /src/od-win32/unistd.h: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /src/od-win32/unpackers/unpackers.vcxproj.filters: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | {4FC737F1-C7A5-4376-A066-2A32D752A2FF} 6 | cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx 7 | 8 | 9 | {93995380-89BD-4b04-88EB-625FBE52EBFB} 10 | h;hpp;hxx;hm;inl;inc;xsd 11 | 12 | 13 | {67DA6AB6-F800-4c08-8B7A-83BB121AAD01} 14 | rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms 15 | 16 | 17 | -------------------------------------------------------------------------------- /src/od-win32/win32_uaenet.h: -------------------------------------------------------------------------------- 1 | 2 | #include "ethernet.h" 3 | 4 | typedef void (uaenet_gotfunc)(void *dev, const uae_u8 *data, int len); 5 | typedef int (uaenet_getfunc)(void *dev, uae_u8 *d, int *len); 6 | 7 | extern struct netdriverdata *uaenet_enumerate (const TCHAR *name); 8 | extern void uaenet_enumerate_free (void); 9 | extern void uaenet_close_driver (struct netdriverdata *tc); 10 | 11 | extern int uaenet_getdatalenght (void); 12 | extern int uaenet_getbytespending (void*); 13 | extern int uaenet_open (void*, struct netdriverdata*, void*, uaenet_gotfunc*, uaenet_getfunc*, int); 14 | extern void uaenet_close (void*); 15 | extern void uaenet_trigger (void*); 16 | 17 | -------------------------------------------------------------------------------- /src/od-win32/win32gui.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BlitterStudio/janus-uae/4e579335c43b26e54573f954464c1e849ec8a90d/src/od-win32/win32gui.cpp -------------------------------------------------------------------------------- /src/od-win32/wintablet.h: -------------------------------------------------------------------------------- 1 | #define PACKETDATA (PK_X | PK_Y | PK_Z | PK_BUTTONS | PK_NORMAL_PRESSURE | PK_ORIENTATION | PK_ROTATION | PK_CURSOR | PK_STATUS) 2 | #define PACKETMODE 0 3 | 4 | -------------------------------------------------------------------------------- /src/od-win32/winuae_msvc11/winuae.idc: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /src/od-win32/winuaechangelog.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BlitterStudio/janus-uae/4e579335c43b26e54573f954464c1e849ec8a90d/src/od-win32/winuaechangelog.txt -------------------------------------------------------------------------------- /src/od-win32/writelog.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BlitterStudio/janus-uae/4e579335c43b26e54573f954464c1e849ec8a90d/src/od-win32/writelog.cpp -------------------------------------------------------------------------------- /src/ppc/pearpc/cpu/cpu_generic/ppc_tools.h: -------------------------------------------------------------------------------- 1 | /* 2 | * PearPC 3 | * ppc_tools.h 4 | * 5 | * Copyright (C) 2003 Sebastian Biallas (sb@biallas.net) 6 | * 7 | * This program is free software; you can redistribute it and/or modify 8 | * it under the terms of the GNU General Public License version 2 as 9 | * published by the Free Software Foundation. 10 | * 11 | * This program is distributed in the hope that it will be useful, 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | * GNU General Public License for more details. 15 | * 16 | * You should have received a copy of the GNU General Public License 17 | * along with this program; if not, write to the Free Software 18 | * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. 19 | */ 20 | 21 | #ifndef __PPC_TOOLS_H__ 22 | #define __PPC_TOOLS_H__ 23 | 24 | #include "system/types.h" 25 | 26 | static inline FUNCTION_CONST bool ppc_carry_3(uint32 a, uint32 b, uint32 c) 27 | { 28 | if ((a+b) < a) { 29 | return true; 30 | } 31 | if ((a+b+c) < c) { 32 | return true; 33 | } 34 | return false; 35 | } 36 | 37 | static inline FUNCTION_CONST uint32 ppc_word_rotl(uint32 data, int n) 38 | { 39 | n &= 0x1f; 40 | return (data << n) | (data >> (32-n)); 41 | } 42 | 43 | #endif 44 | -------------------------------------------------------------------------------- /src/ppc/pearpc/cpu/debug.h: -------------------------------------------------------------------------------- 1 | /* 2 | * PearPC 3 | * debug.h 4 | * 5 | * Copyright (C) 2003, 2004 Sebastian Biallas (sb@biallas.net) 6 | * 7 | * This program is free software; you can redistribute it and/or modify 8 | * it under the terms of the GNU General Public License version 2 as 9 | * published by the Free Software Foundation. 10 | * 11 | * This program is distributed in the hope that it will be useful, 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | * GNU General Public License for more details. 15 | * 16 | * You should have received a copy of the GNU General Public License 17 | * along with this program; if not, write to the Free Software 18 | * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. 19 | */ 20 | 21 | #ifndef __DEBUG_H__ 22 | #define __DEBUG_H__ 23 | 24 | #include "system/types.h" 25 | 26 | /* 27 | * Debugger Interface 28 | */ 29 | void ppc_set_singlestep_v(bool v, const char *file, int line, const char *infoformat, ...); 30 | void ppc_set_singlestep_nonverbose(bool v); 31 | 32 | #define SINGLESTEP(info) ppc_set_singlestep_v(true, __FILE__, __LINE__, info) 33 | 34 | #endif 35 | -------------------------------------------------------------------------------- /src/ppc/pearpc/info.h: -------------------------------------------------------------------------------- 1 | /* 2 | * PearPC 3 | * info.h 4 | * 5 | * Copyright (C) 2003-2005 Sebastian Biallas (sb@biallas.net) 6 | * 7 | * This program is free software; you can redistribute it and/or modify 8 | * it under the terms of the GNU General Public License version 2 as 9 | * published by the Free Software Foundation. 10 | * 11 | * This program is distributed in the hope that it will be useful, 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | * GNU General Public License for more details. 15 | * 16 | * You should have received a copy of the GNU General Public License 17 | * along with this program; if not, write to the Free Software 18 | * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. 19 | */ 20 | 21 | #ifndef __INFO_H__ 22 | #define __INFO_H__ 23 | 24 | #define APPNAME "PearPC" 25 | #define APPVERSION "0.5" 26 | // this will show up in the win32 version resource: 27 | #define APPVERSION_IN_NUMBERS 0,0,5,0 28 | 29 | #define EMULATOR_MODEL "PowerPC ("APPNAME" "APPVERSION")" 30 | #define COPYRIGHT "(c) 2003-2011 Sebastian Biallas " 31 | 32 | //#define PPC_CPU_ENABLE_SINGLESTEP 33 | 34 | #endif 35 | 36 | -------------------------------------------------------------------------------- /src/ppc/pearpc/pearpc_config.h: -------------------------------------------------------------------------------- 1 | 2 | #ifdef WIN64 3 | #define SYSTEM_ARCH_SPECIFIC_ENDIAN_DIR "system/arch/x86_64/sysendian.h" 4 | #else 5 | #define SYSTEM_ARCH_SPECIFIC_ENDIAN_DIR "system/arch/x86/sysendian.h" 6 | #endif 7 | 8 | #define HOST_ENDIANESS HOST_ENDIANESS_LE 9 | -------------------------------------------------------------------------------- /src/ppc/pearpc/system/arch/generic/sysfeatures.h: -------------------------------------------------------------------------------- 1 | /* 2 | * PearPC 3 | * features.h - arch/generic variant 4 | * 5 | * Copyright (C) 2004 Stefan Weyergraf 6 | * 7 | * This program is free software; you can redistribute it and/or modify 8 | * it under the terms of the GNU General Public License version 2 as 9 | * published by the Free Software Foundation. 10 | * 11 | * This program is distributed in the hope that it will be useful, 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | * GNU General Public License for more details. 15 | * 16 | * You should have received a copy of the GNU General Public License 17 | * along with this program; if not, write to the Free Software 18 | * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. 19 | */ 20 | 21 | #ifndef __SYSTEM_ARCH_SPECIFIC_FEATURES_H__ 22 | #define __SYSTEM_ARCH_SPECIFIC_FEATURES_H__ 23 | 24 | // PPC_FEATURE_PROVIDED_BY_ARCH 25 | #if !defined(PPC_VIDEO_CONVERT_ACCEL_FEATURE) || (PPC_VIDEO_CONVERT_ACCEL_FEATURE < PPC_FEATURE_PROVIDED_BY_ARCH) 26 | # undef PPC_VIDEO_CONVERT_ACCEL_FEATURE 27 | # define PPC_VIDEO_CONVERT_ACCEL_FEATURE PPC_FEATURE_PROVIDED_BY_ARCH 28 | #endif 29 | 30 | #endif 31 | -------------------------------------------------------------------------------- /src/ppc/pearpc/system/arch/sysendian.h: -------------------------------------------------------------------------------- 1 | /* 2 | * PearPC 3 | * sysendian.h 4 | * 5 | * Copyright (C) 1999-2004 Stefan Weyergraf 6 | * 7 | * This program is free software; you can redistribute it and/or modify 8 | * it under the terms of the GNU General Public License version 2 as 9 | * published by the Free Software Foundation. 10 | * 11 | * This program is distributed in the hope that it will be useful, 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | * GNU General Public License for more details. 15 | * 16 | * You should have received a copy of the GNU General Public License 17 | * along with this program; if not, write to the Free Software 18 | * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. 19 | */ 20 | 21 | #ifndef __SYSTEM_ARCH_SYSENDIAN_H__ 22 | #define __SYSTEM_ARCH_SYSENDIAN_H__ 23 | 24 | #include "pearpc_config.h" 25 | 26 | #include SYSTEM_ARCH_SPECIFIC_ENDIAN_DIR 27 | 28 | #endif 29 | -------------------------------------------------------------------------------- /src/ppc/pearpc/system/arch/sysfeatures.h: -------------------------------------------------------------------------------- 1 | /* 2 | * PearPC 3 | * sysfeatures.h 4 | * 5 | * Copyright (C) 1999-2004 Stefan Weyergraf 6 | * 7 | * This program is free software; you can redistribute it and/or modify 8 | * it under the terms of the GNU General Public License version 2 as 9 | * published by the Free Software Foundation. 10 | * 11 | * This program is distributed in the hope that it will be useful, 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | * GNU General Public License for more details. 15 | * 16 | * You should have received a copy of the GNU General Public License 17 | * along with this program; if not, write to the Free Software 18 | * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. 19 | */ 20 | 21 | #ifndef __SYSTEM_ARCH_SYSFEATURES_H__ 22 | #define __SYSTEM_ARCH_SYSFEATURES_H__ 23 | 24 | #include "pearpc_config.h" 25 | 26 | #include SYSTEM_ARCH_SPECIFIC_FEATURES_DIR 27 | 28 | #endif 29 | -------------------------------------------------------------------------------- /src/ppc/pearpc/system/arch/x86/sysfeatures.h: -------------------------------------------------------------------------------- 1 | /* 2 | * PearPC 3 | * features.h - arch/x86 variant 4 | * 5 | * Copyright (C) 2004 Stefan Weyergraf 6 | * 7 | * This program is free software; you can redistribute it and/or modify 8 | * it under the terms of the GNU General Public License version 2 as 9 | * published by the Free Software Foundation. 10 | * 11 | * This program is distributed in the hope that it will be useful, 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | * GNU General Public License for more details. 15 | * 16 | * You should have received a copy of the GNU General Public License 17 | * along with this program; if not, write to the Free Software 18 | * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. 19 | */ 20 | 21 | #ifndef __SYSTEM_ARCH_SPECIFIC_FEATURES_H__ 22 | #define __SYSTEM_ARCH_SPECIFIC_FEATURES_H__ 23 | 24 | // PPC_FEATURE_PROVIDED_BY_ARCH 25 | #if !defined(PPC_VIDEO_CONVERT_ACCEL_FEATURE) || (PPC_VIDEO_CONVERT_ACCEL_FEATURE < PPC_FEATURE_PROVIDED_BY_ARCH) 26 | # undef PPC_VIDEO_CONVERT_ACCEL_FEATURE 27 | # define PPC_VIDEO_CONVERT_ACCEL_FEATURE PPC_FEATURE_PROVIDED_BY_ARCH 28 | #endif 29 | 30 | #endif 31 | -------------------------------------------------------------------------------- /src/ppc/pearpc/system/arch/x86_64/sysfeatures.h: -------------------------------------------------------------------------------- 1 | /* 2 | * PearPC 3 | * features.h - arch/x86 variant 4 | * 5 | * Copyright (C) 2004 Stefan Weyergraf 6 | * 7 | * This program is free software; you can redistribute it and/or modify 8 | * it under the terms of the GNU General Public License version 2 as 9 | * published by the Free Software Foundation. 10 | * 11 | * This program is distributed in the hope that it will be useful, 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | * GNU General Public License for more details. 15 | * 16 | * You should have received a copy of the GNU General Public License 17 | * along with this program; if not, write to the Free Software 18 | * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. 19 | */ 20 | 21 | #ifndef __SYSTEM_ARCH_SPECIFIC_FEATURES_H__ 22 | #define __SYSTEM_ARCH_SPECIFIC_FEATURES_H__ 23 | 24 | // PPC_FEATURE_PROVIDED_BY_ARCH 25 | #if !defined(PPC_VIDEO_CONVERT_ACCEL_FEATURE) || (PPC_VIDEO_CONVERT_ACCEL_FEATURE < PPC_FEATURE_PROVIDED_BY_ARCH) 26 | # undef PPC_VIDEO_CONVERT_ACCEL_FEATURE 27 | # define PPC_VIDEO_CONVERT_ACCEL_FEATURE PPC_FEATURE_PROVIDED_BY_ARCH 28 | #endif 29 | 30 | #endif 31 | -------------------------------------------------------------------------------- /src/ppc/pearpc/tools/debug.h: -------------------------------------------------------------------------------- 1 | /* 2 | * HT Editor 3 | * debug.h 4 | * 5 | * Copyright (C) 1999-2002 Stefan Weyergraf 6 | * 7 | * This program is free software; you can redistribute it and/or modify 8 | * it under the terms of the GNU General Public License version 2 as 9 | * published by the Free Software Foundation. 10 | * 11 | * This program is distributed in the hope that it will be useful, 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | * GNU General Public License for more details. 15 | * 16 | * You should have received a copy of the GNU General Public License 17 | * along with this program; if not, write to the Free Software 18 | * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. 19 | */ 20 | 21 | #ifndef __DEBUG_H__ 22 | #define __DEBUG_H__ 23 | 24 | #include "system/types.h" 25 | 26 | void NORETURN ht_assert_failed(const char *file, int line, const char *assertion); 27 | 28 | #define ASSERT(a) if (!(a)) ht_assert_failed(__FILE__, __LINE__, (#a)); 29 | #define HERE __FILE__, __LINE__ 30 | 31 | void debugDumpMem(void *buf, int len); 32 | 33 | #endif /* !__DEBUG_H__ */ 34 | -------------------------------------------------------------------------------- /src/ppc/pearpc/tools/snprintf.h: -------------------------------------------------------------------------------- 1 | /* 2 | * HT Editor 3 | * snprintf.h 4 | * 5 | * Copyright (C) 1999-2003 Sebastian Biallas (sb@biallas.net) 6 | * 7 | * This program is free software; you can redistribute it and/or modify 8 | * it under the terms of the GNU General Public License version 2 as 9 | * published by the Free Software Foundation. 10 | * 11 | * This program is distributed in the hope that it will be useful, 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | * GNU General Public License for more details. 15 | * 16 | * You should have received a copy of the GNU General Public License 17 | * along with this program; if not, write to the Free Software 18 | * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. 19 | */ 20 | 21 | #ifndef __SNPRINTF_H__ 22 | #define __SNPRINTF_H__ 23 | 24 | #include 25 | #include 26 | #include 27 | 28 | int ht_asprintf(char **ptr, const char *format, ...); 29 | int ht_vasprintf(char **ptr, const char *format, va_list ap); 30 | 31 | int ht_snprintf(char *str, size_t count, const char *fmt, ...); 32 | int ht_vsnprintf(char *str, size_t count, const char *fmt, va_list args); 33 | 34 | int ht_fprintf(FILE *file, const char *fmt, ...); 35 | int ht_vfprintf(FILE *file, const char *fmt, va_list args); 36 | 37 | int ht_printf(const char *fmt, ...); 38 | int ht_vprintf(const char *fmt, va_list args); 39 | #endif 40 | -------------------------------------------------------------------------------- /src/ppc/pearpc/uaeglue.cpp: -------------------------------------------------------------------------------- 1 | 2 | #include 3 | #include 4 | #include 5 | 6 | #include "system/systhread.h" 7 | 8 | #include "uae/log.h" 9 | 10 | int ht_printf(const char *format,...) 11 | { 12 | UAE_LOG_VA_ARGS_FULL(format); 13 | return 0; 14 | } 15 | int ht_fprintf(FILE *f, const char *fmt, ...) 16 | { 17 | return 0; 18 | } 19 | int ht_vfprintf(FILE *file, const char *fmt, va_list args) 20 | { 21 | return 0; 22 | } 23 | int ht_snprintf(char *str, size_t count, const char *fmt, ...) 24 | { 25 | return 0; 26 | } 27 | int ht_vsnprintf(char *str, size_t count, const char *fmt, va_list args) 28 | { 29 | return 0; 30 | } 31 | 32 | void ht_assert_failed(const char *file, int line, const char *assertion) 33 | { 34 | } 35 | 36 | #if 0 37 | void prom_quiesce() 38 | { 39 | } 40 | #endif 41 | 42 | #include "sysconfig.h" 43 | #include "sysdeps.h" 44 | #include 45 | 46 | typedef void * sys_mutex; 47 | 48 | int sys_lock_mutex(sys_mutex m) 49 | { 50 | uae_sem_wait(&m); 51 | return 1; 52 | } 53 | 54 | void sys_unlock_mutex(sys_mutex m) 55 | { 56 | uae_sem_post(&m); 57 | } 58 | 59 | int sys_create_mutex(sys_mutex *m) 60 | { 61 | if (!(*m)) 62 | uae_sem_init(m, 0, 1); 63 | return 1; 64 | } 65 | 66 | void sys_destroy_mutex(sys_mutex m) 67 | { 68 | uae_sem_destroy(&m); 69 | } 70 | -------------------------------------------------------------------------------- /src/prowizard/include/vars.h: -------------------------------------------------------------------------------- 1 | /* 2 | * "vars.h" 3 | * 4 | * Part of Pro-Wizard-1 Package 5 | * (c) Sylvain "Asle" Chipaux 6 | */ 7 | 8 | 9 | FILE *PW_in,*PW_out; 10 | long PW_Start_Address=0; 11 | Ulong OutputSize=0; 12 | long PW_in_size; 13 | long Cpt_Filename=0l; 14 | Ulong PW_i; 15 | Ulong PW_j,PW_k,PW_l,PW_m,PW_n,PW_o; 16 | Uchar *in_data; 17 | /*Uchar OutName[5]={'.','-','-','-',0x00};*/ 18 | char OutName_final[33]; 19 | char Depacked_OutName[33]; 20 | Uchar Save_Status = GOOD; 21 | Ulong PW_WholeSampleSize=0; 22 | char Extensions[_KNOWN_FORMATS+1][33]; 23 | Uchar CONVERT = BAD; 24 | Uchar Amiga_EXE_Header = GOOD; 25 | -------------------------------------------------------------------------------- /src/prowizard/misc/testbag.c: -------------------------------------------------------------------------------- 1 | #include "globals.h" 2 | #include "extern.h" 3 | 4 | 5 | /* 6 | * group of tests funcs that are common to most of test\*.c files 7 | */ 8 | 9 | /* start : if mod can possibly fit from the beginning of the file */ 10 | /* e.g. M.K. before 1080th byte */ 11 | short test_1_start ( Ulong LIMIT ) 12 | { 13 | return ( PW_i < LIMIT) ? BAD : GOOD; 14 | } 15 | 16 | short test_smps ( long smpsiz, long lstart, long lsiz, Uchar vol, Uchar fine ) 17 | { 18 | if ( lstart > smpsiz ) 19 | return BAD; 20 | if ( lsiz > (smpsiz + 2) ) 21 | return BAD; 22 | if ( (lstart + lsiz) > smpsiz+2 ) 23 | return BAD; 24 | if ( (lstart != 0) && ( lsiz <= 2 ) ) 25 | return BAD; 26 | if ( ((lstart != 0) || (lsiz > 2)) && (smpsiz = 0) ) 27 | return BAD; 28 | if ( (vol > 0x40) || (fine > 0x0f) ) 29 | return BAD; 30 | return GOOD; 31 | } 32 | -------------------------------------------------------------------------------- /src/qemuvga/ne2000.h: -------------------------------------------------------------------------------- 1 | #ifndef HW_NE2000_H 2 | #define HW_NE2000_H 1 3 | 4 | #define NE2000_PMEM_SIZE (32*1024) 5 | #define NE2000_PMEM_START (16*1024) 6 | #define NE2000_PMEM_END (NE2000_PMEM_SIZE+NE2000_PMEM_START) 7 | #define NE2000_MEM_SIZE NE2000_PMEM_END 8 | 9 | typedef struct NE2000State { 10 | MemoryRegion io; 11 | uint8_t cmd; 12 | uint32_t start; 13 | uint32_t stop; 14 | uint8_t boundary; 15 | uint8_t tsr; 16 | uint8_t tpsr; 17 | uint16_t tcnt; 18 | uint16_t rcnt; 19 | uint32_t rsar; 20 | uint8_t rsr; 21 | uint8_t rxcr; 22 | uint8_t isr; 23 | uint8_t dcfg; 24 | uint8_t imr; 25 | uint8_t phys[6]; /* mac address */ 26 | uint8_t curpag; 27 | uint8_t mult[8]; /* multicast mask array */ 28 | qemu_irq irq; 29 | //NICState *nic; 30 | NICConf c; 31 | uint8_t mem[NE2000_MEM_SIZE]; 32 | } NE2000State; 33 | 34 | #if 0 35 | void ne2000_setup_io(NE2000State *s, DeviceState *dev, unsigned size); 36 | extern const VMStateDescription vmstate_ne2000; 37 | void ne2000_reset2(NE2000State *s); 38 | int ne2000_can_receive(NetClientState *nc); 39 | ssize_t ne2000_receive(NetClientState *nc, const uint8_t *buf, size_t size_); 40 | #endif 41 | 42 | #endif 43 | -------------------------------------------------------------------------------- /src/slirp/ctl.h: -------------------------------------------------------------------------------- 1 | #define CTL_CMD 0 2 | #define CTL_EXEC 1 3 | #define CTL_ALIAS 2 4 | #define CTL_DNS 3 5 | 6 | #define CTL_SPECIAL "10.0.2.0" 7 | #define CTL_LOCAL "10.0.2.15" 8 | -------------------------------------------------------------------------------- /src/slirp/debug.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 1995 Danny Gasparovski. 3 | * 4 | * Please read the file COPYRIGHT for the 5 | * terms and conditions of the copyright. 6 | */ 7 | 8 | #define PRN_STDERR 1 9 | #define PRN_SPRINTF 2 10 | 11 | extern FILE *dfd; 12 | extern FILE *lfd; 13 | extern int dostats; 14 | extern int slirp_debug; 15 | 16 | #define DBG_CALL 0x1 17 | #define DBG_MISC 0x2 18 | #define DBG_ERROR 0x4 19 | #define DEBUG_DEFAULT DBG_CALL|DBG_MISC|DBG_ERROR 20 | 21 | #ifdef DEBUG 22 | #define DEBUG_CALL(x) if (slirp_debug & DBG_CALL) { write_log(x); } 23 | #define DEBUG_ARG(x, y) if (slirp_debug & DBG_CALL) { write_log(" "); write_log(x, y); write_log("\n"); } 24 | #define DEBUG_ARGS(x) if (slirp_debug & DBG_CALL) { write_log x ;} 25 | #define DEBUG_MISC(x) if (slirp_debug & DBG_MISC) { write_log x ;} 26 | #define DEBUG_ERROR(x) if (slirp_debug & DBG_ERROR) {write_log x; } 27 | 28 | 29 | #else 30 | 31 | #define DEBUG_CALL(x) 32 | #define DEBUG_ARG(x, y) 33 | #define DEBUG_ARGS(x) 34 | #define DEBUG_MISC(x) 35 | #define DEBUG_ERROR(x) 36 | 37 | #endif 38 | 39 | void debug_init _P((char *, int)); 40 | //void ttystats _P((struct ttys *)); 41 | void allttystats _P((void)); 42 | void ipstats _P((void)); 43 | void vjstats _P((void)); 44 | void tcpstats _P((void)); 45 | void udpstats _P((void)); 46 | void icmpstats _P((void)); 47 | void mbufstats _P((void)); 48 | void sockstats _P((void)); 49 | void slirp_exit _P((int)); 50 | 51 | -------------------------------------------------------------------------------- /src/slirp/libslirp.h: -------------------------------------------------------------------------------- 1 | #ifndef _LIBSLIRP_H 2 | #define _LIBSLIRP_H 3 | 4 | #ifdef _WIN32 5 | #include 6 | int inet_aton(const char *cp, struct in_addr *ia); 7 | #else 8 | #include 9 | #include 10 | #endif 11 | 12 | int slirp_init(void); 13 | void slirp_cleanup(void); 14 | 15 | int slirp_select_fill(SOCKET *pnfds, 16 | fd_set *readfds, fd_set *writefds, fd_set *xfds); 17 | 18 | void slirp_select_poll(fd_set *readfds, fd_set *writefds, fd_set *xfds); 19 | 20 | void slirp_input(const uint8 *pkt, int pkt_len); 21 | 22 | /* you must provide the following functions: */ 23 | int slirp_can_output(void); 24 | void slirp_output(const uint8 *pkt, int pkt_len); 25 | 26 | int slirp_redir(int is_udp, int host_port, 27 | struct in_addr guest_addr, int guest_port); 28 | int slirp_add_exec(int do_pty, const char *args, int addr_low_byte, 29 | int guest_port); 30 | 31 | extern char slirp_hostname[33]; 32 | 33 | #endif 34 | -------------------------------------------------------------------------------- /src/slirp/sbuf.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 1995 Danny Gasparovski. 3 | * 4 | * Please read the file COPYRIGHT for the 5 | * terms and conditions of the copyright. 6 | */ 7 | 8 | #ifndef _SBUF_H_ 9 | #define _SBUF_H_ 10 | 11 | #define sbflush(sb) sbdrop((sb),(sb)->sb_cc) 12 | #define sbspace(sb) ((sb)->sb_datalen - (sb)->sb_cc) 13 | 14 | struct sbuf { 15 | u_int sb_cc; /* actual chars in buffer */ 16 | u_int sb_datalen; /* Length of data */ 17 | char *sb_wptr; /* write pointer. points to where the next 18 | * bytes should be written in the sbuf */ 19 | char *sb_rptr; /* read pointer. points to where the next 20 | * byte should be read from the sbuf */ 21 | char *sb_data; /* Actual data */ 22 | }; 23 | 24 | void sbfree _P((struct sbuf *)); 25 | void sbdrop _P((struct sbuf *, int)); 26 | void sbreserve _P((struct sbuf *, int)); 27 | void sbappend _P((struct socket *, struct mbuf *)); 28 | void sbappendsb _P((struct sbuf *, struct mbuf *)); 29 | void sbcopy _P((struct sbuf *, int, int, char *)); 30 | 31 | #endif 32 | -------------------------------------------------------------------------------- /src/slirp/tcp_subr.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BlitterStudio/janus-uae/4e579335c43b26e54573f954464c1e849ec8a90d/src/slirp/tcp_subr.cpp -------------------------------------------------------------------------------- /src/slirp/tftp.h: -------------------------------------------------------------------------------- 1 | /* tftp defines */ 2 | 3 | #define TFTP_SESSIONS_MAX 3 4 | 5 | #define TFTP_SERVER 69 6 | 7 | #define TFTP_RRQ 1 8 | #define TFTP_WRQ 2 9 | #define TFTP_DATA 3 10 | #define TFTP_ACK 4 11 | #define TFTP_ERROR 5 12 | 13 | #define TFTP_FILENAME_MAX 512 14 | 15 | #include "packed.h" 16 | struct tftp_t { 17 | struct ip ip; 18 | struct udphdr udp; 19 | u_int16_t tp_op; 20 | union { 21 | struct { 22 | u_int16_t tp_block_nr; 23 | u_int8_t tp_buf[512]; 24 | } tp_data; 25 | struct { 26 | u_int16_t tp_error_code; 27 | u_int8_t tp_msg[512]; 28 | } tp_error; 29 | u_int8_t tp_buf[512 + 2]; 30 | } x; 31 | } 32 | #include "unpacked.h" 33 | 34 | 35 | void tftp_input(struct mbuf *m); 36 | -------------------------------------------------------------------------------- /src/unix_missing.cpp: -------------------------------------------------------------------------------- 1 | /************************************************************************ 2 | * 3 | * Copyright 2011 Oliver Brunner - arosoliver-brunner.de 4 | * 5 | * This file is part of Janus-UAE. 6 | * 7 | * Janus-UAE is free software: you can redistribute it and/or modify 8 | * it under the terms of the GNU General Public License as published by 9 | * the Free Software Foundation, either version 3 of the License, or 10 | * (at your option) any later version. 11 | * 12 | * Janus-UAE is distributed in the hope that it will be useful, 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 | * GNU General Public License for more details. 16 | * 17 | * You should have received a copy of the GNU General Public License 18 | * along with Janus-UAE. If not, see . 19 | * 20 | * $Id$ 21 | * 22 | ************************************************************************/ 23 | 24 | #include 25 | #include 26 | #include "tchar.h" 27 | 28 | #define WRITE_LOG_BUF_SIZE 4096 29 | void write_log (const char *format, ...) 30 | { 31 | 32 | #warning write_log is TODO 33 | #if 0 34 | int count; 35 | TCHAR buffer[WRITE_LOG_BUF_SIZE]; 36 | va_list parms; 37 | va_start (parms, format); 38 | if (debug) { 39 | count = _vsntprintf (buffer, WRITE_LOG_BUF_SIZE - 1, format, parms); 40 | _tprintf (buffer); 41 | } 42 | va_end (parms); 43 | #endif 44 | } 45 | 46 | -------------------------------------------------------------------------------- /src/unix_missing2.cpp: -------------------------------------------------------------------------------- 1 | /************************************************************************ 2 | * 3 | * Copyright 2011 Oliver Brunner - arosoliver-brunner.de 4 | * 5 | * This file is part of Janus-UAE. 6 | * 7 | * Janus-UAE is free software: you can redistribute it and/or modify 8 | * it under the terms of the GNU General Public License as published by 9 | * the Free Software Foundation, either version 3 of the License, or 10 | * (at your option) any later version. 11 | * 12 | * Janus-UAE is distributed in the hope that it will be useful, 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 | * GNU General Public License for more details. 16 | * 17 | * You should have received a copy of the GNU General Public License 18 | * along with Janus-UAE. If not, see . 19 | * 20 | * $Id$ 21 | * 22 | ************************************************************************/ 23 | 24 | #include 25 | #include 26 | #include "tchar.h" 27 | 28 | char *ua (const TCHAR *s) { 29 | return strdup(s); 30 | } 31 | 32 | -------------------------------------------------------------------------------- /src/writelog.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | * UAE - The Un*x Amiga Emulator 3 | * 4 | * Standard write_log that writes to the console 5 | * 6 | * Copyright 2001 Bernd Schmidt 7 | */ 8 | #include "sysconfig.h" 9 | #include "sysdeps.h" 10 | 11 | void write_log_standard (const char *fmt, ...) 12 | { 13 | va_list ap; 14 | va_start (ap, fmt); 15 | #ifdef HAVE_VFPRINTF 16 | vfprintf (stderr, fmt, ap); 17 | #else 18 | /* Technique stolen from GCC. */ 19 | { 20 | int x1, x2, x3, x4, x5, x6, x7, x8; 21 | x1 = va_arg (ap, int); 22 | x2 = va_arg (ap, int); 23 | x3 = va_arg (ap, int); 24 | x4 = va_arg (ap, int); 25 | x5 = va_arg (ap, int); 26 | x6 = va_arg (ap, int); 27 | x7 = va_arg (ap, int); 28 | x8 = va_arg (ap, int); 29 | fprintf (stderr, fmt, x1, x2, x3, x4, x5, x6, x7, x8); 30 | } 31 | #endif 32 | va_end (ap); 33 | } 34 | --------------------------------------------------------------------------------