Solved

640x480x256 mode

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

What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

In this article, I show you step by step with screenshots to assist you - HOW TO: Deploy and Install the VMware vCenter Server Appliance 6.5 (VCSA 6.5), with some helpful tips along the way.
A Short Story about the Best File Recovery Software – Acronis True Image 2017
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.

760 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

Need Help in Real-Time?

Connect with top rated Experts

23 Experts available now in Live!

Get 1:1 Help Now