⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 vesa2.inc

📁 TestOS - 带简单GUI的DOS扩展OS// 源代码// ASM// 英文
💻 INC
字号:
vesa:  
              
        mov  dword [VESAInfo_Signature],'VBE2'
        mov  ax,4f00h                             
        mov  di,VESA_Info		
        int  10h
 
        cmp  ax,004Fh
	jne  novesa     

        mov  ax,4f01h                                       ; set vesa screen mode information
        mov  di,Mode_Info	
        mov  cx,0x4112 
	and  cx,0xfff ;and
        int  10h 

        cmp  dword [VESAInfo_Signature], 'VESA'
        jne  novesa
        
       
        mov  ax,4f02h                                       ; set vesa screen mode
        mov  bx,0x4112                                      ;4112h = 32/24bit ; 0x4101 = 256bit ;4111h = 65535bit                                       ; 640*480*24
        int  10h
       
        cmp ax,004Fh
	jne novesa
        
        ret

novesa:
        mov ax,0xB800
	mov es,ax
        lea si,[msg0]                   ; -> "still in real mode!"
        mov di,(80 * 1 + 2) * 2         ; row 1, column 2
        mov cx,52
        cld
        rep movsb
      
nov:
        jmp   nov

⌨️ 快捷键说明

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