Microprocessor Simulation Wookie is a software that simulates

  • Slides: 22
Download presentation
Microprocessor Simulation • Wookie is a software that simulates the function of a real

Microprocessor Simulation • Wookie is a software that simulates the function of a real 68 HC 11. • It runs the machine code created by, for example, the AS 11 M Assembler. • Steps to download Wookie and AS 11 M Assembler: • Create a folder called wookie anywhere in your hard disk • Download the Wookie Simulator Software. • Go to the ECE 2210 course website at http: //web. missouri. edu/~desouzag/ece 2210 • On the main frame, click on “Software and Manuals Download” • Then, click on the link called M 68 HC 11 Simulator • When prompted, save the file in the wookie directory created above • Download the AS 11 M Assembler • From the same page above, but now, click on the link called Assembler (as 11 m) • Save in the same wookie directory. • That’s it! No installation is required.

Use Notepad to create an Assembly Program. Go to Start programs Accessories Note Pad

Use Notepad to create an Assembly Program. Go to Start programs Accessories Note Pad

To create Assembly program Go to notepad File 1) After you have typed in

To create Assembly program Go to notepad File 1) After you have typed in your program, select “Save as” 2) Under save, select the wookie folder created above 3) In “File Type” choose “All files” 4) Under File name type xxxxx. asm (e. g. lab 1 exampleprog. asm) 5) Then click Save.

After saving the program, you have to run the assembler. To run the assembler

After saving the program, you have to run the assembler. To run the assembler go to the DOS Command Prompt (cmd) How to open CMD? Click on the START button and click on “RUN”.

Then type “cmd” to open the DOS Command Prompt.

Then type “cmd” to open the DOS Command Prompt.

After opening the DOS shell, type “cd” (Change Directory) to change to the directory

After opening the DOS shell, type “cd” (Change Directory) to change to the directory where you earlier created the directory wookie. In this example: desktop

Again, in this example, wookie is in the desktop.

Again, in this example, wookie is in the desktop.

Then type cd wookie. That’s the folder in which we have saved all files:

Then type cd wookie. That’s the folder in which we have saved all files: executables, text files, etc.

To assemble your program, type 'as 11 m lab 1 exampleprog. asm' in the

To assemble your program, type 'as 11 m lab 1 exampleprog. asm' in the DOS shell.

After you assemble the program, the assembler will tell you the number of errors

After you assemble the program, the assembler will tell you the number of errors and warnings in the program. If it returns error messages, then edit your program to fix the errors. Then, run as 11 m again until it compiles properly. If no errors are found, a. lst file and a. s 19 file should be generated by the assembler.

§ Now execute the 68 HC 11 simulator (wookie 167. exe). § You should

§ Now execute the 68 HC 11 simulator (wookie 167. exe). § You should see the Wookie window on your computer screen.

§ Click "File" on the menu and then click on "Load. s 19 file.

§ Click "File" on the menu and then click on "Load. s 19 file. . . ". § On the "Open" window, open the. s 19 file that you just created.

§ Then, the "Set HC 11 Mode" window will pop up, and the “Brief

§ Then, the "Set HC 11 Mode" window will pop up, and the “Brief Case" should be selected as Mode. Also, the start address should be set as the same as your program start address.

§ Next, we click on the "View Code" button and open the. lst file

§ Next, we click on the "View Code" button and open the. lst file that was just created by the assembler. We should select "Listing Files (*. lst)" on the bar “Files of type”. Click “Open”.

§ Choose "ASM 11" as file type and 0 as address offset in the

§ Choose "ASM 11" as file type and 0 as address offset in the window "Choose LST file format".

§ Now the. lst file can be seen in the "Code View" window.

§ Now the. lst file can be seen in the "Code View" window.

§ We can monitor the memory by clicking on the "Memory Watch" button.

§ We can monitor the memory by clicking on the "Memory Watch" button.

§ Input the name and the address you want to watch and then click

§ Input the name and the address you want to watch and then click "OK" button.

§ Now that the memory is in the Window “Memory Watch”…

§ Now that the memory is in the Window “Memory Watch”…

§ We can also click on the "Browse Mem. " button to watch a

§ We can also click on the "Browse Mem. " button to watch a block of memory.

§ Then we will monitor the CPU registers by clicking on the "M 68

§ Then we will monitor the CPU registers by clicking on the "M 68 HC 11 CPU" button. The register value will be displayed in the "MCU" window.

§ Finally, click on the green button to step through the program one line

§ Finally, click on the green button to step through the program one line at a time. This way, you may also check the program flow by watching what happens on every step. For example, you can keep an eye on the registers and memory to make sure everything is running as you hoped it would.