oeminit.asm

来自「WinCE 3.0 BSP, 包含Inter SA1110, Intel_815」· 汇编 代码 · 共 43 行

ASM
43
字号
;-------------------------------------------------------------------------------
;
;       THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF
;       ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO
;       THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A
;       PARTICULAR PURPOSE.
;       Copyright (c) 1995-2000 Microsoft Corporation.  All rights reserved.
;  
;-------------------------------------------------------------------------------
.486p
.model FLAT

;-------------------------------------------------------------------------------
;-------------------------------------------------------------------------------
.code
 
align 4
;-------------------------------------------------------------------------------
;-------------------------------------------------------------------------------
StartUp PROC NEAR C PUBLIC

        cli
        cld
        
        mov ebx, OFFSET CacheEnabled
        mov     eax, cr0
        and eax, not 060000000h     ; clear cache disable & cache write-thru bits
        mov     cr0, eax
        jmp ebx
        align   4
CacheEnabled:
    
        wbinvd  ; clear out the cache
 
        EXTRN   _EbootMain:FAR
    mov eax, OFFSET _EbootMain
    jmp     eax
        

StartUp ENDP

    END

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?