Experiment conclusion:
(1) run the e command to run the memory unit0021:0 ~Change 8 bytes of data30 h, 31 H, 32 h, 33 H, 34 h, 35 h, 36 h, 37 h
Input command
Run one by one:
The blank content in the book is AX = 3130
Ax = 6465
BX = 3534
BX = 6c6a
SP = 00fe; the address of the modified memory unit is 2200: The content of 00fe is 6462.
SP = 00fc; the address of the modified memory unit is 2200: The content of 00fc is 6c6a
SP = 00fc; AX = 6c6a
SP = 0100; BX = 6462
SP = 00fe; the address of the modified memory unit is 2200: The content of 00fe is 3534.
SP = 00fc; the address of the modified memory unit is 2200: The content of 00fc is 3736
(2) Try in dosbox according to the instructions in the book
Data may be pre-stored in the stack when stack is set (conjecture)
Summary and experiences
I learned the basic usage of the stack, and gained a deeper understanding of the segment registers and offset addresses. After completing this experiment, I felt that the Assembly had suddenly learned a lot, it should be easy to learn later. It is not in the same state as the first one.
Assembly Lab 2