Programmer's Workbench Information
Using the Programmer's Workbench (PWB)
At the school, be sure to run PWB under WINDOWS
Under Options, select Build options, then select Debug Options
Be sure that your file has a .ASM extension when you save it, otherwise
PWB will not recognize it.
- To start a new program, select File New from the menu
- To open an existing program, select File Open from the menu
- To save a file, select File Save from the menu
- To exit PWB, select File Exit from the menu
- To create an executable file, select Project Build from the menu
- If it was successful, then you will be able to run or debug it from
an option list
- If it was unsuccessful, you will be allowed to view the results: this
will show you your errors
- To run an executable that has already been created, select Run Execute
- To debug an executable that has already been created, select Run Debug
Using the CodeView debugger (CV)
Before calling up CV, you must select from PWB: Options, select Build options, then select Debug Options - then rebuild your source, then debug
- To start CV, select Run Debug after you have successfully created an
executable
- Some windows that are useful
- Source Windows - these show you the source file
- Memory Windows - you can look at your data segment in such a window
- Register/Flag Window - this shows you the contents of the registers
and flags, you can also see them change
- Watch Window - shows you the contants of all the variables you are
watching
- Some useful commands
- Data Watch - you specify the name of a variable to examine, you will
see its contents
- Data Breakpoint - you can specify that you want the program to stop
executing when you reach a particular line
- F10 - step to next instruction, do not step into subroutines, just
execute them as one instruction
- F8 - trace to next instruction, if it is a call to a subroutine, go
to first instruction in subroutine
- F5 - go to next breakpoint, or to the end of the program if there are
no more breakpoints
- F4 - look at program output
- Exiting CV : File Exit - this will return you to PWB