What wrong with this, It wont change the Bank.

BankSwitch proc

push ax
mov dx,03d4h
mov al,035h
out dx,al
inc dx
pop ax
out dx,al

BankSwitch endp
Posted on 2003-03-11 04:23:39 by realvampire
hmmm.... maybe the problem is the value in ax BEFORE the function, unless it's the index or port number... i don't know.... i don't know much about programming SVGA registers (which is what it is, right? if you have any info on them, where did you find it?)
Posted on 2003-03-13 13:46:41 by Kobra
I found it at www.programmersheaven.com . I dont have any usefull information on it.
Posted on 2003-03-15 02:06:39 by realvampire
okay well i also heard that many video cards use different ways to change the bank and that it was better to let VESA calls (or Ints) do that. because i read one tutorial about switching banks and i wondered why it would never work but that was because it was for an old Chips and Techs card and i had a V3, so of course it didn't work.
Posted on 2003-03-15 23:21:10 by Kobra