In the given problem DOS commands are given as:
"mov dx, OFFSET Msg1" means first evaluate the offset part of message 1 and then move to dx.
"mov ah, 9h"
"mov dx, OFFSET Msg 2" means means first evaluate the offset part of message 2 and then move to dx.
"mov ah, 9h"
"int 21h"
In assembly x86 contains two parts such as segment part and offset part. Here, in the two string calls msg1 and msg2, simply move offset values of msg1 and msg2 (source) to dx (destination).
Get Answers For Free
Most questions answered within 1 hours.