Trying to switch CPU mode in bootloader
I’m currently working on the bootloader to make it from Real Mode (16-bit) to Protected Mode (32-bit)
I’m still stuck with the A20 gate. I need to learn more about Assembly syntax, so it will help me understand how my CPU actually works.
Comments 5
You can ask bios directly to open a20 gate for you
Or you can use PS2 port to take out the mask and modify it and put it back troug it
Take out byte from 0x92, put it to some lower section of some register like al then use or al, 2 to modify the mask without corrupting the other masks and then put it back to 0x92
I used both to be sure
@scrt401 I am actually stuck on the transition from Real Mode to Protected Mode, not only the A20 gate.
Sign in to join the conversation.