Solved

640x480x256 mode

Posted on 1998-11-19
5
233 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 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

[Webinar] Learn How Hackers Steal Your Credentials

Do You Know How Hackers Steal Your Credentials? Join us and Skyport Systems to learn how hackers steal your credentials and why Active Directory must be secure to stop them. Thursday, July 13, 2017 10:00 A.M. PDT

Question has a verified solution.

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

Let's recap what we learned from yesterday's Skyport Systems webinar.
This article outlines the struggles that Macs encounter in Windows-dominated workplace environments – and what Mac users can do to improve their network connectivity and remain productive.
Michael from AdRem Software outlines event notifications and Automatic Corrective Actions in network monitoring. Automatic Corrective Actions are scripts, which can automatically run upon discovery of a certain undesirable condition in your network.…
This tutorial will teach you the special effect of super speed similar to the fictional character Wally West aka "The Flash" After Shake : http://www.videocopilot.net/presets/after_shake/ All lightning effects with instructions : http://www.mediaf…
Suggested Courses

630 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