delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/07/24/01:00:21

Xref: news2.mv.net comp.os.msdos.djgpp:6339
From: web183 AT charweb DOT org (patrick fox)
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Can't get asm code working - descriptors screwed?
Date: 23 Jul 1996 13:38:36 GMT
Organization: Charlotte's Web, Charlotte NC
Lines: 30
Message-ID: <4t2kks$mc6@news.charweb.org>
References: <4sncuc$kjo AT newsbf02 DOT news DOT aol DOT com> <4sonko$lqu AT news DOT ccit DOT arizona DOT edu>
NNTP-Posting-Host: wilbur.charweb.org
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

Have you thought of using the selector _dos_ds and using the offset 0xa0000?

-Patrick

Mike Fitzgibbon (fitz AT argus DOT lpl DOT arizona DOT edu) wrote:
: 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