Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > alt.lang.asm > #6773

Re: MS-DOS utility to distinguish between standard & enhanced

From Rod Pemberton <NeedNotReplyHere@xrsevnneqk.cem>
Newsgroups alt.lang.asm
Subject Re: MS-DOS utility to distinguish between standard & enhanced
Date 2016-12-07 19:52 -0500
Organization Aioe.org NNTP Server
Message-ID <20161207195247.08f299a9@_> (permalink)
References <1480223923.367396@nyx2.nyx.net> <op.yrwup300msr2db@dell3100.dlink.com> <c1.2b8.3tWrhz$063@NOVOSAD3.EMBARQ.COM> <op.yr3akirqmsr2db@dell3100.dlink.com>

Show all headers | View raw


On Wed, 07 Dec 2016 07:18:08 -0000
"Kerr Mudd-John" <admin@127.0.0.1> wrote:

> On Sun, 04 Dec 2016 15:02:27 -0000, Steve <Bogus@embarq.com> wrote:
> > "Kerr Mudd-John" <admin@127.0.0.1> writes:

> >> 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.
> >  
> 
> org 0x100
> 
> mov ax,0x0040
> push ds
> pop ds
> mov bx,0x0096
> mov al,[bx]
> and al,0x00010000           ; bit 4

Wot?
(I'm following Frank's lead on "push ax".)

Don't mix hex and binary.

For hex, you'll want 0x10 for bit 4.
For binary, you'll want 00010000b for bit 4.


Rod Pemberton

Back to alt.lang.asm | Previous | NextPrevious in thread | Find similar | Unroll thread


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