Commit Graph

2598 Commits

Author SHA1 Message Date
jxq2000 caa606af71 Lua writer color config is now functional, with default button; small fix to default library color; reverted introduction of redundant "Emulua..." value. 2012-07-26 00:48:19 +00:00
adelikat c0015a5b4c Lua Console - set a proper tooltip on the New Script toolstrip menu item 2012-07-26 00:01:21 +00:00
adelikat f93be79a47 LuaConsole: Hides and Disables the new script button on debug mode.
LuaWriter: Automatically adds "end" after pressing enter when if the line has "if", "for", "while", or "function". Even though, it creates a new line before the statement
2012-07-25 22:53:11 +00:00
andres.delikat a5ed71269d text: LuaConsole. Added a New Script menu item and toolstrip button. It calls the LuaWriter with a null path.
LuaWriter. If it is loaded with a null value, it will start the Text with while true do emu.frameadvance() end.
2012-07-25 17:36:26 +00:00
andres.delikat 8214a649c3 Lua console - fix to autoload lua session, if there is no recent session, it will open nothing, rather than cause an exception 2012-07-25 13:55:25 +00:00
brandman211 1bedd81666 That optimization for movie length calculation in the PlayMovie dialog now accounts for files with new line characters of all sizes. 2012-07-25 08:01:02 +00:00
adelikat bb05876f84 Fix lag counter display where lag frame drawing did not use the anchoring property 2012-07-25 00:51:59 +00:00
adelikat 863a7c3690 Fix bug when Run in Background is Disabled, emulator will now remember if the emulator was paused before losing focus, if it was, it will not unpause when activated. 2012-07-25 00:45:05 +00:00
andres.delikat f72905f602 NES - start mapper 96 (prg mapping working) 2012-07-24 14:32:09 +00:00
brandman211 b96e014327 -Reverted disassembly printout as it'll now match up with my comparison.
-Fixed the branching disassembly; the direction just negates the offset and the second parameter only belongs to BEXT. All of my sources contradict each other, but this seems sensible.
2012-07-24 05:29:24 +00:00
adelikat 817b202192 On Behalf of Rolanmen - LuaWriter. Now Colors Lua Library Words. 2012-07-24 03:35:28 +00:00
brandman211 d469a4e568 -Put the disassembly in parenthesis and put the opcode to the left of it in the logs. This is uglier, but it's initially easier for comparison this way.
-RegisterSP now increments in MVO@ instead of decrements. I'm not sure how this allows the stack to function properly, but it seems to work.
2012-07-24 03:05:57 +00:00
adelikat 08e79f26a2 Lua Writer - color config - re-hook up the load event that got clobbered at some point 2012-07-24 01:39:19 +00:00
jxq2000 6c5c33ea7a Beginning of Lua Writer Color config form - not yet functioning.
Renamed a global variable for consistency with others.
2012-07-24 01:11:36 +00:00
adelikat d774e49cd8 NES - Mapper 245 - do chr-ram logic. The 3 games I found correctly labeled as 245 (Yin He Shi Dai, DQ7, Hyrule Fantasy) all fail to run properly in this implementation, and FCEUX. 2012-07-24 00:12:40 +00:00
andres.delikat b08c2861a4 NES - start mapper 245 prg mapping working (possibly) 2012-07-23 22:15:22 +00:00
andres.delikat ae291162e1 Add Xing Ji Wu Shi (Ch) to gamedb as Mapper 176 (The ROM floating around is incorrectly labeled as 177) 2012-07-23 21:19:45 +00:00
adelikat 8825cb7499 Fixes to Lua Writer on behalf of Rolanmen 2012-07-23 12:28:03 +00:00
adelikat 8b06a39ef9 Lua Text - start a very rough auto-complete box 2012-07-23 02:24:48 +00:00
adelikat 6379aafbae Lua Writer - start syntax color config dialog and font config, neither do anything yet 2012-07-23 01:32:41 +00:00
adelikat 973aa8f9ae Lua Writer - better color of library names, anchoring 2012-07-23 01:10:31 +00:00
adelikat a8753021cc Lua Writer - syntax highlighting for bizhawk lua library functions 2012-07-23 01:02:04 +00:00
goyuken 7db089fbbd add automated dumping. command line example:
bizhawk.multiclient --dump-type=ffmpeg --dump-name=foobar.avi --dump-length=1000

type is one of 'vfwavi' (doesn't work), 'ffmpeg', 'jmd', 'nut', 'wave'
name is filename to dump to; might be auto-modified to add segment split names (_00, _01, etc)
length is length of dump in frames after which it auto-stops.  if omitted, set to be equal to the length of the movie loaded with --movie, or if not that, it runs forever (can be stopped from UI)
2012-07-23 00:33:30 +00:00
adelikat f9c764f5e5 oops, previous commit didn't compile 2012-07-22 22:26:43 +00:00
adelikat 09fb9c88f4 Lua Writer - implement saving and fix so that the text only redraws when it needs to. 2012-07-22 22:24:02 +00:00
rolanmen1 0eba6e53e4 LuaWriter. Added coloring symbols, it won't color if the symbol is part of a comment or a string. Also made (") and (') to not color when it's part of a comment.
Config.cs. Added SymbolColor, wich by default is black.
2012-07-22 22:16:44 +00:00
zeromus f951b5e932 fix issue where mario bros 3. gets auxilary files created as mario bros. how it got this way is a bit baffling, so i hope i didnt break anything 2012-07-22 20:26:38 +00:00
adelikat 75bed1f242 Lua Console - open selected file in lua writer dialog, implement drag & drop on lua writer (but fails because it doesn't allow drop on the edit box itself) 2012-07-22 20:25:53 +00:00
adelikat ed16f40529 oops, forgot to add Mapper205.cs 2012-07-22 20:11:55 +00:00
adelikat a380319973 Lua Console - remove hacky lua writer button. Set edit button to open the writer on interim builds only 2012-07-22 19:59:33 +00:00
adelikat e56de584e3 Lua Writer - faster drawing 2012-07-22 19:54:40 +00:00
adelikat f45238132e NES - start mapper 205 2012-07-22 18:41:54 +00:00
brandman211 743480e26f -Logging now uses a static StreamWriter instead of building the string and writing on destruction.
-Applied to the old Gameboy core. Why not? It at least fixes that annoying bug from before if we ever care to use it again.
-Both logs are now written to different files.
2012-07-22 18:40:28 +00:00
brandman211 9f2bcf3318 -Fixed logging.
--It now just builds a strings and writes on finalization.
-Fixed up format strings.
-As RegisterPC already increments upon reading the third decle, I now just store PC as the return address for jumping instead of PC + 1.
2012-07-22 18:08:10 +00:00
brandman211 60c5a1ce58 Added logging for the CP1610. Not working for some reason. 2012-07-22 17:18:11 +00:00
adelikat b089f2996c NES - decently support mappers 74 and 192 (games play fine other than missing characters in text boxes)) 2012-07-22 16:57:44 +00:00
adelikat 91be138920 NES - fixes to mapper 91, still fails 2012-07-22 15:35:19 +00:00
rolanmen1 21344b7bc4 LuaWriter. Re-structured coloring Strings. 2012-07-22 04:22:18 +00:00
adelikat f85b6a017b NES - checkin start of mapper 91 2012-07-22 01:02:18 +00:00
adelikat 225079a843 NES - implement board MLT-ACTION52 (Mapper 228) for both Action-52 and Cheetahmen II 2012-07-21 20:40:10 +00:00
zeromus e66e936567 nes-fix mapper 061 2012-07-21 19:45:16 +00:00
rolanmen1 f775c081f1 Config.cs: Added 3 variables that will be used for the colors of LuaWriter.
LuaWriter: Made it use the values of the variables in Config.cs. Made (") and (') colors the whole line if they are not closed. Now colors the word elseif.
2012-07-21 19:29:45 +00:00
adelikat b8a16f93fa Implement mapper 243 2012-07-21 19:23:05 +00:00
adelikat f16a44d4e6 Start Mapper 243 2012-07-21 18:54:12 +00:00
adelikat 8aeb313381 Fixes to mapper 164, Final Fantasy V has a broken title screen but otherwise playable. Implemented based on Disch's original notes and so not quite complete. 2012-07-21 18:31:41 +00:00
adelikat 544410b4d8 Fix mapper 154 (Devil Man) 2012-07-21 17:51:52 +00:00
adelikat 86e14410b7 NES - mapper 225 finished 2012-07-21 17:19:59 +00:00
brandman211 0a0763966c -Refactored of the executor / disassembler / Intellicart to use more descriptive variable names and types to clear up a lot of confusion.
-Added implementation for NOP (6 cycles of nothing).
-Made SWAP actually store the result (Still disabled).
-Added breaks to the swap / shift / rotate cases (Yikes).

Instruction disassembly:

JSRD R5, $1026
MVI@ R7, R6
JSR R5, $1A83
MVO@ R5, R6
MVO@ R0, R6
MVO@ R1, R6
MVI@ R7, R4
MVI@ R7, R0
JSR R5, $1738
MVO@ R5, R6
XORR R5, R5 <- Needs implementation.
2012-07-21 05:25:52 +00:00
rolanmen1 1616cc7eb9 LuaWriter. Prevented some exceptions. 2012-07-21 04:17:49 +00:00
brandman211 259ec356bd -Updated the disassembly based on a more accurate resource.
-Retrieved the double bit from the swap / shift / rotate instructions in a more proper way.

TODO: Use more specific variables; most of them suck, and with these docs, I have better names for them.
2012-07-20 23:06:59 +00:00