I'm trying to write the LSL instruction manually, and I come to one problem. Let us have.
LSL eax , sel
So I should get the limit of descriptor that is determined by SEL and place it in EAX.
What if the granularity is 1, do i have to take the limit then shift it right 12 bits and only then place it in EAX?