ftp.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1995/12/11/20:45:03

Xref: news-dnh.mv.net comp.os.msdos.djgpp:3776
Path: news-dnh.mv.net!mv!news.sprintlink.net!datalytics!news.ahc.ameritech.com!news.heurikon.com!daffy!uwvax!uwm.edu!vixen.cso.uiuc.edu!newsfeed.internetmci.com!btnet!zippy.dct.ac.uk!zippy.dct.ac.uk!nntp
Newsgroups: comp.os.msdos.djgpp
Subject: blitting to vga problem
From: Marc Coupar <mc AT dstn24 DOT dct DOT ac DOT uk>
Date: 11 Dec 95 16:15:15 GMT
Organization: University of Glasgow
Nntp-Posting-Host: bo211-pc29.cent.gla.ac.uk
Lines: 267
To: djgpp AT sun DOT soe DOT clarkson DOT edu
Dj-Gateway: from newsgroup comp.os.msdos.djgpp

This is a multi-part message in MIME format.

---------------------------------3526311453807
Content-Transfer-Encoding: 7bit
Content-Type: text/plain; charset=us-ascii

> 
> --------------------------------------------------------------------
> 
> Newsgroup: comp.os.msdos.djgpp
> 
>    * Re: Which compile option for GCC ? - DJ Delorie (8)
>    * DJGPP2.0 in windows NT - Gert van Antwerpen (21)
>    * socket lib? - "Alexander V. Lukyanov" (7)
>    * Re: (none) - Charles Sandmann (15)
>    * wierd "bug" in my program? - A. Aue (136)
>         o Erik Max Francis (27)
>    * Re: zoneinfo ?? - DJ Delorie (7)
>    * (none) - DJ Delorie (15)
>    * Re: Stack size - Charles Sandmann (5)
>    * coreleft() - "Alaric B. Williams" (13)
>    * Re: Overlaying - "Alaric B. Williams" (27)
>    * Re: Natas - "Lee Braiden" (6)
>    * calling real-mode interrupt handler - Orlando Andico (32)
>    * Re: Natas - juan j casero (7)
>    * Re: Graphics in V2 - wroberts AT aug DOT com (27)
>    * header file <math.h> - Hd (30)
>    * SWORD - Orlando Andico (10)
>    * Keyboard Handlers.. Argh! - battle DOT axe AT PEGASUZ DOT COM (20)
>    * Building GCC, newbie questions - Kraig Hanson (17)
>    * Natas - "A.Appleyard" (13)
>    * Re: V2 questions - Charles Sandmann (30)
>    * bash port? - "Alexander V. Lukyanov" (12)
>    * Core files & V2 - Bill Currie (9)
>    * Graphics in V2 - "Lee Braiden" (13)
>    * libxemu for V2 ? - "Lee Braiden" (10)
>    * Re: Using debug monochrome monitor with gdb - Eli Zaretskii
>      (47)
>    * Question: STRIP.EXE - amungal AT vnet DOT ibm DOT com (2)
>    * Re: decreasing program loadup time - "A.Appleyard" (8)
>    * HELP!!!! - Geoffrey Wong (31)
>    * Re: Similar as UNIX sccs but for DOS?? - Leif Odmark (17)
>    * Re: Getting the physical address of allocated virtual memory -
>      Charles Sandmann (11)
>    * Memory locking woes - Shawn Hargreaves (23)
>         o Charles Sandmann (25)
>    * new user - Royce E. Mitchell III (5)
>    * Re: Running djgpp & djgdb under windows environment. - Royce E.
>      Mitchell III (26)
>    * Re: I look for the portage of turbo vision using the libgrx -
>      Oliver Suciu (12)
>    * Length of pointer & freezing machine - Nicholas Marrone (20)
>    * Re: Natas - "J. A. McNamara" (17)
>    * Re: Just installed DJGPP and I have some problems - "L. Michael
>      Asher" (31)
>         o Charles Sandmann (3)
>    * Physical memory access? - Gert van Antwerpen (14)
>    * Re: Graphics in V2 - wroberts AT aug DOT com (72)
>    * Re: (none) - DJ Delorie (16)
>    * Unix functions? - Geoffrey Wong (33)
>    * Re: decreasing program lo - "Alexander V. Lukyanov" (7)
>    * Just installed DJGPP and I have some problems - Martin Couture
>      (20)
>    * libgplus info files, version 1.12.maint3... - "Alaric B.
>      Williams" (24)
>    * Re: decreasing program loadup time - "Alexander V. Lukyanov"
>      (18)
>    * Re: decreasing program loadup time - DJ Delorie (22)
>         o Charles Sandmann (16)
>    * Re: Text editor that can look at and edit zipped files - Eli
>      Zaretskii (9)
>    * Re: DIFF's - Eli Zaretskii (11)
>    * Xlibemu - Orlando Andico (14)
>    * DIFF's - Orlando Andico (15)
>    * Re: calling real-mode interrupt handler - Eli Zaretskii (13)
>    * Re: V2.0:confused - Eli Zaretskii (6)
>    * Re: Running djgpp 1.12m4 application under DOS 6.21 - Eli
>      Zaretskii (8)
>    * Re: GMAKE 3.71 Memory Leak? (Dos) - Eli Zaretskii (17)
> 
> --------------------------------------------------------------------
> 
> Newsgroup: comp.os.msdos.djgpp
> 
>    * Re: Which compile option for GCC ? - DJ Delorie (8)
>    * DJGPP2.0 in windows NT - Gert van Antwerpen (21)
>    * socket lib? - "Alexander V. Lukyanov" (7)
>    * Re: (none) - Charles Sandmann (15)
>    * wierd "bug" in my program? - A. Aue (136)
>         o Erik Max Francis (27)
>    * Re: zoneinfo ?? - DJ Delorie (7)
>    * (none) - DJ Delorie (15)
>    * Re: Stack size - Charles Sandmann (5)
>    * coreleft() - "Alaric B. Williams" (13)
>    * Re: Overlaying - "Alaric B. Williams" (27)
>    * Re: Natas - "Lee Braiden" (6)
>    * calling real-mode interrupt handler - Orlando Andico (32)
>    * Re: Natas - juan j casero (7)
>    * Re: Graphics in V2 - wroberts AT aug DOT com (27)
>    * header file <math.h> - Hd (30)
>    * SWORD - Orlando Andico (10)
>    * Keyboard Handlers.. Argh! - battle DOT axe AT PEGASUZ DOT COM (20)
>    * Building GCC, newbie questions - Kraig Hanson (17)
>    * Natas - "A.Appleyard" (13)
>    * Re: V2 questions - Charles Sandmann (30)
>    * bash port? - "Alexander V. Lukyanov" (12)
>    * Core files & V2 - Bill Currie (9)
>    * Graphics in V2 - "Lee Braiden" (13)
>    * libxemu for V2 ? - "Lee Braiden" (10)
>    * Re: Using debug monochrome monitor with gdb - Eli Zaretskii
>      (47)
>    * Question: STRIP.EXE - amungal AT vnet DOT ibm DOT com (2)
>    * Re: decreasing program loadup time - "A.Appleyard" (8)
>    * HELP!!!! - Geoffrey Wong (31)
>    * Re: Similar as UNIX sccs but for DOS?? - Leif Odmark (17)
>    * Re: Getting the physical address of allocated virtual memory -
>      Charles Sandmann (11)
>    * Memory locking woes - Shawn Hargreaves (23)
>         o Charles Sandmann (25)
>    * new user - Royce E. Mitchell III (5)
>    * Re: Running djgpp & djgdb under windows environment. - Royce E.
>      Mitchell III (26)
>    * Re: I look for the portage of turbo vision using the libgrx -
>      Oliver Suciu (12)
>    * Length of pointer & freezing machine - Nicholas Marrone (20)
>    * Re: Natas - "J. A. McNamara" (17)
>    * Re: Just installed DJGPP and I have some problems - "L. Michael
>      Asher" (31)
>         o Charles Sandmann (3)
>    * Physical memory access? - Gert van Antwerpen (14)
>    * Re: Graphics in V2 - wroberts AT aug DOT com (72)
>    * Re: (none) - DJ Delorie (16)
>    * Unix functions? - Geoffrey Wong (33)
>    * Re: decreasing program lo - "Alexander V. Lukyanov" (7)
>    * Just installed DJGPP and I have some problems - Martin Couture
>      (20)
>    * libgplus info files, version 1.12.maint3... - "Alaric B.
>      Williams" (24)
>    * Re: decreasing program loadup time - "Alexander V. Lukyanov"
>      (18)
>    * Re: decreasing program loadup time - DJ Delorie (22)
>         o Charles Sandmann (16)
>    * Re: Text editor that can look at and edit zipped files - Eli
>      Zaretskii (9)
>    * Re: DIFF's - Eli Zaretskii (11)
>    * Xlibemu - Orlando Andico (14)
>    * DIFF's - Orlando Andico (15)
>    * Re: calling real-mode interrupt handler - Eli Zaretskii (13)
>    * Re: V2.0:confused - Eli Zaretskii (6)
>    * Re: Running djgpp 1.12m4 application under DOS 6.21 - Eli
>      Zaretskii (8)
>    * Re: GMAKE 3.71 Memory Leak? (Dos) - Eli Zaretskii (17)
> 
> --------------------------------------------------------------------
> 
> Newsgroup: comp.os.msdos.djgpp
> 
>    * Re: Which compile option for GCC ? - DJ Delorie (8)
>    * DJGPP2.0 in windows NT - Gert van Antwerpen (21)
>    * socket lib? - "Alexander V. Lukyanov" (7)
>    * Re: (none) - Charles Sandmann (15)
>    * wierd "bug" in my program? - A. Aue (136)
>         o Erik Max Francis (27)
>    * Re: zoneinfo ?? - DJ Delorie (7)
>    * (none) - DJ Delorie (15)
>    * Re: Stack size - Charles Sandmann (5)
>    * coreleft() - "Alaric B. Williams" (13)
>    * Re: Overlaying - "Alaric B. Williams" (27)
>    * Re: Natas - "Lee Braiden" (6)
>    * calling real-mode interrupt handler - Orlando Andico (32)
>    * Re: Natas - juan j casero (7)
>    * Re: Graphics in V2 - wroberts AT aug DOT com (27)
>    * header file <math.h> - Hd (30)
>    * SWORD - Orlando Andico (10)
>    * Keyboard Handlers.. Argh! - battle DOT axe AT PEGASUZ DOT COM (20)
>    * Building GCC, newbie questions - Kraig Hanson (17)
>    * Natas - "A.Appleyard" (13)
>    * Re: V2 questions - Charles Sandmann (30)
>    * bash port? - "Alexander V. Lukyanov" (12)
>    * Core files & V2 - Bill Currie (9)
>    * Graphics in V2 - "Lee Braiden" (13)
>    * libxemu for V2 ? - "Lee Braiden" (10)
>    * Re: Using debug monochrome monitor with gdb - Eli Zaretskii
>      (47)
>    * Question: STRIP.EXE - amungal AT vnet DOT ibm DOT com (2)
>    * Re: decreasing program loadup time - "A.Appleyard" (8)
>    * HELP!!!! - Geoffrey Wong (31)
>    * Re: Similar as UNIX sccs but for DOS?? - Leif Odmark (17)
>    * Re: Getting the physical address of allocated virtual memory -
>      Charles Sandmann (11)
>    * Memory locking woes - Shawn Hargreaves (23)
>         o Charles Sandmann (25)
>    * new user - Royce E. Mitchell III (5)
>    * Re: Running djgpp & djgdb under windows environment. - Royce E.
>      Mitchell III (26)
>    * Re: I look for the portage of turbo vision using the libgrx -
>      Oliver Suciu (12)
>    * Length of pointer & freezing machine - Nicholas Marrone (20)
>    * Re: Natas - "J. A. McNamara" (17)
>    * Re: Just installed DJGPP and I have some problems - "L. Michael
>      Asher" (31)
>         o Charles Sandmann (3)
>    * Physical memory access? - Gert van Antwerpen (14)
>    * Re: Graphics in V2 - wroberts AT aug DOT com (72)
>    * Re: (none) - DJ Delorie (16)
>    * Unix functions? - Geoffrey Wong (33)
>    * Re: decreasing program lo - "Alexander V. Lukyanov" (7)
>    * Just installed DJGPP and I have some problems - Martin Couture
>      (20)
>    * libgplus info files, version 1.12.maint3... - "Alaric B.
>      Williams" (24)
>    * Re: decreasing program loadup time - "Alexander V. Lukyanov"
>      (18)
>    * Re: decreasing program loadup time - DJ Delorie (22)
>         o Charles Sandmann (16)
>    * Re: Text editor that can look at and edit zipped files - Eli
>      Zaretskii (9)
>    * Re: DIFF's - Eli Zaretskii (11)
>    * Xlibemu - Orlando Andico (14)
>    * DIFF's - Orlando Andico (15)
>    * Re: calling real-mode interrupt handler - Eli Zaretskii (13)
>    * Re: V2.0:confused - Eli Zaretskii (6)
>    * Re: Running djgpp 1.12m4 application under DOS 6.21 - Eli
>      Zaretskii (8)
>    * Re: GMAKE 3.71 Memory Leak? (Dos) - Eli Zaretskii (17)


---------------------------------3526311453807
Content-Transfer-Encoding: 7bit
Content-Type: text/plain

Hi,
I've been having a little trouble with the following routine which should
blitcopy a 64k buffer to vga mem (used in mode 13h).  I have set it to 
copy dwords, but this indiscriminately crashes my machine.  The confusing
thing is that when I change it to copy the buffer with just word writes,
it works fine, although obviously a bit slower.

The only thing I can think of is it might be my video card - a poor 16 bit
ISA Trident TVGA.  I believe there can be problems with 32 bit writes to
a 16 bit card.  Can anybody shed some light on this ?

note: I'm using gcc v1 with the latest maintenance release.
      0xd0000000 is where gcc maps the screen segment to.

void BlitBufferToVga (int * buffer) {  
        asm(".align 4                 ");
        asm("movl  %0,%%esi           ":: "g" (buffer) : "%esi");            
        asm("movl  $0xd0000000,%%edi  "::              : "%edi");             
        asm("movl  $16000,%%ecx       "::              : "%ecx");             
        asm("cld                      ");                        
        asm("rep                      ");                        
        asm("movsl (%%esi),(%%edi)    "::              : "%esi","%edi");       
}

PS: I know that an unrolled loop version will be faster, and I will do that
    as soon as I understand what the problem with this version is.

I would be grateful if any help was emailed rather than posted.

Thanks

Marc
mc AT dstn24 DOT dct DOT ac DOT uk


---------------------------------3526311453807--

- Raw text -


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