Dec 102017
Demo of Microsoft's CodeView - The .EXE file file is restricted.
File CODEVIEW.ZIP from The Programmer’s Corner in
Category Miscellaneous Language Source Code
Demo of Microsoft’s CodeView – The .EXE file file is restricted.
File Name File Size Zip Size Zip Type
ADAPT.BAT 133 79 deflated
CIRCLE.C 5260 1860 deflated
CIRCLE.EXE 29697 17858 deflated
CIRCLE.R 4835 1186 deflated
CIRCLEB.BAT 698 336 deflated
CODEVIEW.DOC 18293 4809 deflated
COUNT.C 3705 1165 deflated
COUNT.EXE 28482 17281 deflated
COUNT.R 26660 7585 deflated
COUNT.TXT 796 439 deflated
COUNTB.BAT 825 342 deflated
CV.HLP 46043 7335 deflated
CVR.EXE 141859 78842 deflated
DEMO.BAT 8 8 stored
MATH.C 1540 566 deflated
MENU.BAT 489 204 deflated
PI.C 632 342 deflated
PI.EXE 17353 9594 deflated
PIB.BAT 413 137 deflated
RESPOND.COM 124 124 stored
[email protected]@@ 227 152 deflated
[email protected]@@ 822 396 deflated
[email protected]@@ 419 252 deflated
[email protected]@@ 950 472 deflated
[email protected]@@ 660 392 deflated
[email protected]@@ 517 309 deflated
[email protected]@@ 744 389 deflated
[email protected]@@ 276 159 deflated
[email protected]@@ 845 463 deflated
[email protected]@@ 646 330 deflated
[email protected]@@ 347 232 deflated
[email protected]@@ 347 221 deflated
[email protected]@@ 479 288 deflated
[email protected]@@ 820 447 deflated
SAMPLE.BAT 1059 508 deflated

Download File CODEVIEW.ZIP Here

Contents of the CODEVIEW.DOC file

=== The Sample Disk ===

The CodeView (TM) sample disk is freely copyable as long as the
programs and files on the disk are not modified. You may give
the disk to friends, upload it to electronic bulletin boards, or
distribute it through computer clubs. However, you may not sell
the sample disk for profit. User groups may charge a fee to
cover the actual cost of the disk and of administration.

The version of the CodeView debugger on this disk has been
disabled so that it works only with the three sample programs
provided on the disk. To distinguish it from the commercial
version, the restricted debugger file is called CVR.EXE rather
than CV.EXE.

Do not alter the sample programs on the disk, since this will
make the sample session nonoperational. However, the sample
programs are in the public domain. You may modify and
recompile the source code after copying the files to another
disk. Do not distribute modified programs with the sample

Copyright (C) Microsoft Corporation 1986
All Rights Reserved

=== Starting the CodeView Debugger ==

The syntax for starting the restricted version of the debugger
is shown below:

CVR [] []

The CodeView start-up options are shown in the table below:

Option Effect
------ ------
/B Starts in black-and-white mode
with color graphics adapter (CGA).

/C Executes commands on start-up.

/F Starts with screen flipping (exchanges
screens by flipping video pages).

/M Disables the mouse.

/T Starts in sequential mode.

/S Starts with screen swapping (exchanges
screens by swapping buffers).

/W Starts in window mode.

/43 Starts in 43-row mode with an
enhanced graphics adapter (EGA).

/2 Allows two video adapters. You must have
two video adapters and two monitors. The
program display appears on the current default
adapter and monitor, while the debugging
display appears on the other adapter and
monitor. For example, if you have both a color
graphics adapter and a monochrome adapter, you
might want to set the CGA up as the default
adapter. You could then debug a graphics
program with the graphics display appearing on
the graphics monitor and the debugging display
appearing on the monochrome adapter. Microsoft
Mouse support will be disabled on the
debugging display if you use this option.

/D Turns off certain IBM-specific functions,
including NMI trapping and 8259 masking. This
option is required for IBM-compatible machines
that do not support these functions, such as
the IBM PC Convertible, the Tandy 1000, and
the AT&T 6300 Plus. CONTROL-C and CONTROL-
BREAK do not work if this option is used.
Sequential mode is set automatically; use /W
with /D to enable window mode.

/I Forces the debugger to handle certain IBM-
specific functions, including NMI trapping and
8259 masking. This option can be used to
enable CONTROL-C and CONTROL-BREAK handling on
computers that the debugger does not recognize
as being IBM compatible, such as the Eagle PC.
Window mode is set automatically; you do not
have to specify /W.

If you have an IBM Personal Computer, the system always starts
in window mode. Screen flipping is used if you have a graphics
adapter and monitor. Screen swapping is used if you have a
monochrome adapter and monitor.

If you have an IBM-compatible computer, you will usually want to
specify the options that are used automatically with the IBM PC.

If your computer is not IBM compatible, you will not be able to
use the CodeView debugger in window mode. You must specify /T to start
in sequential mode. Sequential mode is not as convenient, but any
debugging operation that can be done in window mode can also be done
in sequential mode. You will not be able to use a mouse or menus in
sequential mode, but you can use most function keys.

=== CodeView Quick Start ===

If you are familiar with previous Microsoft (R) debuggers (SYMDEB
or DEBUG), you will have little trouble using the CodeView debugger.

Once the CodeView display appears, you can start debugging. The primary
CodeView debugging commands are the same or very similar to the ones
used in SYMDEB and DEBUG. The most important commands common to both
the CodeView debugger and SYMDEB are listed below (all but the last
two are also available in DEBUG):

If You Want to: Do This:
--------------- --------
Quit the debugger Enter Q.

Execute code a step Enter T (for Trace) or P (for
at a time Program Step).

Execute your program Enter G (for Go).

Set a breakpoint Enter BP (for Breakpoint Set)
followed by an address. An easy
way of specifying an address is
to type a dot followed by the
number of the source line where
the breakpoint will be. For
example, to set a breakpoint on
line 25, enter

BP .25

Dump a portion of memory Enter D (for Dump) followed by the
address where you want the dump to
start. For example, enter

D DS:100

Examine a variable or Enter ? followed by the variable or
expression expression. For example, to view
the sum of sym1 and sym2 divided by
the constant 3, enter

? (sym1+sym2)/3

View source code Enter V followed by a dot and the
number of the first source line to be
viewed. For example, to view source
code starting at line 36, enter

V .36

Two differences between the CodeView debugger and previous Microsoft
debuggers may be confusing at first. The command for getting a summary
help screen is H, not ? as in the earlier debuggers. Also, the
CodeView debugger expects initial input in decimal, not in
hexadecimal. You can enter hexadecimal numbers in the C format (for
example, 0x3CC2). You can also change the radix to hexadecimal or
octal using the Radix command (for example, N16 for hexadecimal).

If you do not have an IBM or IBM-compatible computer, this may be all
the information you need to start experimenting. If you have an IBM
Personal Computer or a compatible computer capable of using CodeView's
window mode, there are easier ways of doing many of the tasks shown

The table below concentrates on methods of executing commands from
the keyboard, but the mouse versions of some commands are also

If You Want to: Do This:
--------------- --------
View on-line help Press F1. The first menu screen
appears. Use the mouse, menu selection
letters, or the PGUP, PGDN, and HOME
keys to move through the system. The
END key gets you out of help.

Move through your First make sure the cursor is in the
source code window containing source code. If
it is not, press F6 to move the cursor
to the correct window. Then press
DOWN ARROW to move through the source

Execute code a step Press F8 (for Trace) or F10 (for
at a time Program Step). If you have a mouse,
you can click Trace! on the menu bar.
Use the right mouse button for the
Trace command or the left mouse button
for the Program Step command.

Execute your program Press F5 (for Go). Execution stops
only if a breakpoint is encountered.
If you have a mouse, you can click
Go! on the menu bar. Use either button.

Execute to a specified Move the cursor to the line to which
line of code you want to execute (you may need to
press F6 to switch the cursor to
the correct window), then press
F7. The reverse-video line marking
the current location will move to
that line. If you have a mouse,
you can do the same thing by
moving the mouse cursor to the
source line and clicking the right
mouse button.

Set a breakpoint Move the cursor to the line where
you want the breakpoint (you may
need to press F6 to switch the
cursor to the correct window),
then press F9. The source line
will be shown in high-intensity
text to indicate that a breakpoint
is set. You can repeat the same
command to remove the breakpoint.
If you have a mouse, you can do
the same thing by moving the mouse
cursor to the source line and
clicking the left mouse button.

You can also experiment with the menus listed on the top line of the
display. To select from a menu with the keyboard, press the ALT key
and the first letter of the menu title. A menu box listing the
selections pops up. To make a selection, use the cursor keys to move
the highlight to the selection you want, then press the ENTER key. You
can select from an open menu by pressing the ALT key and the first
letter of the selection.

To select from a menu using the mouse, move the mouse cursor to the
menu title, press either mouse button, and while holding the button
down, drag the highlight down to the desired selection. Then release
the button.

=== Command Summary ===

The CodeView function keys are shown on the template below. You can
create an overlay that will fit some PC keyboards by printing it using
10-pitch type, then making a 73-percent photocopied reduction.

| |
| | | |
|Get | |View |
|help | F1 F2 |regis-|
| | |ters |
| | | |
|-------- ------
|Set | | |
|source | |View |
|or | F3 F4 |output|
|assembly| |screen|
|mode | | |
-------- ------
| | | |
| | |Change|
|Go | F5 F6 |cursor|
| | |window|
| | | |
|-------- ------
| | |Trace |
|Go to | |into |
|cursor | F7 F8 |func- |
|line | |tions |
| | | |
|-------- ------
|Set | |Step |
|break- | |over |
|point | F9 F10 |func- |
|at | |tions |
|cursor | | |
|CONTROL-U Move separator line up |
|CONTROL-D Move separator line down|

The following table shows the window commands that can be
executed with the mouse or function keys:

Command Keyboard Mouse

---------------------------- ----------------------- ---------------------------
Open help screen | F1 | Use View menu
Open register window | F2 | Use Options menu
Toggle source/assembly | F3 | Use View menu
Switch to output screen | F4 | Use View menu
Go | F5 | Click either on Go
Switch cursor window | F6 | None
Go to cursor line | F7 at location | Click right on source line
Trace through functions | F8 | Click left on Trace
Set breakpoint at cursor | F9 at location | Click left on source line
Step over functions | F10 | Click right on Trace
Change flag | None | Click either on flag
Move separator line up | CONTROL-U | Drag line up
Move separator line down | CONTROL-D | Drag line down
Scroll up line in window | Move cursor off top | Click left on up arrow
Scroll up page in window | PGUP | Click right on up arrow
Scroll to top of window | HOME | Click both on up arrow
Scroll down line in window | Move cursor off bottom| Click left on down arrow
Scroll down page in window | PGDN | Click right on down arrow
Scroll to bottom of window | END | Click both on down arrow
Move cursor | UP ARROW or DOWN ARROW| None
---------------------------- ----------------------- ---------------------------

The syntax for each of the CodeView dialog commands is listed below.
The commands are listed in groups according to their functions:

Execute Code

Command Syntax
------- ------
Trace T []
Program Step P []
Go G [
Execute E
Restart L []

Examine Data

Command Syntax
------- ------
Display Expression ? [,format]
Examine Symbols X?[mod!][fun.][sym][*]
Dump D[] []
Register R [] [[=]]
8087 Dump 7


Command Syntax
------- ------
Breakpoint Set BP [
] [] [""]
Breakpoint Clear BC []
Breakpoint Disable BD []
Breakpoint Enable BE []
Breakpoint List BL

Watch Statements

Command Syntax
------- ------
Watch W?
Watch W[]
Watchpoint WP?
Tracepoint TP?
Tracepoint TP[
Delete Watch Y

Examine Source

Command Syntax
------- ------
Set Mode S[+|-|&]
Unassemble U []
View Source V [
Current Location .
Stack Trace K


Command Syntax
------- ------
Assemble A [
Enter E[] []

System Control

Command Syntax
------- ------
Set Radix N[]
Quit Q
Search /[]
Screen Exchange \
Tab Set #[


Command Syntax
------- ------
Send Output [T]>[>]
Get Input <
Redirect Both =
Pause "
Delay :
Comment *[]

 December 10, 2017  Add comments

Leave a Reply