miSim DE Back Index Next

Chapter 3 - User Guide

The miSim DE Environment

The miSim DE window is divided into three areas. Along the top there are menu buttons and buttons which control simulation. In the middle there are a series of tabbed windows. Along the bottom of the window is the status bar which reports the current state of miSim DE.

Screen layout

Menu Buttons

The Menu buttons, 'File','Edit' and 'Debug' bring up menus that control the basic functions of miSim DE. The 'File' button menu allows source and binary files to be loaded, created and saved. The 'Edit' button menu allows the simulation preferences to be edited. The 'Debug' button menu provides items to control the program counter and set breakpoints used during simulation.

The File menu has the following options:

In addition, the file menu will display the most recently opened source files. These can be clicked on to open them quickly when starting miSim DE

The Edit menu has following options:

The Debug menu has these options:

Simulation Control Buttons

The Simulation control buttons allow assembled or loaded binary files to be executed by the simulator. As the simulator executes the instructions, any open Plugins will respond to the actions of the simulated processor. Whenever the simulator stops executing, the current instruction is highlighted in the Processor window (if visible) and the status bar reports on what happened during simulation.

The Simulation controls include the following buttons:

For both Step and Over, the number of machine cycles simulated are shown in the status bar at the bottom of the miSim DE window. Note that if the 'fast loop simulation' is selected (in the Preferences dialog), Step will execute any empty DECSNZ/GOTO delay loops as a single operation and report the number of machine cycles that the delay loop took.

Tab Buttons

miSim DE shows information on its activities in three main windows that are selected by 'tab' buttons. Opening source or text files will add new windows, each with their own 'tab' button. The three main windows are:

In addition, Edit Windows can be opened to edit or view text or source files.


The Log Window

The Log Window shows a scrollable list of actions that have been carried out by the simulator. This includes loading files, assembling and assembly errors and running the simulator itself. The log view cannot be edited or saved.


The Processor Window

The Processor window shows the contents of the processor memory and if the contents were loaded by assembling a file, relates them to the assembly listing that generated them. The tab for the processor window will show the name for the emulated processor. This will change either when a different processor is selected in the preferences dialog, or when an assembled file specifies a different processor (using the LIST or PROCESSOR commands).

The main part of the Processor window shows an assembly listing of the program loaded into the simulated processor. A typical assembly listing looks something like this:

Viewing a listing

The listing shows a number of columns, depending on whether it was generated by assembling a source code file, or disassembled from a binary (.hex) file. In both views, the leftmost column will contain green indicators for lines that are set as breakpoints. In this view and edit windows, orange indicators are used to show lines that contain one or more warnings, and red indicators show lines that contain one or more errors.

Each line will then start either with an address (a four digit hex number) followed by one or more data values (again, four digit hex values) or an eight digit hex number representing the result of an assignment operation (such as the EQU or SET commands). If the listing was generated by an assembled source file, the next column will be the decimal line number of the original source file.

After these columns, the window contains the assembly text that was used to generate the binary data. This text is colour highlighted as with the edit window.

Along the bottom of the Processor window is information about the processor's current state. The program counter (PC) is shown and the contents of the W and Status register. The values shown for PC and W are in hexadecimal. The status register is shown as a binary number, and additionally the three letters 'z', 'd' and 'c'. The letters correspond to the lowest three bits of the status register, which are used as the Zero, Decimal overflow and Carry flags. If the bit is '0', the letter is shown in lower case - the flag is not set. If the bit is '1', the flag is set, and the letter is shown in uppercase.

Individual registers can be examined by entering the register address in the Register box and pressing the '->' button or single stepping the simulator, at which point the content of that register is shown. A new value may be entered in the field and the register set to that value by clicking the 'Set' button. Both register number and contents are displayed in Hexadecimal.

Index Next