Proview Tutorial
Proview Tutorial
Introduction
This tutorial will teach you how to write, compile, and trace a simple program in ProView. For more information, you can see ProViews help.
Opening ProView
1. Open the ProView from the start menu.
3. If you want to write your code in Assembly you should select Assembler files, and if you want to write you code in C, you should choose C Files. As we want to write the first program in assembly, choose Assembler files.
Saving
5. Press Ctrl + S or choose Save from the File menu.
Compiling
7. Press F9 or select Make from the Project menu.
9. As it is the first time you debug the file, the following dialog appears. Press Ok.
Main Registers: This window shows the contents of all of the registers, at the current time.
Code: This window shows the contents of the flash memory. In the window: 1) The blue line shows the instruction which will be executed in the next cycle. 2) The violet texts represent your source code. 3) The Mnemonic column represents the assembly equivalent instruction of your code. When your code is in assembly the mnemonic is the same as your code. But, when your code is in C language, it is not. 4) The code column shows the machine equivalent of the instruction. 5) The address column shows where the instruction is located.
11. Press F7 or select step into from Debug menu. It executes the blue instruction and updates the values of registers in Main Registers window. Press F7 a few times and see the changes of registers.
12. Press Ctrl + D or select Terminate from the Debug menu to terminate debugging.
14. If you want to change the name of the project, type another name in front of Name. If you want to change the path, where the project file will be stored, press the Browse button.
17. Select the ASM file which you have created in the previous steps. Then press Open.
18. The file has been added to the project. Now open your source file by double clicking on the name of it.
19. Debug and trace the project by pressing Ctrl + D and F7 if you like to.