BBS: Inland Empire Archive Date: 11-11-92 (17:11) Number: 389 From: MATT HART Refer#: NONE To: ERIC B. FORD Recvd: NO Subj: SVGA Conf: (2) Quik_Bas
EBF> Using those BIOS calls and stuff to access SVGA you posted a
EBF> while back, how do I change the pallette? Thanks.
DEFINT A-Z
TYPE RegTypeX
ax AS INTEGER
bx AS INTEGER
cx AS INTEGER
dx AS INTEGER
bp AS INTEGER
si AS INTEGER
di AS INTEGER
flags AS INTEGER
ds AS INTEGER
es AS INTEGER
END TYPE
PalNum = 1 : PalColor = 2
Call TandyPalette (PalNum,PalColor)
SUB TandyPalette (P,C)
DIM InRegs as RegTypeX
InRegs.AX = &H0B00
InRegs.BX = P*256 + C
CALL InterruptX (&H10, InRegs, InRegs)
END SUB
---
* Origin: Midnight Micro! V.32/REL (918)451-3306 (1:170/600)

Books at Amazon:
Back to BASIC: The History, Corruption, and Future of the Language
Hackers: Heroes of the Computer Revolution (including Tiny BASIC)
Go to: The Story of the Math Majors, Bridge Players, Engineers, Chess Wizards, Scientists and Iconoclasts who were the Hero Programmers of the Software Revolution
The Advent of the Algorithm: The Idea that Rules the World
Moths in the Machine: The Power and Perils of Programming
Mastering Visual Basic .NET