He may be dead, but I'm going to answer.
At the beginning of any bootloader, when you set the beginning of a segment to 0x7c00 , then the registers also go to that address. Therefore, ideally, if you study some online resources that tell you how to use the int 0x19 , they will help you move to another address.
To fix this, ideally, reset the stack to 0 at the beginning of each transition to a new address.
source share