Name: __________________
Section:_______________
Now, use the "t" command to trace through your program. After
hitting "t", you will see the registers displayed again, just like
when you did the register command.
What are the IP, AX, and BX register values after the first "t"
command?
IP = ___________
AX = __________
BX = ___________
What are the IP, AX, and BX register values after the second "t"
command?
IP = ___________
AX = __________
BX = ___________
You should notice a couple of things:
-- After each instruction, IP increments by the number of bytes of machine
code that were just executed. MOV BX, 0004 has machine code BB0400. That is
three bytes long (a byte is 8 bits). Prior to executing the instruction, IP
was equal to C (12 decimal). After adding 3, IP should be equal to F (15
decimal).
-- When BX equaled 4 and you copied the value pointed to it into AX, the value
in AX was the 1234h you entered earlier. The bytes were swapped when it was
copied out of memory into the value we wanted!