Re: Software for MS-DOS 1.25

From: smf <smf_at_null.net>
Date: Fri, 20 Oct 2017 11:52:52 +0100
Message-ID: <bcd5fec9-dcce-2b2d-3b6c-79df51213bc7@null.net>
Sorry, I meant "Keyboard Intercept (INT 15h, Function AH =4Fh)"

As each key is pressed the INT 09h handler calls INT 15H with AH=4FH. 
You could then just set a bool and check that in your main loop.

That would be more useful if you wanted to wait for any key as you can 
also trap keys that don't make it into the keyboard buffer as a key press.

Looking at the bios keyboard key head/tail pointers was common though, 
it would be worth making sure that was compatible anyway. Some software 
even changes them and pokes keys into the buffer, to simulate key presses.

On 20/10/2017 11:41, Michał Pleban wrote:
> smf wrote:
>
>> Or by using the key preview callback (which was an AT BIOS feature, but
>> we could potentially support that).
> Where would that callback be? There is INT 16h function 1 which appears
> to preview a key in the buffer, but it's an original PC AT function.
>
> Regards,
> Michau.
>
>
>
>
>
>
>         Message was sent through the cbm-hackers mailing list


       Message was sent through the cbm-hackers mailing list
Received on 2017-10-20 11:02:29

Archive generated by hypermail 2.2.0.