OpenCores
URL https://opencores.org/ocsvn/thor/thor/trunk

Subversion Repositories thor

[/] [thor/] [trunk/] [software/] [emuThor/] [source/] [frmMemory.h] - Diff between revs 30 and 32

Go to most recent revision | Show entire file | Details | Blame | View Log

Rev 30 Rev 32
Line 14... Line 14...
        using namespace System::Collections;
        using namespace System::Collections;
        using namespace System::Windows::Forms;
        using namespace System::Windows::Forms;
        using namespace System::Data;
        using namespace System::Data;
        using namespace System::Drawing;
        using namespace System::Drawing;
        using namespace System::Runtime::InteropServices;
        using namespace System::Runtime::InteropServices;
 
        using namespace System::Threading;
 
 
        /// <summary>
        /// <summary>
        /// Summary for frmMemory
        /// Summary for frmMemory
        /// </summary>
        /// </summary>
        public ref class frmMemory : public System::Windows::Forms::Form
        public ref class frmMemory : public System::Windows::Forms::Form
        {
        {
        public:
        public:
                frmMemory(void)
                Mutex^ mut;
 
                frmMemory(Mutex^ m)
                {
                {
 
                        mut = m;
                        InitializeComponent();
                        InitializeComponent();
                        //
                        //
                        //TODO: Add the constructor code here
                        //TODO: Add the constructor code here
                        //
                        //
                }
                }
Line 121... Line 124...
                                 for (nn = strtoul(str,NULL,16); nn < strtoul(str,NULL,16) + 512; nn++) {
                                 for (nn = strtoul(str,NULL,16); nn < strtoul(str,NULL,16) + 512; nn++) {
                                         if ((nn % 16)==0) {
                                         if ((nn % 16)==0) {
                                                 sprintf(buf, "\r\n%06X ", nn);
                                                 sprintf(buf, "\r\n%06X ", nn);
                                                 str2 += buf;
                                                 str2 += buf;
                                         }
                                         }
 
                                         mut->WaitOne();
                                         sprintf(buf, "%02X ", (system1.Read(nn,0) >> ((nn & 7)<<3)) & 0xFF);
                                         sprintf(buf, "%02X ", (system1.Read(nn,0) >> ((nn & 7)<<3)) & 0xFF);
 
                                         mut->ReleaseMutex();
                                         str2 += buf;
                                         str2 += buf;
                                 }
                                 }
                                 this->textBoxMem->Text = gcnew String(str2.c_str());
                                 this->textBoxMem->Text = gcnew String(str2.c_str());
                         }
                         }
        };
        };

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.