Home > other >  Consult, dw data placeholder part can't write in.
Consult, dw data placeholder part can't write in.

Time:04-14

Code to run the results are as follows, why the stack data is part of the paragraph, later to BBBB not according to my data code,


CodePudding user response:

Accurately, many data are not as I write to record into the memory, most likely record correctly, may also have most of the record is not correct,
Don't a dw only responsible for is responsible for the records accurate data?

CodePudding user response:

The stack stack segment ah, single step, and address g belt is used, is the content is covered, want to see, when the loader new look, is to conversion of ss, or stack segment stack defines stack section, automatically set the ss: sp need to program their assignment,

CodePudding user response:

refer to the second floor zara's reply:
that's stack stack segment ah, single step, and address g belt is used, is the content is covered, want to see, when the loader new look, is to the ss conversion, or stack segment stack defines stack section, automatically set the ss: sp need to program their assignment,

Hello, thank you for your reply,
Has the code segment, stack section, data section separated, nor do pushed on the stack, why the stack will be overwritten? Also seen in the screenshot, the address of the preceding ds ss cs,

CodePudding user response:

Step command run t/p and g involves interrupt, can be used to stack; Look at the stack in the end, look forward for the unit with the word, is to mark clearly registers, returns to segment address or the current application of cs, returns to the IP address or IP=0010, which is standard in effect at the time of the interrupt stack pressure field,

CodePudding user response:

Zara
refer to 4th floor response:
single step command run t/p and g involves interrupt, can be used to stack; Look at the stack in the end, look forward for the unit with the word, is to mark clearly registers, returns to segment address or the current application of cs, returns to the IP address or IP=0010, which is standard in effect at the time of the interrupt stack pressure field,


There are such a knowledge point, I also learned that
I thought that the stack is a completely custom by the user space, thought no push, no change, have never thought what interrupts can also affect the stack,