Permalink
Browse files

First commit of libpsx.

  • Loading branch information...
zodttd committed Apr 7, 2011
0 parents commit 71617a528b32b512a64e4e2008b6258f83ff5f0e
Showing with 96,306 additions and 0 deletions.
  1. +5 −0 .gitignore
  2. +39 −0 AUTHORS
  3. +3 −0 Application.mk
  4. +353 −0 COPYING
  5. +5 −0 NEWS
  6. +38 −0 README
  7. +97 −0 project/jni/Android.mk
  8. +394 −0 project/jni/libpcsxcore/LnxMain.c
  9. +1,224 −0 project/jni/libpcsxcore/Makefile
  10. +81 −0 project/jni/libpcsxcore/Makefile.am
  11. +1,147 −0 project/jni/libpcsxcore/Makefile.in
  12. +735 −0 project/jni/libpcsxcore/android/emulator.cpp
  13. +253 −0 project/jni/libpcsxcore/android/emumedia.cpp
  14. +41 −0 project/jni/libpcsxcore/android/emumedia.h
  15. +465 −0 project/jni/libpcsxcore/android/minimal.c
  16. +65 −0 project/jni/libpcsxcore/android/minimal.h
  17. +86 −0 project/jni/libpcsxcore/android/video_blit.S
  18. +1,262 −0 project/jni/libpcsxcore/cdriso.c
  19. +34 −0 project/jni/libpcsxcore/cdriso.h
  20. +2,057 −0 project/jni/libpcsxcore/cdrom.c
  21. +125 −0 project/jni/libpcsxcore/cdrom.h
  22. +1,024 −0 project/jni/libpcsxcore/cheat.c
  23. +117 −0 project/jni/libpcsxcore/cheat.h
  24. +38 −0 project/jni/libpcsxcore/coff.h
  25. +31 −0 project/jni/libpcsxcore/config.h
  26. +1,145 −0 project/jni/libpcsxcore/debug.c
  27. +72 −0 project/jni/libpcsxcore/debug.h
  28. +367 −0 project/jni/libpcsxcore/decode_xa.c
  29. +47 −0 project/jni/libpcsxcore/decode_xa.h
  30. +323 −0 project/jni/libpcsxcore/disr3000a.c
  31. +169 −0 project/jni/libpcsxcore/gpuAPI/gpuAPI.cpp
  32. +148 −0 project/jni/libpcsxcore/gpuAPI/gpuAPI.h
  33. +90 −0 project/jni/libpcsxcore/gpuAPI/newGPU/ARM_asm.S
  34. +492 −0 project/jni/libpcsxcore/gpuAPI/newGPU/core_Command.cpp
  35. +453 −0 project/jni/libpcsxcore/gpuAPI/newGPU/core_Dma.cpp
  36. +593 −0 project/jni/libpcsxcore/gpuAPI/newGPU/core_Draw.cpp
  37. +179 −0 project/jni/libpcsxcore/gpuAPI/newGPU/core_Misc.cpp
  38. +53 −0 project/jni/libpcsxcore/gpuAPI/newGPU/fixed.cpp
  39. +148 −0 project/jni/libpcsxcore/gpuAPI/newGPU/fixed.h
  40. +126 −0 project/jni/libpcsxcore/gpuAPI/newGPU/inner.cpp
  41. +1,019 −0 project/jni/libpcsxcore/gpuAPI/newGPU/inner_Blit (copy).h
  42. +665 −0 project/jni/libpcsxcore/gpuAPI/newGPU/inner_Blit.h
  43. +1,041 −0 project/jni/libpcsxcore/gpuAPI/newGPU/inner_Blit.h.new
  44. +1,053 −0 project/jni/libpcsxcore/gpuAPI/newGPU/inner_Blit.h.org
  45. +38 −0 project/jni/libpcsxcore/gpuAPI/newGPU/inner_Pixel.h
  46. +266 −0 project/jni/libpcsxcore/gpuAPI/newGPU/inner_Poly.h
  47. +178 −0 project/jni/libpcsxcore/gpuAPI/newGPU/inner_Sprite.h
  48. +157 −0 project/jni/libpcsxcore/gpuAPI/newGPU/newGPU.cpp
  49. +217 −0 project/jni/libpcsxcore/gpuAPI/newGPU/newGPU.h
  50. +230 −0 project/jni/libpcsxcore/gpuAPI/newGPU/op_Blend.h
  51. +205 −0 project/jni/libpcsxcore/gpuAPI/newGPU/op_Light.h
  52. +159 −0 project/jni/libpcsxcore/gpuAPI/newGPU/op_Texture.h
  53. +102 −0 project/jni/libpcsxcore/gpuAPI/newGPU/profiller.h
  54. +40 −0 project/jni/libpcsxcore/gpuAPI/newGPU/raster.h
  55. +237 −0 project/jni/libpcsxcore/gpuAPI/newGPU/raster_Image.cpp
  56. +252 −0 project/jni/libpcsxcore/gpuAPI/newGPU/raster_Line.cpp
  57. +751 −0 project/jni/libpcsxcore/gpuAPI/newGPU/raster_Poly.cpp
  58. +149 −0 project/jni/libpcsxcore/gpuAPI/newGPU/raster_Sprite.cpp
  59. +909 −0 project/jni/libpcsxcore/gte.c
  60. +65 −0 project/jni/libpcsxcore/gte.h
  61. +4,133 −0 project/jni/libpcsxcore/gte_divider.h
  62. +667 −0 project/jni/libpcsxcore/gte_neon.S
  63. +4 −0 project/jni/libpcsxcore/gte_neon.h
  64. +678 −0 project/jni/libpcsxcore/mdec.c
  65. +46 −0 project/jni/libpcsxcore/mdec.h
  66. +13 −0 project/jni/libpcsxcore/minimal.h
  67. +731 −0 project/jni/libpcsxcore/misc.c
  68. +77 −0 project/jni/libpcsxcore/misc.h
  69. +5,027 −0 project/jni/libpcsxcore/new_dynarec/assem_arm.c
  70. +58 −0 project/jni/libpcsxcore/new_dynarec/assem_arm.h
  71. +495 −0 project/jni/libpcsxcore/new_dynarec/emu_if.c
  72. +61 −0 project/jni/libpcsxcore/new_dynarec/emu_if.h
  73. +394 −0 project/jni/libpcsxcore/new_dynarec/fpu.c
  74. +74 −0 project/jni/libpcsxcore/new_dynarec/fpu.h
  75. +1,163 −0 project/jni/libpcsxcore/new_dynarec/linkage_arm.S
  76. +11,176 −0 project/jni/libpcsxcore/new_dynarec/new_dynarec.c
  77. +13 −0 project/jni/libpcsxcore/new_dynarec/new_dynarec.h
  78. +388 −0 project/jni/libpcsxcore/new_dynarec/pcsxmem.c
  79. +3 −0 project/jni/libpcsxcore/new_dynarec/pcsxmem.h
  80. +127 −0 project/jni/libpcsxcore/new_dynarec/pcsxmem_inline.c
  81. +1,073 −0 project/jni/libpcsxcore/plugins.c
  82. +338 −0 project/jni/libpcsxcore/plugins.h
  83. +375 −0 project/jni/libpcsxcore/ppf.c
  84. +48 −0 project/jni/libpcsxcore/ppf.h
  85. +285 −0 project/jni/libpcsxcore/psemu_plugin_defs.h
  86. +2,842 −0 project/jni/libpcsxcore/psxbios.c
  87. +51 −0 project/jni/libpcsxcore/psxbios.h
  88. +80 −0 project/jni/libpcsxcore/psxcommon.c
  89. +177 −0 project/jni/libpcsxcore/psxcommon.h
  90. +483 −0 project/jni/libpcsxcore/psxcounters.c
  91. +50 −0 project/jni/libpcsxcore/psxcounters.h
  92. +243 −0 project/jni/libpcsxcore/psxdma.c
  93. +85 −0 project/jni/libpcsxcore/psxdma.h
  94. +96 −0 project/jni/libpcsxcore/psxhle.c
  95. +36 −0 project/jni/libpcsxcore/psxhle.h
  96. +752 −0 project/jni/libpcsxcore/psxhw.c
  97. +78 −0 project/jni/libpcsxcore/psxhw.h
  98. +943 −0 project/jni/libpcsxcore/psxinterpreter.c
  99. +357 −0 project/jni/libpcsxcore/psxmem.c
  100. +144 −0 project/jni/libpcsxcore/psxmem.h
  101. +236 −0 project/jni/libpcsxcore/r3000a.c
  102. +284 −0 project/jni/libpcsxcore/r3000a.h
  103. +782 −0 project/jni/libpcsxcore/sio.c
  104. +76 −0 project/jni/libpcsxcore/sio.h
  105. +6,956 −0 project/jni/libpcsxcore/sjisfont.h
  106. +254 −0 project/jni/libpcsxcore/socket.c
  107. +43 −0 project/jni/libpcsxcore/socket.h
  108. +51 −0 project/jni/libpcsxcore/sound/Makefile.am
  109. +774 −0 project/jni/libpcsxcore/sound/Makefile.in
  110. +599 −0 project/jni/libpcsxcore/sound/adsr.c
  111. +19 −0 project/jni/libpcsxcore/sound/adsr.h
  112. +156 −0 project/jni/libpcsxcore/sound/alsa.c
  113. +142 −0 project/jni/libpcsxcore/sound/android.c
  114. +171 −0 project/jni/libpcsxcore/sound/cfg.c
  115. +25 −0 project/jni/libpcsxcore/sound/cfg.h
  116. +97 −0 project/jni/libpcsxcore/sound/dma.c
  117. +31 −0 project/jni/libpcsxcore/sound/dma.h
  118. +27 −0 project/jni/libpcsxcore/sound/dsoundoss.h
  119. +284 −0 project/jni/libpcsxcore/sound/externals.h
  120. +358 −0 project/jni/libpcsxcore/sound/freeze.c
  121. +150 −0 project/jni/libpcsxcore/sound/gauss_i.h
  122. +116 −0 project/jni/libpcsxcore/sound/iphone.c
  123. +24 −0 project/jni/libpcsxcore/sound/nullsnd.c
  124. +159 −0 project/jni/libpcsxcore/sound/oss.c
  125. +33 −0 project/jni/libpcsxcore/sound/psemuxa.h
  126. +354 −0 project/jni/libpcsxcore/sound/pulseaudio.c
  127. +586 −0 project/jni/libpcsxcore/sound/registers.c
  128. +144 −0 project/jni/libpcsxcore/sound/registers.h
  129. +27 −0 project/jni/libpcsxcore/sound/regs.h
  130. +462 −0 project/jni/libpcsxcore/sound/reverb.c
  131. +19 −0 project/jni/libpcsxcore/sound/reverb.h
  132. +135 −0 project/jni/libpcsxcore/sound/sdl.c
  133. +1,297 −0 project/jni/libpcsxcore/sound/spu.c
  134. +24 −0 project/jni/libpcsxcore/sound/spu.h
  135. +308 −0 project/jni/libpcsxcore/sound/spucfg-0.1df/dfsound.glade2
  136. +258 −0 project/jni/libpcsxcore/sound/spucfg-0.1df/main.cpp
  137. +68 −0 project/jni/libpcsxcore/sound/stdafx.h
  138. +414 −0 project/jni/libpcsxcore/sound/xa.c
  139. +20 −0 project/jni/libpcsxcore/sound/xa.h
  140. +28 −0 project/jni/libpcsxcore/spu.c
  141. +47 −0 project/jni/libpcsxcore/spu.h
  142. +42 −0 project/jni/libpcsxcore/system.h
  143. +36 −0 project/jni/libpcsxcore/video/Makefile.am
  144. +689 −0 project/jni/libpcsxcore/video/Makefile.in
  145. +321 −0 project/jni/libpcsxcore/video/cfg.c
  146. +32 −0 project/jni/libpcsxcore/video/cfg.h
  147. +2,383 −0 project/jni/libpcsxcore/video/draw.c
  148. +46 −0 project/jni/libpcsxcore/video/draw.h
  149. +408 −0 project/jni/libpcsxcore/video/externals.h
  150. +357 −0 project/jni/libpcsxcore/video/fps.c
  151. +31 −0 project/jni/libpcsxcore/video/fps.h
  152. +2,301 −0 project/jni/libpcsxcore/video/gpu.c
  153. +60 −0 project/jni/libpcsxcore/video/gpu.h
  154. +625 −0 project/jni/libpcsxcore/video/gpucfg-0.1df/dfxvideo.glade2
  155. +464 −0 project/jni/libpcsxcore/video/gpucfg-0.1df/main.cpp
  156. +1,824 −0 project/jni/libpcsxcore/video/hq2x.h
  157. +2,915 −0 project/jni/libpcsxcore/video/hq3x.h
  158. +67 −0 project/jni/libpcsxcore/video/i386.asm
  159. +669 −0 project/jni/libpcsxcore/video/inner_Blit.h
  160. +294 −0 project/jni/libpcsxcore/video/interp.h
  161. +97 −0 project/jni/libpcsxcore/video/key.c
  162. +24 −0 project/jni/libpcsxcore/video/key.h
  163. +40 −0 project/jni/libpcsxcore/video/macros.inc
  164. +245 −0 project/jni/libpcsxcore/video/menu.c
  165. +27 −0 project/jni/libpcsxcore/video/menu.h
  166. +1,661 −0 project/jni/libpcsxcore/video/prim.c
  167. +24 −0 project/jni/libpcsxcore/video/prim.h
  168. +8,488 −0 project/jni/libpcsxcore/video/soft.c
  169. +42 −0 project/jni/libpcsxcore/video/soft.h
  170. +71 −0 project/jni/libpcsxcore/video/swap.h
  171. +264 −0 project/jni/libpcsxcore/video/zn.c
@@ -0,0 +1,5 @@
+*.o
+.DS_Store
+project/bin/*
+project/gen/*
+project/libs/*
39 AUTHORS
@@ -0,0 +1,39 @@
+PCSX Upstream Authors: Linuzappz <linuzappz@pcsx.net>
+ Shadow <shadow@pcsx.net>
+ Pete Bernett <psswitch@online.de>
+ NoComp <NoComp@mailcity.com>
+ Nik3d
+ Akumax <akumax@pcsx.net>
+
+PCSX Copyright: (c) 1999-2003 Pcsx Team
+ (c) 1998 Vision Thing
+
+df Upstream Authors: Ryan Schultz <schultz.ryan@gmail.com>
+ Andrew Burton <adb@iinet.net.au>
+ Stephen Chao <schao@myrealbox.com>
+ Marcus Comstedt <marcus@mc.pp.se>
+ Stefan Sikora <hoshy@schrauberstube.de>
+
+df Copyright: (c) 2005 Ryan Schultz
+ (c) 2005 Andrew Burton
+ (c) 2007 Stephen Chao
+ (c) 2006 Marcus Comstedt
+
+PCSX-Reloaded Authors/Contributors: avlex (Help on xcode project)
+ Dario (Various bugfixes)
+ edgbla (Root counters, various core/plugin fixes)
+ Firnis (GTE code from PCSX-Revolution Project)
+ Gabriele Gorla (MDEC decoder)
+ maggix (Snow Leopard compile fix)
+ NeToU (Bugfix)
+ Peter Collingbourne (Various core/psxbios fixes)
+ siveritas (Bugfix)
+ shalma (GTE Divider, various core fixes)
+ Tristin Celestin (PulseAudio support)
+ Wei Mingzhi (Maintainer, input plugin, iso/cheat support, misc stuff)
+
+PCSX-Reloaded Translators: edgbla (Russian)
+ Giovanni Scafora (Italian)
+ Tibério Vítor (Brazilian Portuguese)
+ Wei Mingzhi (Simplified & Traditional Chinese)
+
@@ -0,0 +1,3 @@
+APP_PROJECT_PATH := $(call my-dir)/project
+APP_MODULES := psx
+APP_ABI := armeabi armeabi-v7a
353 COPYING

Large diffs are not rendered by default.

Oops, something went wrong.
5 NEWS
@@ -0,0 +1,5 @@
+PCSX-Reloaded: Bringing clarity, joy, and a nice GUI to PCSX.
+
+You should remove your old ~/.pcsx directory before using PCSX-Reloaded, to
+avoid any possible compatibility issues, such as missing folders. Remember
+that memcards and savestates are kept there, so be sure to copy them out first!
38 README
@@ -0,0 +1,38 @@
+psx4droid
+-------------------------------
+
+psx4droid is now a fork of PCSX-ReARMed that runs on the Android platform.
+
+PCSX-ReARMed - yet another PCSX fork
+-------------------------------
+
+PCSX ReARMed is yet another PCSX fork based on the PCSX-Reloaded project,
+which itself contains code from PCSX, PCSX-df and PCSX-Revolution. This
+version is ARM architecture oriented and features MIPS->ARM recompiler by
+Ari64, NEON GTE code and more performance improvements. It was created for
+Pandora handheld, but should be usable on other devices after some code
+adjustments (N900 version is also available).
+
+PCSX ReARMed features GPU plugin from PCSX4ALL project.
+
+
+PCSX-Reloaded
+-------------------------------
+
+PCSX-Reloaded is a forked version of the dead PCSX emulator, with a nicer
+interface and several improvements to stability and functionality.
+
+PCSX-Reloaded uses the PSEMU plugin interface to provide most functionality;
+without them, you will not be able to use it to play games. PCSX-Reloaded
+provides a number of plugins to provide basic functionality out of the box.
+
+PCSX-Reloaded has a very capable Internal HLE BIOS that can run many games
+without problems. It is recommended that you use it. However, if you own a
+real PlayStation, you may be able to use your own BIOS image. PCSX-Reloaded
+will find it in ~/.pcsx/bios/ or /usr/share/psemu/bios/ if you place it there.
+This can improve compatibility, especially with certain games and with the
+use of memory cards.
+
+See the doc/ folder in the source, or /usr/share/doc/pcsx/ on Debian systems,
+for more detailed information on PCSX-Reloaded. A UNIX manpage is also
+available.
@@ -0,0 +1,97 @@
+LOCAL_PATH:= $(call my-dir)
+include $(CLEAR_VARS)
+
+LOCAL_ARM_MODE := arm
+
+# This is the target being built.
+LOCAL_MODULE := libpsx
+
+# All of the source files that we will compile.
+
+LOCAL_SRC_FILES := \
+ libpcsxcore/cdriso.c \
+ libpcsxcore/cdrom.c \
+ libpcsxcore/cheat.c \
+ libpcsxcore/debug.c \
+ libpcsxcore/decode_xa.c \
+ libpcsxcore/disr3000a.c \
+ libpcsxcore/gte.c \
+ libpcsxcore/LnxMain.c \
+ libpcsxcore/mdec.c \
+ libpcsxcore/misc.c \
+ libpcsxcore/plugins.c \
+ libpcsxcore/ppf.c \
+ libpcsxcore/psxbios.c \
+ libpcsxcore/psxcommon.c \
+ libpcsxcore/psxcounters.c \
+ libpcsxcore/psxdma.c \
+ libpcsxcore/psxhle.c \
+ libpcsxcore/psxhw.c \
+ libpcsxcore/psxinterpreter.c \
+ libpcsxcore/psxmem.c \
+ libpcsxcore/r3000a.c \
+ libpcsxcore/sio.c \
+ libpcsxcore/socket.c \
+ libpcsxcore/spu.c \
+ libpcsxcore/sound/spu.c \
+ libpcsxcore/sound/cfg.c \
+ libpcsxcore/sound/dma.c \
+ libpcsxcore/sound/freeze.c \
+ libpcsxcore/sound/registers.c \
+ libpcsxcore/sound/android.c \
+ libpcsxcore/gpuAPI/gpuAPI.cpp \
+ libpcsxcore/gpuAPI/newGPU/newGPU.cpp \
+ libpcsxcore/gpuAPI/newGPU/fixed.cpp \
+ libpcsxcore/gpuAPI/newGPU/core_Command.cpp \
+ libpcsxcore/gpuAPI/newGPU/core_Dma.cpp \
+ libpcsxcore/gpuAPI/newGPU/core_Draw.cpp \
+ libpcsxcore/gpuAPI/newGPU/core_Misc.cpp \
+ libpcsxcore/gpuAPI/newGPU/raster_Sprite.cpp \
+ libpcsxcore/gpuAPI/newGPU/raster_Poly.cpp \
+ libpcsxcore/gpuAPI/newGPU/raster_Line.cpp \
+ libpcsxcore/gpuAPI/newGPU/raster_Image.cpp \
+ libpcsxcore/gpuAPI/newGPU/inner.cpp \
+ libpcsxcore/gpuAPI/newGPU/ARM_asm.S \
+ libpcsxcore/new_dynarec/new_dynarec.c \
+ libpcsxcore/new_dynarec/linkage_arm.S \
+ libpcsxcore/new_dynarec/pcsxmem.c \
+ libpcsxcore/new_dynarec/emu_if.c \
+ libpcsxcore/android/minimal.c
+
+ifeq ($(TARGET_ARCH_ABI),armeabi-v7a)
+LOCAL_SRC_FILES += libpcsxcore/gte_neon.S
+endif
+
+LOCAL_SRC_FILES += \
+ libpcsxcore/android/emumedia.cpp \
+ libpcsxcore/android/emulator.cpp
+
+# Static libraries.
+LOCAL_STATIC_LIBRARIES += cpufeatures
+
+# All of the shared libraries we link against.
+LOCAL_LDLIBS := \
+ -ldl \
+ -llog \
+ -lz \
+ -lEGL -lGLESv1_CM \
+
+# Also need the JNI headers.
+LOCAL_C_INCLUDES += \
+ $(LOCAL_PATH) \
+ $(LOCAL_PATH)/android \
+ $(NDK_ROOT)/sources/cpufeatures
+
+
+# Compiler flags.
+LOCAL_CFLAGS += -O2 -fomit-frame-pointer -DNDEBUG -DANDROID -DANDROID_ARMV7 -DGP2X -DARM_ARCH -DINLINE="inline" -DDYNAREC -DPSXREC
+LOCAL_CFLAGS += -ffast-math
+ifeq ($(TARGET_ARCH_ABI),armeabi-v7a)
+LOCAL_CFLAGS += -mfpu=neon
+endif
+ifeq ($(TARGET_ARCH_ABI),armeabi)
+LOCAL_CFLAGS += -DARMv5_ONLY
+endif
+
+include $(BUILD_SHARED_LIBRARY)
+include $(NDK_ROOT)/sources/cpufeatures/Android.mk
Oops, something went wrong.

0 comments on commit 71617a5

Please sign in to comment.