Q Solutions

Avr Asm Source Simulator

Introduction

This application was developed to test how suitable TCL was for doing micro-controller assembly language programming.

As well as providing source code editing facilities, it is often desired to be able to test subroutines and algorithms as they are created.
The cycle of asembling, linking and loading into the target hardware is time consuming.

These simple testing tasks can be performed from within the editing environment.

Documentation

TCL is required to run the application. From within Windows just double click on the file SimRun.tcl from within explorer.
Unix users, you know what to do.

Simulating a source file

Load an assembly file by clicking on the Load button.

Next position the cursor at the line to start simulating at, then click the SetPC button.

Now you can single step with the Step button, or run with the Go button. If you are at a subroutine call you can use the Step Into button which will run until the subroutine returns.

Watch

Watch files can be created, see the file watch.set for an example of syntax.
The symbols defined are displayed in the pabel on the left of the screen.

Downloads

The complete source is sim-1.zip. Download the file and extract the contents to a folder.

Back


Copyright © Q Solutions 2003Info