Does switching back to real mode switches back the addessing mode? I have a boot sector that does the following, tested as a floppy in qemu-system-i386: