Beispiel #1
0
        private void FormAbortHandler_Load(object sender, System.EventArgs e)
        {
            if (m_mh == null)
            {
                m_settings.ShowDialog();

                m_mh = new MemoryHandler(m_settings.m_ah);
            }

            memoryControl.Link(m_mh, m_symbols_AddressToString, m_symbols_StringToAddress);


            MemorySnapshot mem = m_settings.m_snapshot;

            m_mh.PopulateFromSnapshot(mem);

            for (int i = 0; i <= 12; i++)
            {
                listBoxRegisters.Items.Add(String.Format("R{0,-2}  = 0x{1,8:X8}", i, mem.m_registers[i]));
            }

            listBoxRegisters.Items.Add(String.Format("SP   = 0x{0,8:X8}", mem.m_registers[13]));
            listBoxRegisters.Items.Add(String.Format("LR   = 0x{0,8:X8}", mem.m_registers[14]));
            listBoxRegisters.Items.Add(String.Format("PC   = 0x{0,8:X8}", mem.m_registers[15]));
            listBoxRegisters.Items.Add(String.Format("CPSR = 0x{0,8:X8}", mem.m_cpsr));
            listBoxRegisters.Items.Add(String.Format("BWA  = 0x{0,8:X8}", mem.m_BWA));
            listBoxRegisters.Items.Add(String.Format("BWC  = 0x{0,8:X8}", mem.m_BWC));

            memoryControl.ShowMemory(mem.m_registers[15]);
        }
Beispiel #2
0
 public void Link(MemoryHandler mh, Hashtable symbols_AddressToString, Hashtable symbols_StringToAddress)
 {
     m_mh = mh;
     m_symbols_AddressToString = symbols_AddressToString;
     m_symbols_StringToAddress = symbols_StringToAddress;
 }
        private void FormAbortHandler_Load(object sender, System.EventArgs e)
        {
            if(m_mh == null)
            {
                m_settings.ShowDialog();

                m_mh = new MemoryHandler( m_settings.m_ah );
            }

            memoryControl.Link( m_mh, m_symbols_AddressToString, m_symbols_StringToAddress );


            MemorySnapshot mem = m_settings.m_snapshot;

            m_mh.PopulateFromSnapshot( mem );

            for(int i=0; i<=12; i++)
            {
                listBoxRegisters.Items.Add( String.Format( "R{0,-2}  = 0x{1,8:X8}", i, mem.m_registers[i] ) );
            }

            listBoxRegisters.Items.Add( String.Format( "SP   = 0x{0,8:X8}", mem.m_registers[13] ) );
            listBoxRegisters.Items.Add( String.Format( "LR   = 0x{0,8:X8}", mem.m_registers[14] ) );
            listBoxRegisters.Items.Add( String.Format( "PC   = 0x{0,8:X8}", mem.m_registers[15] ) );
            listBoxRegisters.Items.Add( String.Format( "CPSR = 0x{0,8:X8}", mem.m_cpsr          ) );
            listBoxRegisters.Items.Add( String.Format( "BWA  = 0x{0,8:X8}", mem.m_BWA           ) );
            listBoxRegisters.Items.Add( String.Format( "BWC  = 0x{0,8:X8}", mem.m_BWC           ) );

            memoryControl.ShowMemory( mem.m_registers[15] );
        }
Beispiel #4
0
        internal CharsElement( Font font, Brush brush, MemoryHandler.Region val, uint address, int size ) : base( font, brush )
        {
            m_val = new char[size];

            for(int i=0; i<size; i++)
            {
                byte c;

                if(val.GetByte( address++, out c ) == false)
                {
                    m_val[i] = '?';
                }
                else if(c >= 20 && c < 128)
                {
                    m_val[i] = (char)c;
                }
                else
                {
                    m_val[i] = '.';
                }
            }
        }
 public void Link( MemoryHandler mh, Hashtable symbols_AddressToString, Hashtable symbols_StringToAddress )
 {
     m_mh                      = mh;
     m_symbols_AddressToString = symbols_AddressToString;
     m_symbols_StringToAddress = symbols_StringToAddress;
 }