Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
| From | "Kerr Mudd-John" <admin@127.0.0.1> |
|---|---|
| Newsgroups | alt.lang.asm |
| Subject | Re: MS-DOS utility to distinguish between standard & enhanced |
| Date | 2016-12-07 07:18 +0000 |
| Organization | dis |
| Message-ID | <op.yr3akirqmsr2db@dell3100.dlink.com> (permalink) |
| References | <1480223923.367396@nyx2.nyx.net> <op.yrwup300msr2db@dell3100.dlink.com> <c1.2b8.3tWrhz$063@NOVOSAD3.EMBARQ.COM> |
On Sun, 04 Dec 2016 15:02:27 -0000, Steve <Bogus@embarq.com> wrote:
> Hi,
>
> "Kerr Mudd-John" <admin@127.0.0.1> writes:
>
> <Snip>
>> It's mostly asm. Toggles a shift key then uses an extended keyboard call
>> to see if it's changed.
>> Should be easily rewritten in asm or ascii asm for use in batch.
>
> That seems more of a test to see if the BIOS supports extended
> keyboard
> functions. The memory byte at 40H:96H should indicate a 101 keyboard is
> attached if bit 4 is set.
>
Cheers
so something like (untested)
org 0x100
mov ax,0x0040
push ds
pop ds
mov bx,0x0096
mov al,[bx]
and al,0x00010000 ; bit 4
mov ah,0x4C
int 0x21
; zero rc if not enhanced kbd
--
Bah, and indeed, Humbug
Back to alt.lang.asm | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Re: MS-DOS utility to distinguish between standard & enhanced keyboard? "Kerr Mudd-John" <admin@127.0.0.1> - 2016-12-03 19:50 +0000
Re: MS-DOS utility to distinguish between standard & enhanced Bogus@Embarq.com (Steve) - 2016-12-04 15:02 +0000
Re: MS-DOS utility to distinguish between standard & enhanced Donald G. Davis <dgdavis@blackhole.nyx.net> - 2016-12-05 19:19 +0000
Re: MS-DOS utility to distinguish between standard & enhanced Bogus@Embarq.com (Steve) - 2016-12-06 15:59 +0000
Re: MS-DOS utility to distinguish between standard & enhanced Donald G. Davis <dgdavis@blackhole.nyx.net> - 2016-12-08 20:38 +0000
Re: MS-DOS utility to distinguish between standard & enhanced "Kerr Mudd-John" <admin@127.0.0.1> - 2016-12-07 07:18 +0000
Re: MS-DOS utility to distinguish between standard & enhanced "Kerr Mudd-John" <admin@127.0.0.1> - 2016-12-07 07:19 +0000
Re: MS-DOS utility to distinguish between standard & enhanced Frank Kotler <fbkotler@myfairpoint.net> - 2016-12-07 09:24 -0500
Re: MS-DOS utility to distinguish between standard & enhanced "Kerr Mudd-John" <admin@127.0.0.1> - 2016-12-08 11:58 +0000
Re: MS-DOS utility to distinguish between standard & enhanced Frank Kotler <fbkotler@myfairpoint.net> - 2016-12-08 11:49 -0500
Re: MS-DOS utility to distinguish between standard & enhanced Melzzzzz <mel@zzzzz.com> - 2016-12-08 20:37 +0100
Re: MS-DOS utility to distinguish between standard & enhanced JJ <jj4public@vfemail.net> - 2016-12-09 06:22 +0700
Re: MS-DOS utility to distinguish between standard & enhanced Donald G. Davis <dgdavis@blackhole.nyx.net> - 2016-12-10 04:53 +0000
Re: MS-DOS utility to distinguish between standard & enhanced Rod Pemberton <NeedNotReplyHere@xrsevnneqk.cem> - 2016-12-07 19:52 -0500
csiph-web