Hello everyone!
When I go into the command prompt and type:
debug main.com
I get this in the console, when I type 'r':
AX=0000 BX=0000 CX=0041 DX=0000 SP=FFFE BP=0000 SI=0000 DI=0000
DS=1549 ES=1549 SS=1549 CS=1549 IP=0100 NV UP EI PL NZ NA PO NC
1549:0100 E91000 JMP 0113
And this when I type 'd':
1549:0100 E9 10 00 41 58 20 3D 20-37 0D 0A 24 42 58 20 3D ...AX = 7..$BX =
1549:0110 20 35 24 B8 05 00 BB 07-00 50 53 58 5B 3D 07 00 5$......PSX[=..
1549:0120 74 00 B4 09 BA 03 01 CD-21 83 FB 05 74 00 B4 09 t.......!...t...
1549:0130 BA 0C 01 CD 21 B4 08 CD-21 E9 00 00 B8 00 4C CD ....!...!.....L.
1549:0140 21 3A 75 01 46 E8 36 00-8A 46 00 84 C0 79 DD F6 !:u.F.6..F...y..
1549:0150 46 05 04 75 D7 3C FE 88-E0 88 46 00 72 D1 E8 A1 F..u.<....F.r...
1549:0160 C4 EB CC 3D 01 90 3E 01-A0 3F 01 B0 40 01 C0 41 ...=..>..?..@..A
1549:0170 01 D0 42 01 BD 45 01 8D-3C 01 8D 09 01 8D E8 69 ..B..E..<......i
How can I translate the two above outputs, from this source code:
jmp executor
axSeven db "AX = 7", 0dh, 0ah, "$"
bxFive db "BX = 5", "$"
executor:
mov ax, 0005h
mov bx, 0007h
push ax
push bx
pop ax
pop bx
cmp ax, 0007h
jz axIsSeven
axIsSeven:
mov ah, 0009h
lea dx, axSeven
int 0021h
cmp bx, 0005h
jz bxIsFive
bxIsFive:
mov ah, 0009h
lea dx, bxFive
int 0021h
mov ah, 0008h
int 0021h
jmp exit
exit:
mov ax, 4c00h
int 0021h
end executor
Problem: I don't understand the outputs, so I need to learn how to "read" them :).
Best regards,
Benjamin.