Originariamente inviato da Salvatore_91
Si posso richiamare i servizi dell' int21.
ma mi potreste fare un esempio?? acquinsendo una variabile
Puoi acquisire dati in un buffer dati usando la chiamata

INT 21 subfunction 0Ah

La documentazione e' la seguente

Buffered Keyboard Input
AH = 0Ah
DSX = segmentffset of the buffer nothing Reads a string of bytes from the standard input device and sends the characters to a buffer. This function echoes characters to the standard output device. The input ends when it receives a carriage return code. Uses the buffer in the following format:
Offset Size Description
00h 1 maximum number of characters (including the carriage return) buffer can hold
01h 1 number of characters
02h n actual characters read from input including the carriage return which terminated the string

Ora non ho tempo di farti l'esempio, ma la documentazione e' semplice ... PUOI PROVARCI ANCHE TU ... (almeno provarci)

Naturalmente i dati nel buffer rappresentano i valori ASCII dei tasti pressati ... se vuoi ottenere un valore numerico binario dovrai fare la trasformazione da ASCII a binario (un po' come fa la atoi del C ...)