<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii"><meta name=Generator content="Microsoft Word 15 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;
        mso-fareast-language:EN-US;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:#0563C1;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:#954F72;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        mso-fareast-language:EN-US;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=EN-GB link="#0563C1" vlink="#954F72"><div class=WordSection1><p class=MsoNormal>I am trying to understand how the front panel code works so I can write a front panel for an emulator that I am writing. There are a couple of things I am not sure about.<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>One is why the SET REMOTE MASTER command resets everything by calling reset_all? This causes me a problem because I have commands to load the initial boot code into memory, set the program counter etc as commands that I setup in the config file before calling the sim_panel_start_simulator_debug function, which then appends the aforementioned SET REMOTE MASTER command, which blows away all my setup.<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>This also begs the question of how it is intended to work with ini files when using the front panel. I am not sure that I should have to bake the ini file commands into the console code. I know I could just copy the ini file to the temporary config file before calling sim_panel_start_simulator_debug but it seems a little inelegant and I am not sure what the intention is here. Can anyone explain to me how this is intended to work?<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>The other thing that I am confused about is when the displayed registers are supposed to be updated. I had assumed that when the simulator is running you would want to update the displayed registers on a regular basis. But the update_display variable is only updated when the simulator is sent REGISTERS_REPEAT_ECHO, and that only ever happens if a new register has been added to the panel. The rest of the time update_display is not changed and so the display of the register values does not change as the simulator executes. How is the panel intended to give a "real time" display of the register values?<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Thanks<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Rob<o:p></o:p></p></div></body></html>