flat assembler
Message board for the users of flat assembler.

Index > MenuetOS > For i810|i815 and S3 users!

Author
Thread Post new topic Reply to topic
Protopopius



Joined: 02 Dec 2003
Posts: 1
Protopopius
Idea Arrow If you can't normaly boot MeOS (you see narrow strip) than you can recompil kernel with new set_bank function! IT YOU CAN GET HERE: http://menuetos.8bit.co.uk ! Go to "Исправления"("Ispravleniya") ![/url]
Post 02 Dec 2003, 18:43
View user's profile Send private message Reply with quote
dsp2x



Joined: 26 Dec 2003
Posts: 8
dsp2x
;Set bank function for Intel 810/815 chipsets
; *****Modified by Protopopius, Russia.*****
; ********* http://menuetos.8bit.co.uk **************
; ************************************************

set_bank:

cli

cmp al,[0xfff2]
je retsb

mov [0xfff2],al

push ax
push dx
mov dx,3CEh
mov ah,al ; Save value for later use
mov al,10h ; Index GR10 (Address Mapping)
out dx,al ; Select GR10
inc dl
mov al,3 ; Set bits 0 and 1 (Enable linear page mapping)
out dx,al ; Write value
dec dl
mov al,11h ; Index GR11 (Page Selector)
out dx,al ; Select GR11
inc dl
mov al,ah ; Write address
out dx,al ; Write the value
pop dx
pop ax
retsb:
sti
ret
Post 08 Jan 2004, 13:46
View user's profile Send private message Reply with quote
eet_1024



Joined: 22 Jul 2003
Posts: 59
eet_1024
I think that was me 2 years ago. I'll have to make a boot floppy and try this new version.
Post 08 Jan 2004, 19:35
View user's profile Send private message Reply with quote
Bitdog



Joined: 18 Jan 2004
Posts: 97
Bitdog
Instead of CLI & STI you might try PUSHF CLI code_here POPF
Other automatic interrupts might have the INTs turned off
and a CLI STI proc will turn the INTs on in the middle of that auto INT ?
PUSHFW saves the interrupt state
CLI turns off the ints for your proc
POPFW restores the flags word including the INT state.

I hacked a Sound card .exe & found it to be used by lots of pro's too.

I hope that helps somewhat.

Bitdog
Post 19 Jan 2004, 13:39
View user's profile Send private message Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< Last Thread | Next Thread >
Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Copyright © 1999-2020, Tomasz Grysztar. Also on GitHub, YouTube, Twitter.

Website powered by rwasa.