diff src/win32/ram_search.h @ 1:f9f4f1b99eed

importing src directory
author Robert McIntyre <rlm@mit.edu>
date Sat, 03 Mar 2012 10:31:27 -0600
parents
children
line wrap: on
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/src/win32/ram_search.h	Sat Mar 03 10:31:27 2012 -0600
     1.3 @@ -0,0 +1,34 @@
     1.4 +#ifndef RAM_SEARCH_H
     1.5 +#define RAM_SEARCH_H
     1.6 +
     1.7 +
     1.8 +extern char rs_type_size;
     1.9 +extern int ResultCount;
    1.10 +typedef unsigned int HWAddressType;
    1.11 +
    1.12 +unsigned int sizeConv(unsigned int index,char size, char *prevSize = &rs_type_size, bool usePrev = false);
    1.13 +unsigned int GetRamValue(unsigned int Addr,char Size);
    1.14 +void prune(char Search, char Operater, char Type, int Value, int OperatorParameter);
    1.15 +void CompactAddrs();
    1.16 +void reset_address_info();
    1.17 +void signal_new_frame();
    1.18 +void signal_new_size();
    1.19 +void UpdateRamSearchTitleBar(int percent = 0);
    1.20 +void SetRamSearchUndoType(HWND hDlg, int type);
    1.21 +unsigned int ReadValueAtHardwareAddress(HWAddressType address, unsigned int size);
    1.22 +bool WriteValueAtHardwareAddress(HWAddressType address, unsigned int value, unsigned int size);
    1.23 +bool IsHardwareAddressValid(HWAddressType address);
    1.24 +extern int curr_ram_size;
    1.25 +extern bool noMisalign;
    1.26 +extern HWND RamSearchHWnd;
    1.27 +
    1.28 +
    1.29 +void ResetResults();
    1.30 +void CloseRamWindows(); //Close the Ram Search & Watch windows when rom closes
    1.31 +void ReopenRamWindows(); //Reopen them when a new Rom is loaded
    1.32 +void Update_RAM_Search(); //keeps RAM values up to date in the search and watch windows
    1.33 +
    1.34 +
    1.35 +
    1.36 +#endif
    1.37 +