retour vers le sommaire du cours
01 program debug04;
02
03
04 procedure BoucleSansFin;
05
06 var
07 Compteur : byte;
08
09 begin
10 Compteur := 248;
11
12 repeat
13 writeLn ('Compteur vaut : ', Compteur:3);
14 Compteur := Compteur + 1;
15 until (Compteur > 255);
16 end;
17
18
19 begin
20 BoucleSansFin;
21 end.
Start Stop
Length Name Class
00000H 0007DH 0007EH
debug04 CODE |
||
Address Publics by Value 0000:0011 BoucleSansFin |
Address Publics by Value |
Address Publics by Value 0099:0252
SaveInt00 |
Line numbers for debug04(DEBUG04.PAS) segment debug04 9 0000:0011
10 0000:001F 13 0000:0023 14 0000:0051 Program entry point at 0000:0064 |
D:\fichiers\henrij\ig1\tp_debug>debug debug04.exe
-r
AX=0000 BX=0000 CX=0850 DX=0000 SP=4000 BP=0000 SI=0000 DI=0000
DS=15F8 ES=15F8 SS=16CB CS=1608 IP=0064 NV UP EI PL NZ NA PO NC
1608:0064 9A00001016 CALL 1610:0000-d cs:0
1608:0000 10 43 6F 6D 70 74 65 75-72 20 76 61 75 74 20 3A .Compteur vaut :
1608:0010 20 55 89 E5 B8 02 00 9A-CD 02 10 16 83 EC 02 C6 U..............-u cs:11
1608:0011 55 PUSH BP
1608:0012 89E5 MOV BP,SP
1608:0014 B80200 MOV AX,0002
1608:0017 9ACD021016 CALL 1610:02CD
1608:001C 83EC02 SUB SP,+02
1608:001F C646FFF8 MOV BYTE PTR [BP-01],F8
1608:0023 BF5201 MOV DI,0152
1608:0026 1E PUSH DS
1608:0027 57 PUSH DI
1608:0028 BF0000 MOV DI,0000
1608:002B 0E PUSH CS
1608:002C 57 PUSH DI
1608:002D 31C0 XOR AX,AX
1608:002F 50 PUSH AX
1608:0030 9A70061016 CALL 1610:0670
1608:0035 8A46FF MOV AL,[BP-01]
1608:0038 30E4 XOR AH,AH
1608:003A 31D2 XOR DX,DX
1608:003C 52 PUSH DX
1608:003D 50 PUSH AX
1608:003E B80300 MOV AX,0003
1608:0041 50 PUSH AX
1608:0042 9AF8061016 CALL 1610:06F8
1608:0047 9ADD051016 CALL 1610:05DD
1608:004C 9A91021016 CALL 1610:0291
1608:0051 8A46FF MOV AL,[BP-01]
1608:0054 30E4 XOR AH,AH
1608:0056 40 INC AX
1608:0057 8846FF MOV [BP-01],AL
1608:005A 807EFFFF CMP BYTE PTR [BP-01],FF
1608:005E 76C3 JBE 0023
1608:0060 89EC MOV SP,BP
1608:0062 5D POP BP
1608:0063 C3 RET-u cs:64
1608:0064 9A00001016 CALL 1610:0000
1608:0069 55 PUSH BP
1608:006A 89E5 MOV BP,SP
1608:006C 31C0 XOR AX,AX
1608:006E 9ACD021016 CALL 1610:02CD
1608:0073 E89BFF CALL 0011
1608:0076 5D POP BP
1608:0077 31C0 XOR AX,AX
1608:0079 9A16011016 CALL 1610:0116