Mail Archives: djgpp/1996/07/24/01:00:21
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 -