Running a Program with the Simulator

 

1)  Make sure that you have already assembled your program, that 0 errors were reported, and that "filename.s19" was created.

2)  Make sure that your assembled S19 file is located in the same folder as the HC11 simulator ("simhc11.exe", "buf.s19").

3)  Run the simulator by double-clicking the file called "simhc11.exe", or by typing "simhc11" in a DOS prompt whose path is set to the folder containing your assembled program.

4)  Press the 'C' and <ENTER> keys when prompted.

5)  At the Buffalo prompt, type "load t" and press <ENTER>.

6)  Press both <SHIFT> keys on your keyboard at the same time.  A menu should appear.

7)  Press '2' to select "ASCII Upload".  You should then be prompted to enter a filename.

8)  Type the name of your assembled S19 file (e.g. "filename.s19") and press <ENTER>.  Be sure to include the ".s19" extension.  The word "done" should appear.

9)  You can now run your program by typing "call XXXX" and pressing <ENTER>, where "XXXX" is the starting address of the instructions in your program.  (The address is determined by the parameter of the "ORG" command that precedes the instructions in your ASM file.)

10)  Your program should now be running.

11)  If you ended your program with a "SWI" command, you should see a line similar to the following if everything ran correctly:
"P-250C Y-AAAA X-AAAA A-FD B-AA C-F9 S-004A".

12)  You can reset or exit the simulator by pressing both <SHIFT> keys on your keyboard at the same time and entering "1" or "4".