Import backup from 2005-11-01
This commit is contained in:
1 parent
79ca453f66
commit
7daa1c5336
3 files changed
+37
-18
No files matched your search
+11
-5
@@ -10,7 +10,7 @@
|
||||
|
||||
; the bootstrap process will jump us to 0x0:0x5010 so we'd better be ready for it
|
||||
[org 0x5000]
|
||||
[bits 16]
|
||||
[bits 32]
|
||||
;HOS module header, better be 16 bytes!
|
||||
dd 0x4D534F48 ; magic identifier "HOSM"
|
||||
dd 1 ; real mode module
|
||||
@@ -20,10 +20,16 @@
|
||||
; ebx = return address
|
||||
; ecx = where to store real mode parameter table
|
||||
start:
|
||||
jmp blah
|
||||
blah:
|
||||
jmp $
|
||||
jmp 0:start_refreshed
|
||||
jmp 24:start_pm16
|
||||
[bits 16]
|
||||
start_pm16: ; in 16-bit protected mode
|
||||
mov ax, 32
|
||||
mov ss, ax
|
||||
mov eax, cr0
|
||||
and eax, 0x7FFFFFFE
|
||||
mov cr0, eax ; leave PM
|
||||
|
||||
jmp 0:start_refreshed ; enter RM
|
||||
|
||||
%include "conio.inc"
|
||||
%include "vesa.inc"
|
||||
|
||||
Reference in new issue
Block a user