delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/07/19/16:31:47

Xref: news2.mv.net comp.os.msdos.djgpp:6174
From: fitz AT argus DOT lpl DOT arizona DOT edu (Mike Fitzgibbon)
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Can't get asm code working - descriptors screwed?
Date: 19 Jul 1996 19:28:24 GMT
Organization: University of Arizona, LPL
Lines: 25
Message-ID: <4sonko$lqu@news.ccit.arizona.edu>
References: <4sncuc$kjo AT newsbf02 DOT news DOT aol DOT com>
NNTP-Posting-Host: babel.lpl.arizona.edu
Mime-Version: 1.0
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

In article <4sncuc$kjo AT newsbf02 DOT news DOT aol DOT com>, rettamitna AT aol DOT com says...
>
>     OK, I finally got DJGPP installed, and I finally figured out enough
>AT&T syntax to get a few inline things working, but I can't get this code
>to work!  It tries to generate a bunch of random pixels on the VGA mode
>0x13 screen.  I can get it into mode 0x13, I can generate the numbers, but
>I can't get it to display.  The code compiles flawlessly and I don't get
>any exceptions (like I did before I remembered to set the limit of my new
>descriptor), but nothing outputs to the screen!  I'd really appreciate it
	[snip]
>    "movl $7, %eax\n\t"
>    "xorl %ecx, %ecx\n\t"
>    "movl $0xA000, %edx\n\t"    //VGA seg
	try changing this to:	"movl $0xA,%edx\n\t"
>    "int $49\n\t"               //set descriptor base
>    "jc ERROR\n\t"
	[snip]
>-rettaMitnA AT aol DOT com(Joel Hardy)


In INT 0x31, ax=7 (DPMI 0.9+, Set segment base address) CX:DX is the linear 
base address, so should be 0xA0000 not 0xA0000000 I believe.
	Hope this works out for you,
		Mike

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019