Home > other > A great god help look at x86 assembly language the results of debugging and running results is not t
A great god help look at x86 assembly language the results of debugging and running results is not t
Time:09-20
Assume cs: codesg; Linear congruence algorithm randomly generated three elements
Codesg segment
Output:; Will a number according to the decimal output Mov bx, 10 Cx, mov 0 Disp1: Mov dx, 0 Div bx Push dx Cx inc.The or ax, ax Developed disp1 Disp2: Mov ah, 2 Pop dx The add dl, 30 h Int 21 h Loop disp2 JMP goon
S: the mul bl The add ax, 7 Div bh Mov al, ah Mov dl, al Push ax Mov ax, dx Push bx Push cx Push dx JMP output Goon: Mov dl, ' Mov ah, 2 Int 21 h Pop dx Pop cx Pop bx Pop ax Mov ah, 0 Loop s
Mov ax, 4 c00h Int 21 h
Codesg ends End the start
CodePudding user response:
Output: the back of the div bx is dx: ax/bx even with dx but haven't set 0, it DOS loader is regardless of dx, and debug software tends to zero, it so both sides can have different results, leave on their own dx is zero,
CodePudding user response:
In addition, this program structure on the process you are like some