B
B
Brandon19982020-05-16 14:24:53
assembler
Brandon1998, 2020-05-16 14:24:53

How to enter the protected mode of the processor?

Good day, users !
Need practical help on the issue of the protected mode of the processor. How can you enter it, do any action (the simplest that can be, purely for an example) and exit without errors.
Thank you for your responsiveness!

Answer the question

In order to leave comments, you need to log in

1 answer(s)
P
pfemidi, 2020-05-16
@pfemidi

Entering protected mode:

mov eax,cr0
or al,1
mov cr0,eax

We do "any action (the simplest that can be, purely for an example)" , read the contents of the eax register into the ebx register :
mov ebx,eax
Exit protected mode:
mov eax,cr0
and al,0feh
mov cr0,eax

And what? Why is this?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question