Date: Sun, 14 Sep 1997 10:37:53 -0700 (PDT) Message-Id: <199709141737.KAA09990@adit.ap.net> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" To: dskrobo AT jagor DOT srce DOT hr (Daniel Skrobo), djgpp AT delorie DOT com From: Nate Eldredge Subject: Re: HELP. SVGA! Precedence: bulk At 11:26 9/12/1997 GMT, Daniel Skrobo wrote: >Ok,.. > Some days ago i asked for the code that flips allocated mem to VGA (in >pure inline djgpp asm) and now i have what i need. I thought that this >code will work in all VIDEO MODES, but i was WRONG. > Now, since i programmed in real mode i thought that if you put something >in VIDEO MEMORY that will be displayed in all MODES, but it works only in >320x200x256. > So, now I ask for code that will 'warp' allocated memory (malloc) to >screen (the code should be in pure asm - because this is the best way to >understand it). I know that this can be done using 'movedata.h', so please >post me any suggestions (as i said the code should be in asm but if there >is some other way please tell me (it would be best that the routine is >32bit)) Well, movedata is assembler itself, so it's likely to be just about as fast as you're going to get. If the size will be an even multiple of 4 bytes, you can use movedatal instead, which may be marginally faster, since it doesn't have to check for extra bytes. At the lowest level is __dj_movedata. You could take its source if you want to use it in inline asm, and you can modify it if you feel it's necessary. After unzipping the djlsr201.zip package, its source will be in src/libc/pc_hw/mem/djmd.S HTH Nate Eldredge eldredge AT ap DOT net