Commit Graph

25 Commits

Author SHA1 Message Date
brandman211 160694a0d4 Set up Watch.cs for Diff. 2012-06-12 00:13:02 +00:00
brandman211 7d23581764 Set lastchange to Value in Watch's explicit value constructor to match the change to prev. 2012-06-10 19:33:11 +00:00
adelikat a2a98415bf Ram Watch - show initial value of a watch when it is initially added (from adding it or loading a file). Fixes issue 74 2012-06-10 17:45:20 +00:00
brandman211 2580489986 Refactored previous parameter in CompareTo and ComparePrevious from strings to enums. 2012-06-09 22:10:39 +00:00
brandman211 376ffd3ba4 -Refactored what zeromus wanted me to and nothing more.
-The number of watches in Ram Watch is now updated in UpdateValues instead of LoadWatchFile, meaning that it's updated every time items are added / removed.
--Also noticed that separators count as watches. Filter these out and exclude them from the count, adelikat?
2012-06-09 21:43:02 +00:00
adelikat 0eae1a07fc Watches - cleanup PeekAddress() some 2012-06-09 14:18:28 +00:00
zeromus 1fbf9940c9 make peek/poke word/dword make some semblance of sense 2012-06-09 08:44:27 +00:00
brandman211 1c5a5a5ac3 Seemingly fixed the casting problem.
-UGLY REDUNDANT UGLY REDUNT UGLY REDUNDANT (Especially for DoSpecificValue() and DoPreviousValue()).
-I tested every possible scenario for the aforementioned abomination and it seems to work.
-I applied SignedVal and UnsignedVal to the comparison functions for sorting, the ToString functions, and specific value and previous weedings. I don't think there's any other places where this is an issue.

TODO:
-Try my mid-search data size conversion code again.
--Use it on System Bus and see if it is as slow (Not Responding) as it was previously now that 3 lists have been removed.
--Try allowing unaligned addresses and see if that makes any difference.
-Convince adelikat that moving "Prev value as change" to its own data item and column ("Differences" seems more appropriate) is the only sensible way.
-Maybe move all of the previous definitions from Ram Search to Ram Watch (With the exception of "Since last Search" of course.
-Perhaps allow the viewing / hiding of more columns on Ram Watch / Search.
2012-06-09 08:29:31 +00:00
brandman211 720193b50f -Cleared the sorted column whenever the previous definition, data size, data type, or endian changes because these options might place the values out of order.
--Well, data size and endian don't, but they will once these changes take effect in the middle of a search.
-Previous can now be defined as the last change, fixing the enhancement shown in Issue 73 (Ram Watch equivalent might come later).
-Fixed unsigned sort.
2012-06-09 06:40:11 +00:00
adelikat f02d28fb38 Ram Search/Watch, Hex Editor - improve some code efficiency, tiny speedups if any 2012-06-09 05:34:01 +00:00
brandman211 3b54bd268a -Useful refactoring!
--prevList, undoPrevList, and redoPrevList removed. All of the definitions for previous are now stored in separate data items.
---Should yield small speed increases.
---Makes it easier to port these definitions to Ram Watch eventually.
---Auto-aligns data, making it impossible for issues, such as the original values not aligning with the correct values because the prevList wasn't recreated, impossible.
---Makes it possible for the field to automatically update when the definition is changed (Implemented).
--Value/PrevToString() now use the same code.
--Reduces redundancy.
---This was a problem as PrevToString wasn't taking into account the data type, whereas Value was. This is now fixed.
-Watch now stores the data for the "last change" previous definition. Now I just have to set up the option in the GUI.
2012-06-09 01:56:56 +00:00
brandman211 67a9f86c78 -Fixed GetSpecificValue(), which means that signed searching works now.
-Upon changing data type, the contents of the specific value box converts accordingly.
2012-06-07 23:17:22 +00:00
adelikat 88424ca2b7 Fix a few warnings 2012-03-09 20:38:44 +00:00
zeromus dec7183e73 fix bug in ramwatch signed value printing, and probably unsigned 32bit value printing as well 2012-03-04 21:46:54 +00:00
andres.delikat 08fcaede91 Slight tweak to rendering of on screen ram watch, display separator watches as ---- 2011-09-13 00:29:54 +00:00
andres.delikat 0022b60b4f Watch object - update the PeekAddress() function to update the prev and changecount values. Fix Ram Search and Ram Watch UpdateValues() functions based on this change 2011-09-12 23:36:27 +00:00
andres.delikat 73add14d28 Watch object - add ValueToString() and PrevToString() methods and make Ram Watch use these methods and thus simplify the UpdateValues logic. Added an override for ToString() that displays notes + value in preparation for a on screen ram watch option. 2011-09-12 00:17:17 +00:00
andres.delikat 5e27953db0 Column sorting (and reverse sorting) for Ram Search & Ram Watch 2011-06-19 19:10:01 +00:00
andres.delikat 9816a04a4f Ram Search - Implemented previous search based on the previous value being since last search. Also fixed preview feature, it was previewing the opposite result. 2011-02-22 17:27:38 +00:00
andres.delikat 879f76d703 Implement PokeAddress on the Watch class, refactor Ram Poke to use this method. DWord poke implemented now. 2011-02-21 15:23:30 +00:00
andres.delikat 89eb17a468 Ram Poke - input validation on Address & Value boxes 2011-02-21 14:45:18 +00:00
andres.delikat f15d16c513 Add PeekAddress() to the watch object. Ram Search & Ram Watch refactored to use the object method instead. DWord view implemented as a result. A display bug in Ram Watch 2 byte fixed. 2011-02-21 14:23:57 +00:00
andres.delikat 18d39a5082 Add prev and changecount members to the Watch object so that Ram Search can use them. They can have interesting applications in Ram Watch as well 2011-02-19 21:03:31 +00:00
andres.delikat 5f6a74822f Moving code to check menu items on the new SMS stuff & view sizes into the DropDownOpened event instead of at the beginning of the form. Also added some comments 2011-02-15 02:30:12 +00:00
andres.delikat 16b538d945 Move RAM Watch & related files to a tools folder 2011-01-23 18:27:26 +00:00