Solved

640x480x256 mode

Posted on 1998-11-19
5
231 Views
Last Modified: 2010-04-16
How do you clear the screen QUICKLY in mode 101h?
0
Comment
Question by:VIBESPRO
  • 4
5 Comments
 
LVL 2

Author Comment

by:VIBESPRO
ID: 1216141
I konow how to clear the screen fairly quick in 101h mode but it is not quick enough.  I use the 'fillcar' procedure in turbo pascal to clear the screen. It works, granted, but it does not fill in three lines and you can actually see it drawing over to the new colour.
0
 

Accepted Solution

by:
tothpaul earned 10 total points
ID: 1216142
you can use this (this is part of my VESA256 unit :)
try http://www.multimania.com/tothpaul/

Procedure ClearScreen; assembler;
 asm
  mov ax,GetMaxX { 640 }
  mul GetMaxY { 480 }

  mov  cx,ax   { si:cx = Total Pixels Count }
  mov  ax,dx
  mul  BankSize { 64K }
  mov  si,ax

  mov es,VesaSeg { from INT 10h AX=4F01h)

 @NextBank:
  cmp si,LastBank { local var }
  je  @NoChange
   mov LastBank,si
   mov  dx,si
   mov  bx,VesaWin { 0 or 1 }
   call VesaBnk { from INT 10h AX=4F01h : Bank switch func }
  @NoChange:
  xor ax,ax
  xor di,di

  shr cx,1
  jnc @Pair
   stosb
  @Pair:
   rep stosw

  dec cx { = $FFFF }
  sub  si,BankSize
 jns @NextBank
  @Done:
 end;


0
 
LVL 2

Author Comment

by:VIBESPRO
ID: 1216143
Hey, TOTHPAUL.

I see he know how to help me but I still don't understand ASM as yet.  I tried to use it but it still does not work.  Could you send me a small sample program, which uses your clear screen procedure, in PASCAL instead.  If you are not able to then send me it, documented, to my E-Mail address:
 
  HTTP://WWW.VIBESPRO@MAILCITY.COM/

Thanx.
0
 
LVL 2

Author Comment

by:VIBESPRO
ID: 1216144
Still waiting for your response, TOTHPAUL.
0
 
LVL 2

Author Comment

by:VIBESPRO
ID: 1216145
Hey, TOTHPAUL I found your VESA unit.
Thank You.

0

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

This article shows the steps required to install WordPress on Azure. Web Apps, Mobile Apps, API Apps, or Functions, in Azure all these run in an App Service plan. WordPress is no exception and requires an App Service Plan and Database to install
Adults who share images on social media aren’t the only ones who need to worry about their privacy. Our culture’s tendency to share every move and celebration affects the privacy of our children, too.
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…
In an interesting question (https://www.experts-exchange.com/questions/29008360/) here at Experts Exchange, a member asked how to split a single image into multiple images. The primary usage for this is to place many photographs on a flatbed scanner…

679 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question