Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

640x480x256 mode

Posted on 1998-11-19
5
Medium Priority
?
235 Views
Last Modified: 2010-04-16
How do you clear the screen QUICKLY in mode 101h?
0
Comment
Question by:VIBESPRO
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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 40 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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

The online market is growing at an unprecedented rate and retail eCommerce sales are expected to reach $4 trillion by 2020. Yet, the profit is not just there for the taking because you have to set yourself apart from the competition.
On September 18, Experts Exchange launched the first installment of the Help Bell, a new feature for Premium Members, Team Accounts, and Qualified Experts. The Help Bell will serve as an additional tool to help teams increase question visibility.
Monitoring a network: how to monitor network services and why? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the philosophy behind service monitoring and why a handshake validation is critical in network monitoring. Software utilized …
We’ve all felt that sense of false security before—locking down external access to a database or component and feeling like we’ve done all we need to do to secure company data. But that feeling is fleeting. Attacks these days can happen in many w…
Suggested Courses

705 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