FAQ about the THRSim11 68HC11 Simulator for Windows.

Back to the THRSim11 home page ...
Go to the Component Developers Kit FAQ...

Copyright © Harry Broeders.

Frequently asked questions about THRSim11.

Can I program the 68HC11 using C and use THRSim11 to debug my programs?

Yes. See here.

Can I use THRSim11 on 32 and 64 bits Windows7?


I send you a question by e-mail but you did not respond. Why?

I always respond to questions or remarks send by email. But I have to use a spam filter so it is possible that I didn't reveive your message. If you don't receive a reply within a few days please send a copy of your message to: J dot Broeders23 at upcmail dot nl

I have a program that works properly on an actual 68HC11, but runs way to slow on the simulator. What are the E clock and crystal frequency of the simulator and how can I get THRSim11 to work in 'real time'?

The simulator uses a crystal frequency of 8 MHz so the E clock runs at 2 MHz. The simulator does not run in real time. But there are some things which may help.

I made some changes to the settings of THRSim11 but I want to revert to he factory settings. Do I have to re-install?

No. Just delete the file thrsim11_options.txt and start the program again. When you close the program it will store the factory settings in a new thrsim11_options.txt file.

How can I uninstall THRSim11.

Use the standard Windows uninstall procedure. Start, Settings, Control Panel, Add/Remove Programs, Select THRSim11, Add/Remove. You can also use the unins000.exe program which can be found in the ../THRSim11 directory (version 5.01 and higher).

I have a S19 file (without the source file!) which I load into THRSim11. I figured out a lot of the labels which I can assign by using the Label, Set menu options. Is there any way to save these labels and load them the next time I start THRSim11.

No. But there is a better way. If you make a <name>.map file starting with:
and on every next line a label followed by an expression. All labels are loaded automatically when you open the file <name>.s19 An example map file can be found here.

Can THRSim11 be used as a disassembler?

Yes. See "disassembler command" in the Help file. I have a command line tool which can be used to transform the disassembler output to code you can assemble again. (see findlabels.zip).
For example (you can try this using the demo):

  1. Load a s19 file into THRSim11. For example resistance.s19 (delivered with the demo). You can do this in several ways e.g. Type: ls19 into the command window and choose a s19 file.
  2. Type into the command window: dis e000 e345 test.dis
  3. Unzip the findlabels.zip into the directory where test.dis is located. Open a DOS Window, go to the directory which contains test.dis and type: findlabels test.dis test.asm
  4. You can now load test.asm into your favorite assembler. You probably have to add some directives (ORG) but this should not cause any problems. Just to test you can load test.asm into THRSim11 and assemble (and run) it again.

Is there any way I can print an assembled program? The assembled program is much more descriptive of what the programs does, and at what addresses the codes are located.

The program generates a LST file (see menu option File Options Assembler to enable this if necessary). You can print this file using your favorite word processor. (I use MS Word 2000 with A4 paper and 2 cm margins.)

When I use the logger and the inserter components together on the same signal the logger seems to log the previous clock value.

That's a synchronisation failure inherent to the observer pattern we used to implement these components. If you first create the logger and second create the inserter this synchronisation failure will not appear.

I want to install THRSim11 on a server but the program writes to the install directory. How can I prevent this?

THRSim11 reads some settings on program startup from <install_dir>\thrsim11_options.txt. These settings are saved when the program is closed. If the user of THRSim11 has read-only access privilege in the directory in which THRSim11 is installed this will cause errors. The system administer can change the directory from which these settings are read and where these settings are stored by adding the following line to the thrsim11_options.txt file:
UserDirectory H:\thrsim11
This line should be added before the last line (which should contain only a #). THRSim11 will now read the settings from <install_dir>\thrsim11_options.txt the first time it is started. (The system administer can change thrsim11_options.txt to alter the initial settings e.g. the memory-map.) The thrsim11_options.txt file will be stored in the defined directory (H:\thrsim11 in this case). Note: This directory should exist! The user needs write privileges in this directory. The next time the user starts THRSim11 will read the settings from H:\thrsim11\thrsim11_options.txt. If H: is mapped to a user specific part of the server every user can have his/hers own settings preserved. The file thrmru.ini which holds the names of the 10 last opened files (which show up in the file menu) is saved in the same directory as thrsim11_options.txt.

Is this page under construction.

Yes :-)