Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Is usage of expanded memory the only advantage that qb71...
#11
Quote:has over 45?

You have more functions in 7.1 ... like ON LOCAL ERROR , etc .. and lots of useless functions ! lol
have the simplest tastes of the World : I satisfy myself with the best !

http://ToufQb.free.fr
Reply
#12
Quote:Can I make a SUB containing "SCREEN 13" compile it,
take the obj and use it with c++?

Nope. Mainly 'cause every QB function/command relies heavily on its runtime library.
SCUMM (the band) on Myspace!
ComputerEmuzone Games Studio
underBASIC, homegrown musicians
[img]http://www.ojodepez-fanzine.net/almacen/yoghourtslover.png[/i
Reply
#13
SCREEN 13 under C:


#define VIDEO_INT 0x10 /* the BIOS video interrupt. */
#define SET_MODE 0x00 /* BIOS function to set the video mode. */
#define VGA_256_COLOR_MODE 0x13 /* use to set 256-color mode. */
#define TEXT_MODE 0x03 /* use to set 80x25 text mode. */


void set_mode(byte mode)
{
union REGS regs;

regs.h.ah = SET_MODE;
regs.h.al = mode;
int86(VIDEO_INT, &regs, &regs);
}


This code will do it, then draw on the screen using the memory location A000

(A000:0000 - first pixel, A000:0001 - second pixel ...)
ingCheetah, the Running Cheetah Software programmer

http://rcs.fateback.com/
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)