Commit Graph

2725 Commits

Author SHA1 Message Date
evilynux 3884a80f48 First glimpse of joystick configuration.
Still hidden as it's not 100% working at the moment.
2007-01-11 08:47:12 +00:00
shashclp 2d542a64c7 - Fixed too much background enabled when not needed due to window handling (fixes Megaman ZX subscreen) 2007-01-11 05:51:26 +00:00
shashclp 9a1143a3e7 - Fixed the bug that resulted in missing backgrounds in Megaman ZX and AoE (probably others too) 2007-01-11 05:08:45 +00:00
mightymax b83c0051a6 fixed in/out-window check 2007-01-10 23:02:18 +00:00
mightymax ea38d6c3da fixed write to window registers 2007-01-10 23:01:25 +00:00
mightymax defa6952f8 added 8bit writes to window dimesnion components 2007-01-10 21:06:09 +00:00
mightymax a806f55c47 added 8bit component writes for window dimensions, fixed false abort in windowing 2007-01-10 21:05:17 +00:00
mightymax 5599c9ee15 added retrieving of RotScale parameters for sprites, removed CHECKME: H/V-flips are within original drawing rectangle 2007-01-10 20:21:48 +00:00
mightymax 19457346cd fixed outside window filter 2007-01-10 18:32:25 +00:00
cyberwarriorx b8fca1e8e4 -Fixed an issue where variables weren't being declared in the proper spot. This causes problems when compiling in Visual C++ 2007-01-10 17:49:12 +00:00
evilynux ae80da0c57 Fixed compilation error by moving min(a,b) macro to GPU.h . 2007-01-10 17:36:08 +00:00
evilynux 7ee96932df - Removed joypad debug message;
- Renamed mouse_set_coord() to set_mouse_coord() for naming consistency;
- Added mouse_status structure to handle all mouse informations;
- Clarified some #endif for easier reading;
- Removed some french comments;

Only in src/cli/main.c:
- Removed 2 useless #define;
2007-01-10 17:29:47 +00:00
mightymax c950ca35d8 fixed wrong optimized sizeof(COLOR) [is 4 instead of 2] caused overwriting unrelated data 2007-01-10 15:09:18 +00:00
mightymax d166860a5f fastened masterbrightness on max brighten(=allwhite)/max darken(=allblack) 2007-01-10 13:25:26 +00:00
mightymax f75f24b53d abort of masterbrightness calculation if manipulation factor is 0 2007-01-10 13:04:39 +00:00
mightymax 9a65ce5c07 ACL checks disabled when define MMU_ENABLE_ACL is not set 2007-01-10 12:49:48 +00:00
mightymax 2ed45a1d41 added missing * 2007-01-10 12:48:23 +00:00
mightymax ffed3785ad added accessright check to STRH/LDRH 2007-01-10 12:47:36 +00:00
mightymax e5578d6ca7 added windowcheck to renderline_setFinalColor 2007-01-10 12:39:21 +00:00
mightymax 7f49e3cbff fixed masterbrightness formular, fixed typo in windowcnt_t 2007-01-10 12:38:44 +00:00
mightymax b4346d00ef removed double COLOR define 2007-01-10 11:56:07 +00:00
damdoum 1b06735f17 added COLOR32 structure (for those like me converting colors :)) 2007-01-10 08:58:35 +00:00
damdoum f05310c559 started window implementation
added COLOR structure (cleanup soon)
BG priorities and OBJ priorities need better code commenting / code to
explain / redo
2007-01-10 08:50:25 +00:00
evilynux 016cd09ed5 All cli UI controls centralized in src/ctrlssdl.{h,c} just like the gtk and gtk-glade UIs. 2007-01-10 06:37:55 +00:00
evilynux cd0f5ea781 Added SDL_Quit and mouse support for cli UI. 2007-01-10 06:36:26 +00:00
evilynux 8a718d5f27 Using _UI suffix for better understanding. 2007-01-10 05:04:57 +00:00
evilynux 1d9b17bd18 Unified joystick controls.
Both gtk and gtk-glade UIs use src/ctrlssdl.{h,x} for joystick support.
2007-01-10 04:34:56 +00:00
evilynux 9a6a3a36f7 Unified device controls. Both gtk and gtk-glade UIs uses this for joystick support. 2007-01-10 04:33:19 +00:00
mightymax 8002f6b129 type fixed 2007-01-10 00:37:32 +00:00
mightymax 67ac2f8b04 prefetch now checks for rights to execute at the address. Stops execution if pc(r15) runs outside valid addressranges 2007-01-10 00:31:12 +00:00
mightymax 1ff96c7899 cp15 access check is now inline 2007-01-10 00:27:58 +00:00
shashclp 54d9fa1c26 - Forgot to commit the changes to get oamView to compile 2007-01-10 00:19:16 +00:00
shashclp c3c2b9fc75 - Added support for displaying main memory display mode
- Added support for main memory display DMA
- Enlarged the FIFO's to 32768 values
2007-01-10 00:06:50 +00:00
yabause 30022dea74 Fixed compilation bug: FIFOValue was used in GPU.h without #include'ing
FIFO.h, so it ends up having two 'declarations' of FIFOValue
2007-01-09 23:26:38 +00:00
shashclp 8157759485 - Added support for MASTER_BRIGHT
- Changed a few things to get VisualC to compile GPU.c
2007-01-09 22:38:23 +00:00
mightymax 629f89e81b fixed crash when changing to a errornous sounddevice (i.e. the change from wav-writer to directsound which returned E-Fail) 2007-01-09 16:30:41 +00:00
damdoum bdfb144695 tried to add core A - direct RAM display mode 2007-01-09 13:59:38 +00:00
damdoum c21a0372e9 changing gpu->BGProp[] to gpu->bgCnt[]
please use the latter from now on
2007-01-09 10:52:07 +00:00
mightymax 87de52a0f8 added WINDOW_x registers to prepare window clipping 2007-01-09 10:18:17 +00:00
damdoum 07a8b0f032 used union for better handling of bitfields 2007-01-09 09:26:57 +00:00
damdoum f5238bcf92 fixed last modification (that did not compile) 2007-01-09 08:57:07 +00:00
damdoum f5f468387e no more gpu->prop
replaced with gpu->dispCnt & macro BGxENABLED
2007-01-09 08:40:05 +00:00
damdoum 4ba50a1f1e _DISPCNT_ struct completed 2007-01-09 08:09:59 +00:00
shashclp 86a54a81fd - Added writes to bldcnt and bldalpha when written together as a 32bit value (Fixes Zelda Gallery) 2007-01-09 04:24:32 +00:00
cyberwarriorx 4304f2dda3 -Fixed disview.c so it compiles in Visual C++ again
-Added ROMReader.c/.h to Visual C++ project file
2007-01-09 03:08:20 +00:00
shashclp c7b7789c2f - Moved the sprite drawing check to GPU_ligne
- Moved some declarations so the code compiles again on VisualC
2007-01-09 00:30:59 +00:00
evilynux 36d854f832 Initial joypad support for cli UI. 2007-01-08 22:03:33 +00:00
mightymax 5f80bae387 added 16bit REG_DISPx_MOSAIC write 2007-01-08 21:51:01 +00:00
mightymax abf8e68cbc added support for MOSAIC effect in textBGs, test .NDS: http://desmume.sourceforge.net/forums/index.php?action=vthread&forum=2&topic=50&page=0#msg192 , doc: http://nocash.emubase.de/gbatek.htm#lcdiomosaicfunction 2007-01-08 21:49:32 +00:00
evilynux 9c85d0f3d0 Better indentation so I can see something. 2007-01-08 21:12:48 +00:00
evilynux b79a3f067b Fixed copyright. 2007-01-08 21:02:13 +00:00
evilynux 0df506db73 Script to regenerated autotools files. 2007-01-08 20:59:57 +00:00
evilynux e7c4734cff Initial joypad support for gtk UI. 2007-01-08 20:57:14 +00:00
evilynux af1bde05d9 Centralized includes. 2007-01-08 20:56:27 +00:00
evilynux 182a93cb4c Proper indent for Joypad const. 2007-01-08 20:52:30 +00:00
evilynux 486d28aea7 Removed useless include. 2007-01-08 20:45:56 +00:00
evilynux f7f03f7bb6 Added copyright on DeSmuME team as there were no owner. 2007-01-08 20:44:44 +00:00
mightymax f5e00d6189 added more comments, removed the suspicious(and false) color shifting, fixed typo/naming prob from 1.31 2007-01-08 18:09:47 +00:00
damdoum ff2b794d64 _DISPCNT_ structure definition 2007-01-08 16:56:51 +00:00
mightymax c28b17c794 fixed DISPCNT_DISPLAY_MODE which broke framebuffer mode (oups) 2007-01-08 14:38:56 +00:00
damdoum 2cd9ca118a evilynux patch... 2007-01-08 14:17:29 +00:00
damdoum e8e6fc402d added GPL notice 2007-01-08 13:14:10 +00:00
damdoum 3afd618c0d evilynux patch for joypad support 2007-01-08 12:57:32 +00:00
mightymax 7b37990d8f support for direct color extrot bitmap opaque bit. Refer GFX TestNDS @ http://desmume.sourceforge.net/forums/index.php?action=vthread&forum=2&topic=50 2007-01-08 12:21:13 +00:00
damdoum ef905c5177 made sprite1D and sprite2D more understandable
(using new struct _OAM_ fields)
2007-01-08 01:50:31 +00:00
damdoum 68dba08480 alpha blending - disabled check for invisible pixels (since some
graphics were not drawn anymore)

added OAM bit fields
2007-01-07 23:53:14 +00:00
mightymax 19a6b90945 ROMReader.c/h included 2007-01-07 23:42:57 +00:00
mightymax 1fa614817b removed execution break from STC/LDC, the nds has no coproc that respond to any of them. without response, nothing is triggered/executed on the cpu. dslinux works now ;) 2007-01-07 23:07:52 +00:00
mightymax 498c2b0550 fixed and commented interrupt waiting for cp15 2007-01-07 22:30:11 +00:00
mightymax b86c3f4ee6 added speedchecks to alphablending, added comments to explain its steps, replaced another set of bitmasks against defines 2007-01-07 21:49:28 +00:00
yabause eafe6526c6 Added a zip ROMReader code based on libzzip and fixed a few bugs
in ROMReader interface.
2007-01-07 21:38:23 +00:00
mightymax d53e9a93d2 compiles again under win32 & systems without gzip, added checks for invalid file ptrs 2007-01-07 21:00:45 +00:00
shashclp c984c44a84 - Some performance checks in case of sprites disabled 2007-01-07 20:27:17 +00:00
damdoum 103fe72454 some more cleaning using macros 2007-01-07 19:58:11 +00:00
damdoum d1a207c73f some cleaning so that it can be understood easier 2007-01-07 18:59:59 +00:00
yabause 6c383a2ce2 Added Rom header core definition and two cores:
- standard one open a "normal" rom
- gzip one opens a gzip'ed rom
Now it should be easy to add new cores to handle other compression formats
2007-01-07 16:16:54 +00:00
mightymax f160a32561 replaced unreadable bitmasks with named defines 2007-01-07 14:31:17 +00:00
damdoum fb586a2359 cleaner code (using macros) 2007-01-07 14:18:03 +00:00
damdoum 7476a02675 began correcting this error : actions not enabled when loading rom from
command line
2007-01-07 12:37:41 +00:00
damdoum 225c332ba3 alpha blending corrected (?) 2007-01-07 11:46:34 +00:00
mightymax 4a84175459 fixed VRAM_BANK_E in ExtPal mode 2007-01-07 11:35:55 +00:00
damdoum dacfc4613c showing real changes
(sorry i had disabled effects to spot errors, back now)
2007-01-07 11:23:19 +00:00
damdoum 1fc939f31c corrects some error l787 & l797
(some objects were not drawn anymore -> used the prior formula)
2007-01-07 10:48:28 +00:00
mightymax 7e15fa37e5 support for sprite enable bit in DISPCNT (bug report #1629605) 2007-01-07 09:13:25 +00:00
damdoum 81883e1194 small cleanup 2007-01-07 09:06:29 +00:00
damdoum ffd3a5461e some more FPS !!!
faster rgb image decode (not gtk/gdk dependant and
could be moved to all ports)
Enjoy
2007-01-07 01:58:32 +00:00
yabause 939b5e7a5b Commited anonymous patch for incorrect x/y buttons on gtk port. 2007-01-07 01:01:24 +00:00
yabause 9964b5ad3e Commited cribbe patch for gzipped roms.
I've added #ifdef to the code, so desmume still compiles if libz isn't
installed. Now it would be better to use "cores" for file accesses as it
would be a mess to add support for zip, rar, etc. in such a way.
2007-01-07 00:45:43 +00:00
damdoum b01c65aea9 gap between screens modified (works now horiz. and vert.) 2007-01-07 00:20:12 +00:00
yabause 95b6ea0b27 Commited evilynux patch for gap between screens. 2007-01-07 00:02:16 +00:00
shashclp 5dae3a7a8a Added the missing semicolons :) 2007-01-06 18:25:16 +00:00
damdoum 707792dae1 SPU.h : made SPU_Pause visible
gtk-glade : mute sound & boost key
2007-01-06 15:08:41 +00:00
mightymax 83e873f945 fixed recalculate permission masks on region permission added, corrected ITCM base address write, its read only 2007-01-06 14:37:30 +00:00
mightymax ce6d304d85 fixed recalculate permission masks on region permission added, corrected ITCM base address write, its read only 2007-01-06 14:13:01 +00:00
damdoum f3abae1025 scaling 1x 2x 3x
rotating (e.g. Brain Age)
deleted Makefile (is generated !)
2007-01-06 13:26:54 +00:00
yabause f3e18f0457 Applied evilynux patch to glade port, it seems that the port now compiles
fine so it's included in autotools scripts.
2007-01-06 09:59:28 +00:00
mightymax 21a8bc42b3 included REG_DISPx_BLDY to pass to GPU 2007-01-05 23:04:38 +00:00
mightymax a61bc58dc4 added missing special color effects (brighten/darken, included OBJs as effect target 2007-01-05 23:03:47 +00:00
mightymax 027ecb5373 added REG_BLDCNT support -> Working tilemap alpha blending 2007-01-05 19:29:29 +00:00
damdoum aec299664e size 1x 2x 3x 2007-01-05 17:59:01 +00:00
damdoum e725030db9 scaling 1x 2x 3x 2007-01-05 17:52:40 +00:00
damdoum b72cfed09a dtools : io regs working now 2007-01-05 13:39:45 +00:00
mightymax 340864c47a fixed linenumber showed when switching arm/thumb view 2007-01-05 13:04:52 +00:00
mightymax 2f3bc5f92c added cp15 region access checks 2007-01-05 12:56:53 +00:00
damdoum 5180340738 cleanup unnecessary files 2007-01-05 12:16:31 +00:00
damdoum 7d3559bf4b cleanup in unnecessary files
modified automake file (but Makefile.in needs be modified too)
2007-01-05 11:20:43 +00:00
damdoum 1071c4087e changed Makefile to add debug tools ui
need change of autoconfigure script
2007-01-05 10:52:53 +00:00
damdoum ae44368182 relocated glade & resource files
began debug tools ui
2007-01-05 10:46:05 +00:00
yabause 8a6bb9a809 Modified autotools scripts to handle glade port. It is disabled for now,
as it seems there's some missing files in the gtk-glade dir.
2007-01-05 01:12:31 +00:00
yabause ec440a0d60 Removed the last changes to autotools scripts, I gonna add better glade
detection later.
2007-01-04 00:03:52 +00:00
damdoum 55cfb520b8 damdoum 2007-01:
gtk-glade ui files
2007-01-03 23:54:08 +00:00
damdoum daf5d2713d damdoum 2007-01 :
added gtk-glade ui
needs libglade-2.0 and "-Wl,-export-dynamic" for compilation
2007-01-03 23:51:04 +00:00
yabause 15d890bcd3 Commited Cyrille Bagard patch to SWAP macro 2006-12-26 21:07:39 +00:00
yabause f1f3c38c42 Fix to the gtk port so versions of gtk without g_file_set_contents can
be used.
2006-12-25 22:06:15 +00:00
cyberwarriorx 2713e143ef -Should be accurate now 2006-12-23 21:50:45 +00:00
yabause 58dd16bff9 Added an autopackage configuration file and updated autotools scripts. 2006-12-23 21:26:21 +00:00
yabause d4e8d301f8 Added README.LIN and fixed a typo in README.WIN 2006-12-23 21:15:42 +00:00
cyberwarriorx 575b480f27 -Updated version. configure,etc. still needs to be rebuilt though 2006-12-23 16:04:17 +00:00
cyberwarriorx a3c3b405c1 -Added a couple of contributors 2006-12-23 16:03:45 +00:00
cyberwarriorx a8f2c73d6d -Oops, missed a couple of things 2006-12-23 13:44:11 +00:00
cyberwarriorx f7994c0f4a -Argh, I hope there isn't anything important I missed. 2006-12-23 13:43:21 +00:00
cyberwarriorx b068b0222b -Updated authors list. I'm pretty sure this will have to be changed yet 2006-12-23 11:49:12 +00:00
cyberwarriorx 9f817cfca2 -Added main readme file
-Fixed a grammar issue that Normmatt found
-Fixed a formatting issue
2006-12-23 11:39:19 +00:00
cyberwarriorx 3eb8d8fa9f -Added readme for windows's port in preparation of release 2006-12-23 10:31:24 +00:00
cyberwarriorx 2f32db41cb -Added some SWI changes Mighty Max sent me. Relocating SWI routines should work now. 2006-12-23 00:52:11 +00:00
yabause c5c1ac7895 fixed compilation issues for gtk port. 2006-12-17 11:04:58 +00:00
cyberwarriorx 326109d0c8 -Couple of backup memory fixes
-Changed NDS_LoadROM so it takes two more additional arguements(backup memory type and size)
-Changed windows port so it preserves the setting for backup memory when loading a new rom, this should fix some backup memory corruption issues
2006-12-10 03:26:01 +00:00
cyberwarriorx dcdfbd1411 -Frameskipping is now configurable. Settings are also loaded and saved from/to the ini file 2006-12-09 23:47:01 +00:00
cyberwarriorx 3aa8497c47 -Closing the IO register dialog no longer crashes the program anymore 2006-12-09 07:12:18 +00:00
cyberwarriorx 7ab8846882 -Fixed a bug that only showed up when I was compiling with mingw(I guess microsoft compilers must handle free()'s to invalid pointers a lot better) 2006-12-09 05:19:56 +00:00
cyberwarriorx 567d403a3e -Added a new register define
-Changed MMU.c to use register defines
2006-12-09 05:04:04 +00:00
cyberwarriorx c06e0c2c29 -Code is no longer dependent on libnds
-Fixed a bug where the old backup memory file handle wasn't being freed before opening a new one.
2006-12-09 01:05:26 +00:00
cyberwarriorx fe2e82c8a6 -Fixed a memory leak in Rom Info dialog
-Rom Info and Reset menu options are now only enabled after a ROM has been loaded
2006-12-08 06:40:02 +00:00
cyberwarriorx dce78ebfaa -A few more internal variables are now being reset 2006-12-08 05:26:50 +00:00
cyberwarriorx e408d73320 -Reworked rom loading so you can load a different rom without any problems
-Finished NDS_Reset. Now the emulation can be reset even while running.
2006-12-08 04:03:18 +00:00
cyberwarriorx ffc132cd96 -Fixed a bug in the SPU_Reset function
-Removed an unused variable
2006-12-07 03:55:41 +00:00
cyberwarriorx 4fb62b85cc -Added quick save state saving/loading to the windows port's menu
-Added shortcut keys for quick save state saving/loading to the window's port. Use shift+F1-F10 keys for saving, and F1-F10 for loading
2006-12-01 23:56:05 +00:00
yabause cc2a52a3a2 Changed GPU_screen to u8 * 2006-12-01 21:33:45 +00:00
cyberwarriorx abc9d733b2 -Fixed a couple of warnings
-Added a few menu options for accessing the website, forums, and for submitting bugs.
2006-12-01 06:36:02 +00:00
cyberwarriorx 8054223d02 -Fixed a number of warnings 2006-12-01 06:34:13 +00:00
cyberwarriorx d0960e5db7 -files now compile in VC++ 2006-12-01 03:45:58 +00:00
yabause b33d11bffb Added "volatile" to execute in cli and gtk ports. 2006-11-30 22:35:11 +00:00
yabause e739ac4b8c Applied freebsd patch by stsp :) 2006-11-30 22:19:57 +00:00
cyberwarriorx af06f98596 -files now compile in VC++ 2006-11-30 21:43:48 +00:00
cyberwarriorx 63614f864e -files now compile in VC++ 2006-11-30 20:34:02 +00:00
cyberwarriorx c179a9d1ff -file now compiles in VC++
-Commented a couple of spots that need to be fixed.
2006-11-30 19:58:46 +00:00
cyberwarriorx 381f5da733 -files now compile in VC++ 2006-11-30 18:52:28 +00:00
cyberwarriorx bac9c4fbbf -packed structures in fat.h now compile in VC++ 2006-11-30 09:36:14 +00:00
shashclp 4efbb1089b + Fixed LDR*/STR* opcodes, and other minor fixes 2006-11-30 07:29:35 +00:00
cyberwarriorx 3557c9a7f0 -Moved control configuration and sound settings options to "Config" menu 2006-11-30 06:13:16 +00:00
cyberwarriorx 4e988e18f6 -Cleaned up some of my old code
-Removed a few duplicate extern's
-Added Sound Settings dialog - You can now select which sound core to use, the sound buffer size, and the volume level
-All sound settings are loaded from and saved to desmume.ini
2006-11-30 06:09:17 +00:00
cyberwarriorx 450364c4d6 -Added *.ds.gba to list of file types in rom open dialog 2006-11-29 23:32:53 +00:00
cyberwarriorx 9effe47e5d -Reworked savestate code a bit. Should be more accurate now. 2006-11-29 02:44:41 +00:00
yabause b2f47218db Added some missing copyright notices 2006-11-28 21:58:02 +00:00
cyberwarriorx fbc4cb82c0 -Added copyright notice at the top of files. Anyone who's made contributions to the files should add their name at the top 2006-11-28 21:49:02 +00:00
cyberwarriorx 36a1ce556b -Rewrote the framebuffer code. Now it supports VRAM blocks A-D
-Added support for Display Mode 0(Display Off)
-Added the basic framework for Display Mode 3(Display from Main RAM)
2006-11-27 20:11:20 +00:00
cyberwarriorx 97b68cc3be -Added support for Master volume 2006-11-22 21:24:54 +00:00
cyberwarriorx 3e916e190a -fps display now work again in windows port 2006-11-22 19:09:09 +00:00
yabause 04a2fe35b8 Commited autotools patch by Anthony Molinaro, it looks like he know
autotools fat better than I do :D
2006-11-22 18:57:04 +00:00
yabause 9c71c153a7 Added T2Memory functions and used them to rewrite GPU_screen accesses,
it should fix some more endianess bugs. Not all accesses have been
rewritten yet.
It shouldn't have broke anything...
2006-11-21 23:01:35 +00:00
cyberwarriorx 55fa0b0818 -Reverted back to 1.2 code. 1.3 changes are too broken. There's also so many stupid little things that got changed that don't functionally change anything. It makes it next to impossible to debug. 2006-11-20 02:22:35 +00:00
shashclp ce0a80be78 + Fixed LDR*/STR* opcodes (and other minor fixes) on the ARM core
+ Fixed unaligned memory access on THUMB Core
2006-11-19 23:02:27 +00:00
cyberwarriorx 3ae3d05161 -Fixed a few things that are causing compilation issues in VC++ 2006-11-19 18:56:06 +00:00
cyberwarriorx d3359010cc -Fixed a few things that are causing compilation issues in VC++ 2006-11-19 17:33:42 +00:00
cyberwarriorx 1a4d910526 -Fixed a few things that are causing compilation issues in VC++ 2006-11-19 01:45:22 +00:00
cyberwarriorx e72e8b593a -Fixed SoundBias so it's an ARM7 bios function again
-Added GetSineTable
2006-11-18 01:10:55 +00:00
yabause 48d5edd6b8 Some more fixes. Now it seems that first part of the process (creating
the hierarchical structure) is working better.
2006-11-17 23:33:07 +00:00
amponzi f6f576f4fe - Adjusted SoundBias code to smoothly adjust bias based on delay
- Put SoundBias into ARM7 instead of ARM9 (Thank your father kids!)
2006-11-17 22:11:55 +00:00
yabause ba7f1b6037 Fixed the fix that didn't fixed cflash... but it's still not working
right...
Added some #include in SPU
2006-11-17 21:33:59 +00:00
cyberwarriorx 47616ece38 -"Temporarily" removed hacks 2006-11-17 21:00:42 +00:00
amponzi e18043343e - Added special detection for games that use unusual EEPROM address calls
- 4kbit EEPROM uses 9 bit and 2 bit autodetect sizes
- 64kbit EEPROM uses 12 bit and 22 bit autodetect sizes
2006-11-17 20:28:49 +00:00
amponzi 60dab6aa7c - Added preliminary SoundBias BIOS function call 2006-11-17 20:27:35 +00:00
normmatt234 2dd424f630 Added GetCrc16 bios function 2006-11-17 06:04:58 +00:00
cyberwarriorx 175d6e88e9 -Added Backup Memory autodetection. Almost perfect, there may be a few odd games that still need to manually picked
-Backup Memory is now loaded from file at the same time the rom is loaded.
-A slightly better algorithm for saving Backup Memory is being used, but it certainly needs improvement.
-Autodetection is now used by default
-Added menu option in windows port for autodetection
2006-11-17 03:12:22 +00:00
normmatt234 46cc94f44f Updated to use DirectX instead of SDL for Audio 2006-11-17 01:27:51 +00:00
yabause 7a3887d937 Fixed cflash a bit, at least it doesn't have the same bugs anymore :p
(Added string.h in sndsdl includes too)
2006-11-16 23:14:23 +00:00
cyberwarriorx 428f85bfac -Added proper logging for unimplemented bios functions. This should help when debugging non-working games. 2006-11-16 17:14:40 +00:00
cyberwarriorx 72c9d4bef3 -Added GetPitchTable and GetVolumeTable support. This should fix any remaining games with pitch and volume problems. Eventually the tables should be generated at runtime instead of being huge static arrays. 2006-11-15 15:39:32 +00:00
cyberwarriorx a1d8c4ff85 -Fixed Read High/Write High commands on non-eeprom type 1 types 2006-11-14 19:28:28 +00:00
cyberwarriorx 480c0cbcf1 -aponzi fixed 4kbit EEPROM support
-Removed some unnecessary code
-Reading/Writing of file has been disabled until it can be rewritten
2006-11-14 17:21:01 +00:00
cyberwarriorx b20ea3a201 -Fixed a few things that didn't make sense 2006-11-14 16:53:41 +00:00
normmatt234 2f9339df37 mc .c/.h - Added realloc to realloc backup memory on the fly 2006-11-14 06:16:03 +00:00
normmatt234 2d03f5a247 main.c - Now includes menu options to change save types on the fly
resources .h/.rc - Added Config menu and Save Types options
2006-11-14 06:14:39 +00:00
normmatt234 1380659c61 - Opps missed out one SDL vs DirectX sound api issue 2006-11-14 04:44:58 +00:00
normmatt234 7cf7fa62d9 - Fixed sound hanging when you pause emulator
- Fixed emulator not pausing when click open in the menu
2006-11-14 04:39:57 +00:00
normmatt234 f19bb9cfce MMU .c/.h - Added a Clear Memory function
NDSSystem.c - Call Clear Memory every time you run a rom to make sure all the the
 memory is blank like it should be
mc.c - Added basic saving backup ram to file (it slows saving down ALOT though)
2006-11-14 04:35:54 +00:00
cyberwarriorx 52f564a0fe -Fixed a bug where some sprites would have the wrong palette. 2006-11-13 18:00:33 +00:00
normmatt234 86bb6625ac Added SPU_Pause function 2006-11-13 08:28:37 +00:00
normmatt234 248521cd2b Added support for FRAM and added some defines for save sizes 2006-11-13 07:26:03 +00:00
normmatt234 eba2abe57a updated to work with latest cvs code 2006-11-13 05:51:49 +00:00
cyberwarriorx 7f22251195 -Sound is now enabled by default in linux port 2006-11-12 21:36:24 +00:00
cyberwarriorx 78c2f87c10 -Doh! Fixed another sound buffering bug, this time in the linux port 2006-11-12 21:34:54 +00:00
cyberwarriorx 6df185860a -Sound output is now enabled by default for the windows port
-Fixed a bug where the emulation thread wasn't being killed when the program finished
-Added new experimental auto frameskip/frame limit code.
2006-11-12 20:30:16 +00:00
cyberwarriorx d02edee33c -Fixed the formatting 2006-11-12 18:24:53 +00:00
cyberwarriorx 9c39bf3241 -Added new function that allows porters to change sound cores after emulation has been initialized. 2006-11-12 18:23:14 +00:00
cyberwarriorx b0d4e97fde -Removed some old code 2006-11-12 15:44:25 +00:00
cyberwarriorx 59755b42b0 -Fixed a bug where the emulator would crash if desmume.ini wasn't present 2006-11-10 23:39:21 +00:00
yabause 63aaea7bf8 Fixed linux fs driver... cflash would need some rewriiting too... 2006-11-09 21:51:39 +00:00
cyberwarriorx a531401927 -Oops. Forgot to commit windows sound support file
-Added SDL sound support for linux port
2006-11-07 19:08:28 +00:00
cyberwarriorx d193971f5f Linux port should compile again 2006-11-07 16:33:31 +00:00
cyberwarriorx c99931f5e5 -Added Get ROM chip ID Cartridge command. This should greatly increase compatibility. 2006-11-07 00:26:49 +00:00
cyberwarriorx bbdd032c12 -Added NDS Sound emulation(spu.c/spu.h)
-Fixed a few odd bugs
-Added a new sound core system(pretty much taken right out of yabause)
-Added Wav file write core
-Added dummy core(it's currently set as the default)
-Added Direct Sound core(windows port only)
-There's still a number of issues with sound. I really don't understand what's causing them.
2006-11-06 18:49:01 +00:00
cyberwarriorx 10bd92e7c1 -Removed some unnecessary logging 2006-11-06 17:01:07 +00:00
yabause 6265da362a Some more fixes to the linux filesystem driver, it seems to be
working now.
2006-11-04 19:51:47 +00:00
yabause 8ea9c268fb Removed 8.3 filenames from linux filesystem "driver" as it can't works. 2006-11-04 14:52:22 +00:00
yabause a1d64fa319 Fixed a bug I introduced in GPU and made cflash working again
(using the current directory instead of the rom directory, I
think it should be ok)
2006-11-04 14:09:36 +00:00
yabause c0a92ffe3d Some more endianess fixes 2006-10-29 22:46:53 +00:00
yabause 1827c3f3b6 Almost all memory access are now using T1Memory functions, there's
some u32 accesses that should use T2Memory left. u8 * casts are
still here too but they should be ok.
Most of those changes have been tested but not all, so there may be
problems...
2006-10-29 15:47:19 +00:00
yabause eba3fbbf09 Some more endianess fixes 2006-10-28 22:48:38 +00:00
yabause 3bfa3f6482 Added Yabause's T1Memory functions and used them to replace pointer
casts. It should fix endianess issues. (still a work in progress)
2006-10-28 15:44:24 +00:00
yabause 0712619eae Some minor fixes to the gtk port. 2006-10-16 19:14:25 +00:00
cyberwarriorx ea3822a654 -gtk code now working again. 2006-10-15 23:00:26 +00:00
cyberwarriorx 2ba05970a8 Alright, CLI is definitely working this time 2006-10-15 22:59:07 +00:00
cyberwarriorx 2e7211bb99 -linux cli should be working again 2006-10-15 22:22:07 +00:00
cyberwarriorx a193d47deb -Moved over LoadFirmware function from gtk code to emulator core. Yet another function that should be portable 2006-10-15 22:08:43 +00:00
cyberwarriorx b8a4e56b98 -Screenshot function moved to NDSSystem.c. Now all ports can use a universal screenshot function.
-moved __PACKED type to types.h
2006-10-15 21:42:16 +00:00
cyberwarriorx 76bb37145d -Renamed the various *Init/*DeInit functions to *_Init/*_DeInit so it better matches the naming convention of the rest of the functions
-Changed the way NDS_LoadROM works. It still needs -some- work(cflash is broken for now), but basically the idea is to cut down on duplicate code and instead have the emulator core do most of the work.
-Added a GPU Reset function. Once the reset function for the other chips, etc. are working, we can finally do a proper reset function.
-Linux port is probably broken again(sorry!)
2006-10-15 20:45:17 +00:00
cyberwarriorx f017086930 Oops, forgot to adjust path for types.h 2006-10-15 14:11:13 +00:00
cyberwarriorx 87f1c439b7 Doh! Guill, you forgot to actually add the ARM9.* files again ;P 2006-10-15 13:55:25 +00:00
yabause 0da04cde58 Moved ARM9.h from arm9 directory to src one and removed ARM9.c file
(and move the ARM9Mem declaration to GPU.c). It should fix the
compilation on Mac.
2006-10-14 22:03:42 +00:00
yabause 06afb4be19 Some more fixes to the gtk port:
- now using portable types
 - actions can only be used when it makes sense
   (for instance, you have to open a rom before starting the emulation)
2006-10-14 17:08:44 +00:00
yabause 5cab477fbe Started to change the gtk code to use GtkAction. 2006-10-14 14:13:31 +00:00
yabause b45daf7e74 - Changed configure.ac so Mac OS X uses fs-linux.c ... I may rename it :p
- Added "static" to functions in thumb_instructions.c, arm_instructions.c
    and Disassembler.c. They are "private" functions and they are declared
    both in Disassembler and arm/thumb_instructions leading to duplicate
    symbols in libdesmume.a
2006-10-14 11:58:27 +00:00
yabause 5d1bd9d3e2 Changed GPU_ligne arguments to something better. 2006-10-13 21:15:27 +00:00
yabause 7a3a6645be There was two much GPU.c/.h files... removed some of them... and moved the
other at the place where I removed the first...
2006-10-13 20:35:47 +00:00
yabause 2bb587f843 Removed ini.c/.h in gtk sources and used GKeyFile from glib instead. 2006-10-12 22:58:00 +00:00
yabause ab7a815544 "Rewrote" gtk gui in C... (it was almost just a matter of renaming .cpp
files to .c)
2006-10-12 22:11:24 +00:00
yabause b683a9305b Fixed linux version (cli and gtk interfaces). Hope I didn't broke anything.
The gtk gui is still in C++, so I had to add some extern "C" to compile it,
they may be removed when it will be rewrote in C.
2006-10-12 21:59:58 +00:00
cyberwarriorx 6448479c01 -Files no longer needed 2006-10-12 16:58:57 +00:00
cyberwarriorx debc860a76 -Moved cflash.* and fat.h to main source directory since they're not port-specific code.
-Adjusted makefiles and other sourcefiles accordingly
2006-10-12 16:58:00 +00:00
cyberwarriorx b6e940d480 -fw.* files renamed to mc.* since it's not just firmware stuff in it anymore.
-Moved those files to main source tree, since it doesn't make sense to have in a separate directory
-Removed spi.* from arm7 directory since they're redundant.
-A few other fixes
2006-10-12 15:42:11 +00:00
cyberwarriorx 0b402eee65 -Added support for Backup Memory. Memory type detection still needs to be added. I'm not sure what's the best way of handling that. 2006-10-11 21:52:43 +00:00
cyberwarriorx 79c3011b19 -CLI port is now switched over to C 2006-10-05 00:49:16 +00:00
cyberwarriorx bfabd56b52 -Main emulator code and windows port code conversion to C 100% complete. Files have been renamed to .c/.h files, and whatever needed fixing or rewriting has been rewritten. So at least that's one less major task to do.
-autotools files have been rebuilt
2006-10-05 00:16:43 +00:00
cyberwarriorx 116e6e6ca3 -saves.cpp/saves.hpp has been moved out of /src/windows since it isn't port specific. Code has also been made more portable and cleaned up. More work still needs to be done. 2006-10-03 20:59:50 +00:00
cyberwarriorx 7dc0772317 -Fixed a few more issues in the main emulator code that needed to be done before we can officially start compiling them as C code. 2006-10-03 20:29:42 +00:00
cyberwarriorx ac157aa606 -No longer needed 2006-10-03 19:11:59 +00:00
thoduv 81a6edab57 Update on new memory system: added basic DMA and some memories (itcm, shared, gba rom) 2006-07-05 21:02:23 +00:00
romanito 38645dc3ce added a 48x48 version 2006-07-05 13:58:45 +00:00
romanito 16ff76e724 added a 16x16 version 2006-07-05 13:15:41 +00:00
thoduv cc557e7ac8 New memory system update (endian-safe). 2006-07-04 23:43:48 +00:00
thoduv f07885b33e Endianess conversion macros 2006-07-04 21:48:58 +00:00
thoduv 09f84f85d3 Endianess conversion macros 2006-07-04 21:46:47 +00:00
thoduv 0582a69236 Reordering directories (arm9 and arm7 folder added).
Moved GPU and ARM9 to arm9/
Moved spi and fw (added write support, not tested) to arm7/
Compilation may be broken for gtk version (i'll fix it soon) and windows version (includes have to be changed)
2006-07-04 18:51:39 +00:00
yabause d0cdc455a8 Moved ARM7 and ARM9 from NDSSystem to global scope. 2006-07-04 14:37:59 +00:00
thoduv 93240873c6 BIT(n) was false. Now screen swap is fixed. 2006-07-03 10:12:48 +00:00
thoduv e72a9e8281 Added macros for clearing writing to memory
Cleaned DS card implementation (not completely done, to finish)
2006-07-02 23:48:39 +00:00
thoduv 22bca700ec GTK+ gui again:
- added debug key
- added INI files parsing/writing functions
- added config file loading/writing (keys)
2006-07-02 20:53:26 +00:00
thoduv 203016c44e Big change in GTK+ gui: now it can load/unload/load... roms.
Added firmware file settings.
Added desmume.cpp/h (can be used for other guis)
Deleted free() of ROM in NDSSystem, it's up to gui to malloc/free (so, no more double free in GTK+ gui)
2006-07-02 11:21:07 +00:00
thoduv 2d9e7200d8 Added basic frameskip
Updated ioregsView
2006-07-01 21:55:31 +00:00
normmatt234 f61ca96084 fixed includes for ConfigKeys was including the old .c and .h files 2006-07-01 11:58:58 +00:00
normmatt234 33bec5cecf include GPU.h, GPU.c, ARM9.h, ARM9.c 2006-07-01 11:47:07 +00:00
normmatt234 31adc1b25e created a new key config dialog 2006-07-01 11:45:12 +00:00
thoduv 4460f50bba Modifications to GTK+ gui:
- Speed improvement (use a higher priority for idle loop)
- Added beggining of "tool" system
- Tool "ioregsView" for REGS IE, IF and IME.
2006-07-01 09:55:08 +00:00
thoduv 672f4ef5c1 Added macros in MMU, better indentation, added some coments, etc... 2006-06-29 21:59:20 +00:00
thoduv d75ecf4db8 mmu code cleaning: added macros for REG_I* (IE, IME, IF).
renamed MMU.REG_I* to MMU.reg_I*
2006-06-29 19:35:53 +00:00
thoduv d2dcc53a9e *** empty log message *** 2006-06-29 18:43:36 +00:00
yabause e82af37a36 Changed #include dependencies again.
Fixed a bug in GPU (xfin could be greater than LG causing a segfault).
Moved GPUs from NDS to global.
2006-06-27 09:28:02 +00:00
thoduv de4acb537f gpu: replaced >>, <<, & and values with understandable macros from libnds (video.h) and cleaned indentation. partially done, i'll finish later 2006-06-22 17:06:54 +00:00
yabause f959cd5c15 Rewrote GPU in C. 2006-06-21 08:54:00 +00:00
yabause 5ba0b994fa Fixed the windows version avec the separation of MMU.
Renamed ConfigKeys.c/.h to .cpp/.hpp to get it compiling
with autotools scripts.
2006-06-20 23:08:42 +00:00
yabause b7ddc9cf2b Separated ARM9 from MMU so GPU doesn't depend on it anymore. Should ease
the rewrite in C.
2006-06-20 22:48:03 +00:00
normmatt234 6b5786fd1c Initial Import 2006-06-14 11:47:31 +00:00
normmatt234 ec0b48260b - included all files needed 2006-06-14 11:45:44 +00:00
normmatt234 833db3a5a0 main.cpp - added proper X/Y/DEBUG key implementations
resources.rc - added config dialog
resource.h - added combo defenitions
2006-06-14 11:44:53 +00:00
normmatt234 16eea7dd99 -fixed compile errors in dev cpp 2006-06-14 11:42:12 +00:00
yabause 77ed68f8f2 Moved some macros from armcpu.h in a separate file.
Moved Disassembler.cpp/.hpp to Disassembler.c/.h
2006-06-10 16:18:26 +00:00
yabause a68d444913 Added FS_SEPARATOR definition ('/' on linux, '\\' on windows) 2006-06-08 22:17:02 +00:00
yabause 657bc38dec Added cflash support to gtk interface. fs-linux now detects directories. 2006-06-08 21:57:00 +00:00
yabause 8c70e4a8c2 Added some code to fs-linux.c, it's now working enough to display files
but doesn't parse subdirs. The code needs some cleaning...
2006-06-07 22:52:24 +00:00
yabause 01a8c191e2 Moved the \\* in fs-windows.c 2006-06-07 22:11:43 +00:00
yabause 3de4593edf Moved fs.c to fs-windows.c and added some dummy fs-linux.c 2006-06-07 22:00:48 +00:00
yabause 1c1aa297f2 Removed the windows-specific code from cflash and fat files.
Moved the directory access code in fs.c/.h
fs.c is still windows-specific code, I'll have to write a
POSIX version of that file.
2006-06-06 22:57:24 +00:00
cyberwarriorx ac6ea9b9a4 -Changed's unsigned long's to u32. Should be more 64-bit compatible 2006-06-04 22:32:56 +00:00
ieremiou 74257346de - Fixes for cflash updates
- Added makefile.am linking for cflash
- Removed self-inserting redundant include in yopyop.. I thought that was fixed before.. sigh.
2006-05-26 14:03:43 +00:00
normmatt234 2b550ddba4 main.cpp - added GBAMP emulation thanks to mic
DeSmuME.dev - added icon and removed the include for the zlib dll, now it shouldnt require the dll
2006-05-26 07:41:51 +00:00
yabause abe8a5975a FIFO is now in C. 2006-05-14 12:08:05 +00:00
yabause e368117a06 Removing framebuffer emulation :p 2006-05-14 10:35:12 +00:00
yabause 5ef9f4eee7 Added initial framebuffer emulation. You have to define FRAMEBUFFER
to enable it (this can be done with ./configure --enable-framebuffer
if you're using autotools scripts)
2006-05-14 09:16:42 +00:00
yabause a26856e8b1 Fixed debug.h so variadic macros are working without arguments and
added an extern "C" so there's no linker error when using autotools
script to compile.
2006-05-14 06:14:48 +00:00
yabause a19d281580 Removed the NDSSystem parameter as it's a extern one.
Rewrote the LOG macros so they are ANSI-compliant.
2006-05-13 22:34:38 +00:00
yabause bde51f84e4 Removing useless files. 2006-05-13 18:43:53 +00:00
yabause 79c6fdcdcf Fixed autotools script so they're searching for zlib and add some #ifdef
in saves.cpp
2006-05-13 12:48:19 +00:00
normmatt234 bf35693ebc Added Savestates 2006-05-13 11:18:48 +00:00
aped 29f77fa637 translated more stuff 2006-05-13 09:09:59 +00:00
yabause 8db41a8ec5 bool -> BOOL (true -> TRUE and false -> FALSE too, btw) 2006-05-12 21:53:26 +00:00
yabause 4b4d7812ba Some mac os x support... at least now it's not segfaulting anymore...
but it gives black screen.
2006-05-05 10:18:16 +00:00
yabause 1c5f3990c7 Added a command line interface. 2006-05-05 08:33:09 +00:00
yabause 104ef2efa8 Partial rewrite of MMU in C. Gonna finish that later. 2006-05-02 15:10:27 +00:00
cyberwarriorx ae888f3181 -Fixed a few bugs
-Cleaned up code(screenshots now using win32 api structures)
-A few other things I can't remember
2006-04-18 19:43:26 +00:00
cyberwarriorx c3cf08646d -Added English Menu's for screenshots
-Fixed a strange issue where yopyop_private.rc was including itself
2006-04-18 19:01:26 +00:00
delfare 1a3bbf6070 limit fps 2006-04-18 17:24:02 +00:00
delfare 7b1695388b printscreen add 2006-04-18 16:41:34 +00:00
cyberwarriorx 86979e44a7 -Added BOOL type and TRUE and FALSE definitions(if they're not defined). When converting C++ -> C, please use this to convert bool variables 2006-04-16 19:17:11 +00:00
yabause 574603e7c5 Partial conversion of FIFO class to C. 2006-04-15 13:12:13 +00:00
cyberwarriorx 517f7f7cde -Translated some french variables to english
-Added an english menu for windows port
-Fixed a couple of potential issues
-Added new logging to windows port
2006-04-14 20:28:15 +00:00
cyberwarriorx 619c90e81c -Changed code to use Yabause's logging system, fixed a few odd things 2006-04-14 00:32:35 +00:00
cyberwarriorx 435a82a144 -File needs to be redone as it's not as up to date as armcpu.cpp(It's not entirely in C yet either) 2006-04-14 00:24:45 +00:00
cyberwarriorx 64868f5be9 -Adding Yabause's logging system(since it's more functionally complete) 2006-04-13 19:35:46 +00:00
cyberwarriorx d154d92333 -Changed version to 0.3.3 which is what the windows port currently reports it as. 2006-04-12 22:59:20 +00:00
cyberwarriorx 83472a5fb8 -Changed variable types so they're more portable 2006-04-12 20:55:35 +00:00
cyberwarriorx 8638225f69 -Changed variable types so they're more portable 2006-04-12 20:41:39 +00:00
yabause 996a026e61 Replaced __fastcall by FASTCALL 2006-04-12 20:03:05 +00:00
cyberwarriorx c9460e6d8b -Changed variable types so they're more portable 2006-04-12 20:02:11 +00:00
thoduv f028b8aec4 Added "config.h" 2006-04-10 14:24:12 +00:00
cyberwarriorx 202c3d7065 -Changed variable types so they're more portable 2006-04-10 02:22:38 +00:00
cyberwarriorx 65e81946a7 -Changed variable types so they're more portable 2006-04-10 02:00:55 +00:00
cyberwarriorx fee31029b9 -Changed variable types so they're more portable 2006-04-08 20:20:57 +00:00
yabause 821666bed5 Fixed compilation for windows. 2006-04-08 15:20:21 +00:00
yabause eefd5e7752 Moved the SDL test in linux only part, as it isn't needed for windows. 2006-04-08 14:23:26 +00:00
yabause a3eeac26cf Got some comilation problems with resource.hpp, so renamed it to resource.h 2006-04-08 13:28:26 +00:00
yabause 25dc03b40c Added autotool scripts for windows. Fixed some things in the windows
version to have it compiling.
2006-04-08 13:25:25 +00:00
yabause 5ce0f5b852 updating autotools script to match source changes. 2006-04-07 20:51:14 +00:00
thoduv d92d13f099 BIG CHANGE : Core of emu (armcpu) has been translated to C 2006-04-07 19:20:51 +00:00
yabause 028eba694c forgot to add the conditional subdir in Makefile.am 2006-04-06 21:26:13 +00:00
yabause 637bc5bffa gtk should be used only on linux (for time being) 2006-04-06 21:22:22 +00:00
yabause 363ba63dc9 Adding autotools stuff. Still need to write the windows Makefile.am. 2006-04-06 20:41:56 +00:00
thoduv dcf1e19871 Conversion from ARM_CPU (c++) to C ! :) 2006-04-06 19:57:38 +00:00
thoduv 97d25810fd Rename "types.hpp" to "types.h" (seeing I've made the error in all header ;P) 2006-04-06 19:15:36 +00:00
thoduv 700fb868e8 Added GTK+ GUI 2006-04-06 16:46:53 +00:00
cyberwarriorx 25adcf05f4 -Accidently forgot to rename one file 2006-04-06 01:30:31 +00:00
cyberwarriorx 230cafdbc0 -Initial source add. Windows-specific code 2006-04-05 23:13:44 +00:00
cyberwarriorx 3c2bb0cee4 -Initial source add. Changed copyright headers to english, change file name conventions to *.cpp/*.hpp 2006-04-05 21:01:57 +00:00
yabause f9128bf0f6 Testing syncmail... 2006-04-05 20:32:01 +00:00
cyberwarriorx d0ec168890 This commit was generated by cvs2svn to compensate for changes in r5,
which included commits to RCS files with non-trunk default branches.
2006-04-05 20:14:28 +00:00