home *** CD-ROM | disk | FTP | other *** search
- program segment
- .386p
-
- ; Ez a pár sor egy prot-mode manager
- ; Az EMS managert vedd ki!
-
- assume cs:program
- k proc near
- mov cs:byte ptr mem48,16
- mov eax,seg gdt
- shl eax,4
- mov bx,offset gdt
- movzx ebx,bx
- add eax,ebx
- mov cs:dword ptr mem48+2,eax
- lgdt cs:pword ptr mem48
- mov bx,8
- push ds
- cli
- mov eax,cr0
- or eax,1
- mov cr0,eax
- jmp short k1
- k1: mov gs,bx
- mov fs,bx
- mov es,bx
- mov ds,bx
- and al,0feh
- mov cr0,eax
- jmp k2
- k2: sti
- pop ds
-
- ; PMODE MANAGER VEGE
-
- mov ax,013h
- int 10h
-
-
- mov ax,0
- mov es,ax
- mov ax,0a000h
- mov es,ax
-
- mov esi,0a0000h+160 ; PONT HELYE
- mov al,0fh ; PONT SZíNE
- mov [esi],al ; PONT KIRAKÅSA
-
- mov edi,0001h ; UE REAL MODE-BAN
- mov al,0eh
- stosb
-
- b1: in al,060h
- cmp al,1
- jne b1
-
- mov ah,4ch
- int 21h
-
- mem48: db 0,0,0,0,0,0
- gdt: db 0,0,0,0,0,0,0,0
- db 0ffh,0ffh,0,0,0,92h,0cfh,0ffh
-
- k endp
- program ends
- end k
- Comment : TyRaNT / MurmidoneS