Changeset 52 in xtideuniversalbios for trunk/Assembly_Library/Src/Keyboard
- Timestamp:
- Oct 12, 2010, 6:51:07 PM (14 years ago)
- google:author:
- aitotat
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Assembly_Library/Src/Keyboard/Keyboard.asm
r48 r52 2 2 ; Project name : Assembly Library 3 3 ; Created date : 5.7.2010 4 ; Last update : 7.10.20104 ; Last update : 12.10.2010 5 5 ; Author : Tomi Tilli 6 6 ; Description : Functions for managing keyboard. … … 26 26 ALIGN JUMP_ALIGN 27 27 Keyboard_ReadUserInputtedWordWhilePrinting: 28 push es29 push di28 push ds 29 push si 30 30 push cx 31 31 32 eENTER_STRUCT BUFFER_SIZE_FOR_WORD_INPUT33 call Memory_CopySSBPtoESDI34 35 32 mov cx, BUFFER_SIZE_FOR_WORD_INPUT 33 call Memory_ReserveCXbytesFromStackToDSSI 34 36 35 call Char_GetFilterFunctionToDXforNumericBaseInBX 36 call Memory_ExchangeDSSIwithESDI 37 37 call Keyboard_ReadUserInputtedStringToESDIWhilePrinting 38 jz SHORT .Return39 40 call Memory_ExchangeDSSIwithESDI 38 call Memory_ExchangeDSSIwithESDI ; Does not modify FLAGS 39 jz SHORT .CancelledByUser 40 41 41 call String_ConvertWordToAXfromStringInDSSIwithBaseInBX 42 call Memory_ExchangeDSSIwithESDI 43 .Return: 44 eLEAVE_STRUCT BUFFER_SIZE_FOR_WORD_INPUT 42 .CancelledByUser: 43 add sp, BYTE BUFFER_SIZE_FOR_WORD_INPUT 45 44 test cx, cx ; Set ZF if string length is zero 46 45 pop cx 47 pop di48 pop es46 pop si 47 pop ds 49 48 ret 50 49
Note:
See TracChangeset
for help on using the changeset viewer.