Subversion Repositories Kolibri OS

Rev

Rev 5 | Rev 115 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 5 Rev 102
Line 46... Line 46...
46
 
46
 
47
;!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
47
;!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
48
; set_bank for S3 videocards, work on S3 ViRGE PCI (325)
48
; set_bank for S3 videocards, work on S3 ViRGE PCI (325)
49
; modified by kmeaw 
49
; modified by kmeaw 
-
 
50
set_bank: 
50
set_bank: 
51
pushfd
51
cli 
52
cli 
52
cmp al,[0xfff2] 
53
cmp al,[0xfff2] 
53
je retsb 
54
je retsb 
54
mov [0xfff2],al 
55
mov [0xfff2],al 
Line 119... Line 120...
119
dec dx 
120
dec dx 
120
pop cx 
121
pop cx 
121
pop dx 
122
pop dx 
122
pop ax 
123
pop ax 
123
retsb: 
124
retsb: 
124
sti 
125
popfd
125
ret
126
ret
Line 126... Line 127...
126
 
127
 
127
;Set bank function for Intel 810/815 chipsets
128
;Set bank function for Intel 810/815 chipsets
128
; *****Modified by Protopopius, Russia.*****
129
; *****Modified by Protopopius, Russia.*****
Line 459... Line 460...
459
      mov  eax,edi
460
      mov  eax,edi
460
      sub  eax,[0xfe80]
461
      sub  eax,[0xfe80]
461
      mov  ebx,3
462
      mov  ebx,3
462
      div  ebx
463
      div  ebx
463
      add  eax,WinMapAddress
464
      add  eax,WinMapAddress
464
      mov   ebx,[0x3010]
465
      mov   ebx,[0x3000]
465
      movzx ebx,byte[ebx+0xe]
-
 
466
      cld
466
      cld
Line 467... Line 467...
467
 
467
 
Line 468... Line 468...
468
      dbnp2412:
468
      dbnp2412:
Line 551... Line 551...
551
 
551
 
552
      mov  eax,edi
552
      mov  eax,edi
553
      sub  eax,[0xfe80]
553
      sub  eax,[0xfe80]
554
      shr  eax,2
554
      shr  eax,2
555
      add  eax,WinMapAddress
555
      add  eax,WinMapAddress
556
      mov   ebx,[0x3010]
-
 
557
      movzx ebx,byte[ebx+0xe]
556
      mov   ebx,[0x3000]
Line 558... Line 557...
558
      cld
557
      cld
Line 559... Line 558...
559
 
558
 
Line 821... Line 820...
821
      mov  eax,edi
820
      mov  eax,edi
822
      sub  eax,[0xfe80]
821
      sub  eax,[0xfe80]
823
      mov  ebx,3
822
      mov  ebx,3
824
      div  ebx
823
      div  ebx
825
      add  eax,WinMapAddress
824
      add  eax,WinMapAddress
826
      mov  ebx,[0x3010]
825
      mov  ebx,[0x3000]
827
      mov  bl,[ebx+0xe]
-
 
828
      mov  bh,[esp+4*4]
826
      mov  bh,[esp+4*4]
Line 829... Line 827...
829
 
827
 
Line 830... Line 828...
830
      np2412:
828
      np2412:
Line 899... Line 897...
899
 
897
 
900
      mov  eax,edi
898
      mov  eax,edi
901
      sub  eax,[0xfe80]
899
      sub  eax,[0xfe80]
902
      shr  eax,2
900
      shr  eax,2
903
      add  eax,WinMapAddress
901
      add  eax,WinMapAddress
904
      mov   ebx,[0x3010]
-
 
905
      mov   bl,[ebx+0xe]
902
      mov   ebx,[0x3000]
Line 906... Line 903...
906
      mov   bh,[esp+4*4]
903
      mov   bh,[esp+4*4]
Line 907... Line 904...
907
 
904