What is the difference between bx and bp in assembly? Example here:
mov bx, 1h
mov bp, 1h
Do they reference to the same memory? Is it the same with ss and sp?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
In
x86the registersbxandbpare totally unrelated. The only common thing about them is the wordbase.bx(base index) is a general-purpose register (like ax, cx and dx), typically used as a pointer to data (used for arrays and such)bp(base pointer) is typically used to point at some place in the stack (for instance holding the address of the current stack frames)Again,
ssandspare different as well.ss(stack segment) is a segment register (like cs, ds and es). It holds the segment used by the stack.sp(stack pointer) points at the top of the stack