Re: BASIC for the CBM-II/8088

From: smf <smf_at_null.net>
Date: Fri, 6 Jul 2018 17:58:46 +0100
Message-ID: <3ae5d7ea-776f-7ab2-b1dc-cc326162e0bd@null.net>
scrolling and clearing can be done with the same int 10h call

Scroll up window 	AH=06h 	AL = lines to scroll (0 = clear, CH, CL, DH, 
DL are used),

BH = Background Color and Foreground color. BH = 43h, means that 
background color is red and foreground color is cyan. Refer theBIOS 
color attributes <https://en.wikipedia.org/wiki/BIOS_color_attributes>

CH = Upper row number, CL = Left column number, DH = Lower row number, 
DL = Right column number

	
Scroll down window 	AH=07h 	like above


It'll probably not be as fast as directly writing to the screen, but 
much faster than an int 10h loop

examples here:

http://www.shsu.edu/~csc_tjm/fall2000/cs272/ch7.html


On 06/07/2018 14:10, Baltissen, GJPAA (Ruud) wrote:
> Hallo allemaal,
>
>
> Update:
>
>> The next code:
>> .....
>> needs about 2 seconds to clear a screen;
> As I said before, I learn something in the process as well.
>
> I also found out that I used direct screen accesses for doing my own scrolling. Reading a character using INT 10h and writing it to the next or previous line would take even longer than 2 seconds IMHO. But having seen Michał's CBM-II in action, I knew I had something wrong. Studying some INT 10h documents I noticed some routines for scrolling. One could be even used to clear the screen according its documentation. And yes indeed, it works like a charm! It is less faster than the direct access method but better than I expected.
>
>
> Met vriendelijke groet / With kind regards, Ruud Baltissen
>
> www.Baltissen.org
>   
>
> De informatie in dit e-mailbericht is vertrouwelijk en uitsluitend bestemd voor de
> geadresseerde. Wanneer u dit bericht per abuis ontvangt, verzoeken wij u contact op te
> nemen met de afzender per kerende e-mail. Verder verzoeken wij u in dat geval dit
> e-mailbericht te vernietigen en de inhoud ervan aan niemand openbaar te maken.
> Wij aanvaarden geen aansprakelijkheid voor onjuiste, onvolledige dan wel ontijdige
> overbrenging van de inhoud van een verzonden e-mailbericht, noch voor daarbij
> overgebrachte virussen.
>
> APG Groep N.V. is gevestigd te Heerlen en is ingeschreven in het
> handelsregister van de Kamer van Koophandel Limburg onder nummer 14099617
>
>
> The information contained in this e-mail is confidential and may be privileged.
> It may be read, copied and used only by the intended recipient.
> If you have received it in error, please contact the sender immediately by
> return e-mail; please delete in this case the e-mail and do not disclose its
> contents to any person. We don't accept liability for any errors, omissions,
> delays of receipt or viruses in the contents of this message which arise as a
> result of e-mail transmission.
>
> APG Groep N.V. is registered in the trade register of the Chamber
> of Commerce Limburg, The Netherlands, registration number: 14099617
Received on 2018-07-06 20:00:04

Archive generated by hypermail 2.2.0.