miSim DE Back Index Next

Chapter 2 - Quick Start

Installing miSim DE

At present, miSim DE is distributed as compressed archive of files. The archive comes in one of three formats:

FormatSuitable ForMeaning
Self ExtractingWindows O/SA self extracting (.exe) archive compatible with Windows
ZipfileAny (Windows)A Zip archive (.zip) that will require a decompressor, such as WinZip
GZipped TarfileAny (Unix)A GZipped Tar archive (.tgz) that can be expanded with the Unix tar command

Self Extracting Archive

The self-extracting archive is a Windows executable (.exe) file. Double clicking on the file will run the program which will prompt the user to select the destination directory for miSim DE to be extracted to. The default is 'C:\Program Files\miSimDE\'. The archive should be extracted to a new, empty directory. Clicking 'Unzip' will expand the contents of the archive to the specified directory.

Zipfile

The .zip archive format is a standard supported across a range of platforms, including Windows and Linux. If you have a suitable extractor program installed on your system, follow its instructions to extract the contents of the archive to a new, empty directory.

Tarfile

The .tgz archive format is a standard designed originally for Unix, and supported by the Unix tar command. There are now GUI applications that can deal with .tar files on a range of platforms. To use the tar command, copy the archive into a new, empty directory and type 'tar -zxvf misimde200.tgz' to extract the files into that directory.

Running

You will need to run miSim DE as an application the first time so that it can update the system with your registration details. Once it has been sucessfully run in this way, it can be used in a browser as an applet - the release files include a sample web page that contains the appropriate applet tags.

To run the program as an application, you will need at least Sun's Java Runtime Environment (JRE), version 1.1 or higher. JRE 1.3 is recommended - it makes a significant improvement in the simulation speed, and as the software is largely developed using Java 1.3 SDK, it is the most thoroughly tested environment. You can download the JRE from Sun's Site: Sun's JRE 1.3 For Windows, or Sun's Java Homepage for other platforms and versions.

Once Java is installed and miSim DE has been extracted to a new directory, running it is simple. Two batch files are provided to simplfy starting the application on Windows or Unix compatible machines. The Windows compatible batch file is called misim.bat, and the Unix script is called start_misim. Both of these are found in the main miSim directory.

Running Under Windows

If you are using a Windows operating system, the directory that contains the miSim DE release files also contains the 'misim.bat' batch file. You need only double click on this file in Explorer to invoke Java and start miSim DE.

Alternatively, you can start up a command prompt (Start -> Programs -> MS-DOS Prompt) and change to the directory that contains the release files. You can run the simulator under Windows 9x or NT simply by typing:

Remember that java is case sensitive - StartMiSim has two capital 'S's and one capital 'M'. Note also that miSim does not need a classpath to be specified (infact, the miSim .jar file must not be on the classpath for Web Update to work). The StartMiSim class file handles these issues, including setting the classpath.

Running under Linux

In a console window, change to the directory that contains the release files. There is a bash script called 'start_misim' which will start Java (assuming it is on your path) and run miSim DE. To execute this script, you can type either:
. start_misim That is '<dot><space>start_misim', if you have a bash shell or
source start_misim If you have a tcsh shell
Alternatively, you can execute java directly by typing:

Remember that java is case sensitive - StartMiSim has two capital 'S's and one capital 'M'. Note also that miSim does not need a classpath to be specified (infact, the miSim .jar file must not be on the classpath for Web Update to work). The StartMiSim class file handles these issues, including setting the classpath.

Registering

When miSim DE is run for the first time, it will display the following dialog:

When miSim DE was purchased, the serial number and associated user name will have been sent seperately to the user. They must be entered here. The serial number in particular must be entered exactly as supplied. The simplest way to achieve this is to copy and paste the relevant information into the dialog. If typing in the serial number, note that the serial number is case sensitive. To avoid commonly confused characters, the serial number contains no upper case 'o' characters, only the number '0'. It also contains no lower case 'L', only the number '1'.

The serial number is only valid to register miSim DE for thirty days after it is assigned. After that period, a new serial number can be assigned from the old one - the miSim website will have details of how to renew an expired serial number if necessary.

Protecting Your Registration Details

If you wish to protect your registration details, you can choose not to enter the last four characters of the serial number (ie. type in everything up to and including the final dash '-'). You will then be prompted to enter these last four characters (your 'PIN') each time you start miSim DE. This will prevent other people who have access to your computer from being able to steal your registration details. If Feersum Technology believes your registration has been stolen, it reserves the right to suspend access to Web Update and other services.

The serial number uniquely identifies the installation and the user - and should be carefully guarded. It is used for the Web Update facility and to control access to miSim DE and related services. If the serial number appears to have been copied by other users or fraudulently obtained, Feersum Technology reserves the right to suspend access to Web Update and other services for that serial number. This means that if you allow other people to use your registration details (even unintentionally), you may no longer be able to update miSim DE or download new components. You should treat your registration details as you would any other password.

Running a Program

Once miSim DE has loaded, click on 'File' then select 'Open' to open an existing source file. The file dialog will open, showing the directory where miSim DE was installed. Click on the 'source' subdirectory, where you will find the source code for various test programs. Select 'pong.asm' (not pong.hex, which is a binary file) and click 'Open' to open it in the editor.

The File Dialog

miSim DE will report:

Loaded 'pong.asm' OK. Click on File -> Assemble to assemble source

As the mesage says, you can now click on 'File' then 'Assemble' to assemble the source code.

Click Assemble

The file should assemble correctly, reporting no errors (but one warning, which you can ignore). miSim DE automatically switches to the processor tab, and highlights the current instruction (in this case, the GOTO command at the start of the program). The simulation controls along the top of the screen also turn from grey to coloured, to show that you can now run the program. Before running it though, you should connect the television Plugin to the simulated chip - the pong program produces a video output signal, and expects joystick inputs which this plugin supplies.

To connect the television plugin, select the plugins tab. The currently selected circuit should be 'All Plugins', which shows all of the Plugins installed in miSim DE. Select the 'Television' plugin, which will show the relevant details on the right of the window. Click on the 'Show' button on the right hand frame (not 'Show All' on the left, which will open all of the plugins). The television Plugin should appear.

Clicking the green arrow at the top of the screen should now run the program. The round button (which turns red whilst the program is running) will stop it. To play Pong, click on the television screen, then use the keys 'Q', 'A', 'E', 'R' and 'X' for up, down, left, right and fire.

Click Assemble

You should now have run your first program. To find out more about the assembler, editor, simulator and plugins like the Television Plugin, please read the rest of the manual, or check out the miSim website

Index Next