22
Microprocessor Simulation Microprocessor Simulation Wookie is a Wookie is a software that simulates the function software that simulates the function of a real 68HC11. of a real 68HC11. It runs the machine code created by, for example, It runs the machine code created by, for example, the AS11M Assembler. the AS11M Assembler. Steps to download Wookie and AS11M Assembler: Steps to download Wookie and AS11M Assembler: Create a folder called Create a folder called wookie wookie anywhere in your anywhere in your hard disk hard disk Download the Wookie Simulator Software. Download the Wookie Simulator Software. Go to the ECE2210 course website at Go to the ECE2210 course website at http://web.missouri.edu/~desouzag/ece2210 On the main frame, click on “Software and Manuals On the main frame, click on “Software and Manuals Download” Download” Then, click on the link called Then, click on the link called M68HC11 Simulator When prompted, save the file in the When prompted, save the file in the wookie wookie

Microprocessor Simulation Wookie is a software that simulates the function of a real 68HC11

  • Upload
    natan

  • View
    41

  • Download
    0

Embed Size (px)

DESCRIPTION

Microprocessor Simulation Wookie is a software that simulates the function of a real 68HC11. It runs the machine code created by, for example, the AS11M Assembler. Steps to download Wookie and AS11M Assembler: Create a folder called wookie anywhere in your hard disk - PowerPoint PPT Presentation

Citation preview

Page 1: Microprocessor Simulation  Wookie is a  software that simulates the function of a real 68HC11

Microprocessor SimulationMicroprocessor Simulation

• Wookie is aWookie is a software that simulates the function of a real 68HC11. software that simulates the function of a real 68HC11.

• It runs the machine code created by, for example, the AS11M Assembler.It runs the machine code created by, for example, the AS11M Assembler.

•Steps to download Wookie and AS11M Assembler:Steps to download Wookie and AS11M Assembler:•Create a folder called Create a folder called wookiewookie anywhere in your hard disk anywhere in your hard disk•Download the Wookie Simulator Software.Download the Wookie Simulator Software.

•Go to the ECE2210 course website at Go to the ECE2210 course website at http://web.missouri.edu/~desouzag/ece2210 •On the main frame, click on “Software and Manuals Download”On the main frame, click on “Software and Manuals Download”•Then, click on the link called Then, click on the link called M68HC11 Simulator•When prompted, save the file in the When prompted, save the file in the wookiewookie directory created above directory created above

•Download the AS11M AssemblerDownload the AS11M Assembler•From the same page above, but now, click on the link called From the same page above, but now, click on the link called Assembler (as11m) •Save in the same wookie directory.

•That’s it! No installation is required.That’s it! No installation is required.

Page 2: Microprocessor Simulation  Wookie is a  software that simulates the function of a real 68HC11

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

Page 3: Microprocessor Simulation  Wookie is a  software that simulates the function of a real 68HC11

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. lab1exampleprog.asm)

5) Then click Save.

Page 4: Microprocessor Simulation  Wookie is a  software that simulates the function of a real 68HC11

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”.

Page 5: Microprocessor Simulation  Wookie is a  software that simulates the function of a real 68HC11

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

Page 6: Microprocessor Simulation  Wookie is a  software that simulates the function of a real 68HC11

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

Page 7: Microprocessor Simulation  Wookie is a  software that simulates the function of a real 68HC11

Again, in this example, Again, in this example, wookiewookie is in the is in the desktopdesktop..

Page 8: Microprocessor Simulation  Wookie is a  software that simulates the function of a real 68HC11

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

Page 9: Microprocessor Simulation  Wookie is a  software that simulates the function of a real 68HC11

To assemble your program, type To assemble your program, type 'as11m lab1exampleprog.asm''as11m lab1exampleprog.asm' in the DOS shell.in the DOS shell.

Page 10: Microprocessor Simulation  Wookie is a  software that simulates the function of a real 68HC11

After you assemble the program, the assembler will tell you the After you assemble the program, the assembler will tell you the number of errors and warnings in the program. If it returns error number of errors and warnings in the program. If it returns error messages, then edit your program to fix the errors. Then, run messages, then edit your program to fix the errors. Then, run as11mas11m again until it compiles properly. If no errors are found, again until it compiles properly. If no errors are found,

a a .lst.lst file and a file and a .s19.s19 file should be generated by the assembler. file should be generated by the assembler.

Page 11: Microprocessor Simulation  Wookie is a  software that simulates the function of a real 68HC11

Now execute the 68HC11 simulator (wookie167.exe).Now execute the 68HC11 simulator (wookie167.exe). You should see the Wookie window on your computer screen. You should see the Wookie window on your computer screen.

Page 12: Microprocessor Simulation  Wookie is a  software that simulates the function of a real 68HC11

Click "Click "FileFile" on the menu and then click on "" on the menu and then click on "Load .s19 file...Load .s19 file...".". On the "On the "OpenOpen" window, open the .s19 file that you just created. " window, open the .s19 file that you just created.

Page 13: Microprocessor Simulation  Wookie is a  software that simulates the function of a real 68HC11

Then, the "Then, the "Set HC11 ModeSet HC11 Mode" window will pop up, and the “" window will pop up, and the “Brief Brief CaseCase" should be selected as " should be selected as ModeMode. Also, the start address . Also, the start address should be set as the same as your program start address. should be set as the same as your program start address.

Page 14: Microprocessor Simulation  Wookie is a  software that simulates the function of a real 68HC11

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

Page 15: Microprocessor Simulation  Wookie is a  software that simulates the function of a real 68HC11

Choose "Choose "ASM11ASM11" as file type and 0 as address offset in the " as file type and 0 as address offset in the window "window "Choose LST file formatChoose LST file format". ".

Page 16: Microprocessor Simulation  Wookie is a  software that simulates the function of a real 68HC11

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

Page 17: Microprocessor Simulation  Wookie is a  software that simulates the function of a real 68HC11

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

Page 18: Microprocessor Simulation  Wookie is a  software that simulates the function of a real 68HC11

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

Page 19: Microprocessor Simulation  Wookie is a  software that simulates the function of a real 68HC11

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

Page 20: Microprocessor Simulation  Wookie is a  software that simulates the function of a real 68HC11

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. block of memory.

Page 21: Microprocessor Simulation  Wookie is a  software that simulates the function of a real 68HC11

Then we will monitor the CPU registers by clicking on the Then we will monitor the CPU registers by clicking on the ""M68HC11 CPUM68HC11 CPU" button. The register value will be displayed in " button. The register value will be displayed in

the "the "MCUMCU" window. " window.

Page 22: Microprocessor Simulation  Wookie is a  software that simulates the function of a real 68HC11

Finally, click on the green button to step through the program Finally, click on the green button to step through the program one line at a time. This way, you may also check 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, flow by watching what happens on every step . For example, you can keep an eye on the registers and memory to make you can keep an eye on the registers and memory to make

sure everything is running as you hoped it would. sure everything is running as you hoped it would.