But I want to figure out how What is the “knowledge” of real mode or protected mode? How can you say that it is a real pattern program when looking at the source code/object code?
Looking for the answer, what I can think of is that “real mode” programs use BIOS subroutines and OS subroutines, while “protected mode” programs only use OS subroutines. The instruction codes are different because of the register opcode It is different, and the length of the offset address is different. Is there any other function to distinguish real and protected mode programs?
The instruction code is different, because the opcode of the register is different, and the length of the offset address is different.
< p>From the perspective of operating system and hardware, I know the difference between real mode and protected mode.
But I want to figure out the program’s “understanding” of real mode or protected mode What is it? How can you say that it is a real pattern program when looking at the source code/object code?
Looking for the answer, what I can think of is that “real mode” programs use BIOS subroutines and OS subroutines, while “protected mode” programs only use OS subroutines. The instruction codes are different because of the register opcode It is different, and the length of the offset address is different. Is there any other function to distinguish real and protected mode programs?
“Real mode” programs use BIOS subroutines and OS subroutines, while “protected mode” programs use only OS subroutines.
The instruction code is different, because the opcode of the register is different, and the length of the offset address is different.