home *** CD-ROM | disk | FTP | other *** search
- Program BreakpointExamples;
- { This program is an example of several different types of }
- { breakpoints that can be set within the Turbo Debugger. }
-
- {$I Debug.Inc} { Include the debugging definition file }
-
- Uses Crt, Dos; { Link in necessary standard units }
-
- Type
- ArrayType = Array[1..10] of Byte;
-
- Var
- ChangedMemory : ArrayType;
- Count,
- I, J : Integer;
-
- Procedure BreakpointEval;
- Begin
- I := 0;
- J := 0;
- End;
-
- Begin
- BreakpointEval;
- FillChar( ChangedMemory, SizeOf( ChangedMemory ), #0 );
- I := 5;
- For Count := 1 to 20 Do
- Begin
- I := I + 1;
- J := J + 2;
- If( ( Count > 5 ) And ( Count <= 10 ) ) Then
- ChangedMemory[Count] := Count;
- End;
- For Count := 1 to 10 Do
- Write( ChangedMemory[Count], ' ' );
- Writeln( I, J );
- End.
-