Forums before death by AOL, social media and spammers... "We can't have nice things"
|    comp.lang.asm.x86    |    Ahh, the lost art of x86 assembly    |    4,675 messages    |
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
|    Message 3,419 of 4,675    |
|    Bernhard Schornak to bilsch    |
|    Re: How do I detect Ctrl+Z keystroke? An    |
|    27 May 18 12:01:58    |
      From: schornak@nospicedham.web.de              bilsch wrote:                     > On 05/25/2018 12:38 AM, Bernhard Schornak wrote:       >> bilsch wrote:       >>       >>       >>> I want Ctrl+Z, Ctrl+S etc. as inputs to a program. I researched it a bit       but didn't find       >>> anything to build on. Does anyone know of an example? My program doesn't       use an operating system.       >>       >>       >> Evaluate the keyboard flags returned by INT 16h, function 10h/11h:                     Correction: Should have been 12h, not 11h. I didn't used this stuff       the last 25 years, so my apologies for the wrong function number.                     >> Bit flag       >>       >> 00 right shift       >> 01 left shift       >> 02 shift + control       >> 03 shift + alt       >> 04 scroll locked       >> 05 num locked       >> 06 caps locked       >> 07 insert       >> 08 left control       >> 09 left alt       >> 0A right control       >> 0B right alt       >> 0C scroll pressed       >> 0D num pressed       >> 0E caps pressed       >> 0F sys request       >>       >>       >> Greetings from Augsburg       >>       >> Bernhard Schornak       >       > Thanks. These bits are in al or ah? I can't find the ref anywhere.                     00...0F are 16 bits used as "flags". AL and AH are 8 bit registers.       I guess, 16 bits will not fit into one of both (AL or AH). Try with       AX (hint: the lower 8 bit are stored in AL, the upper 8 bit in AH).              http://www.ctyme.com/intr/int-16.htm              My table is stored in two different places (functions 02h and 12h),       the Keystroke itself can be obtained with function 10h.              (If you assume your users might use keyboards designed for original       8086 PCs, you have to check that, too - those keyboards do not have       the "extended" keys.)                     Greetings from Augsburg              Bernhard Schornak              --- SoupGate-Win32 v1.05        * Origin: you cannot sedate... all the things you hate (1:229/2)    |
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
(c) 1994, bbs@darkrealms.ca