Hi Bernd,

When the PC starts, BDA 40:96 is initially zero. As soon as the users enters some specific keys (like the arrow keys), the value at 40:96 changes to 0x10. So the BIOS seems to do some keyboard auto detection.

In Turbo Pascal's Turbo Vision, extended keyboards are detected once, upon program startup, like this:

    mov ax, 11ffh
    int 16h
    xor bl, bl
    cmp ax, 11ffh
    je  @@1
    mov bl, 10h
@@1:mov ReadKeyFunc, bl

and then keyboard functions are called like this:

    mov ah, ReadKeyFunc
    (inc ah)
    int 16h

Wouldn't the BIOS detect the extended keyboard when you call INT 16H, AH=11H? (Probably not but I though I'd ask. :-) ) Bye,

Joe


_______________________________________________
Freedos-devel mailing list
Freedos-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freedos-devel

Reply via email to