- pushad\r
- push eax\r
- shr eax, 16 ; move high bits to ax\r
- mov word [realmode_ax], ax ; save new ax value\r
- pop eax ; restore\r
-\r
- push ebx\r
- shr ebx, 16 ; move high bits to bx\r
- mov byte [int_number], bl ; save int number to call\r
- pop ebx\r
-\r
- mov byte [realmode_error], 0 ; all variables is in the\r
- mov word [realmode_bx], bx ; realmode/variables.inc file\r
- mov word [realmode_cx], cx\r
- mov word [realmode_dx], dx\r
- call disable_irqs\r
- jmp pword 0x18:do_16pmode ; must substract 0x10000 from\r
- ; data addresses becasue of\r
- ; fasm strict "org" behavior\r
+ pushad\r
+ push eax\r
+ shr eax, 16 ; move high bits to ax\r
+ mov word [realmode_ax], ax ; save new ax value\r
+ pop eax ; restore\r
+\r
+ push ebx\r
+ shr ebx, 16 ; move high bits to bx\r
+ mov byte [int_number], bl ; save int number to call\r
+ pop ebx\r
+\r
+ mov byte [realmode_error], 0 ; all variables is in the\r
+ mov word [realmode_bx], bx ; realmode/variables.inc file\r
+ mov word [realmode_cx], cx\r
+ mov word [realmode_dx], dx\r
+ call disable_irqs\r
+ jmp pword 0x18:do_16pmode ; begin our dark journey into 16bit-land\r
+\r