Changeset 369 in xtideuniversalbios for trunk/Assembly_Library/Src/Keyboard
- Timestamp:
- Mar 29, 2012, 9:29:28 AM (13 years ago)
- google:author:
- gregli@hotmail.com
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Assembly_Library/Src/Keyboard/Keyboard.asm
r145 r369 21 21 ;-------------------------------------------------------------------- 22 22 %ifndef EXCLUDE_FROM_XTIDE_UNIVERSAL_BIOS 23 ALIGN JUMP_ALIGN23 ALIGN KEYBOARD_JUMP_ALIGN 24 24 Keyboard_ReadUserInputtedWordWhilePrinting: 25 25 push ds … … 71 71 ;-------------------------------------------------------------------- 72 72 %ifndef EXCLUDE_FROM_XTIDE_UNIVERSAL_BIOS 73 ALIGN JUMP_ALIGN73 ALIGN KEYBOARD_JUMP_ALIGN 74 74 Keyboard_ReadUserInputtedStringToESDIWhilePrinting: 75 75 push di … … 82 82 dec cx ; Decrement buffer size for NULL 83 83 cld 84 ALIGN JUMP_ALIGN84 ALIGN KEYBOARD_JUMP_ALIGN 85 85 .GetCharacterFromUser: 86 86 call Keyboard_GetKeystrokeToAXandWaitIfNecessary ; Get ASCII to AL … … 121 121 ; AX, BX, SI 122 122 ;-------------------------------------------------------------------- 123 ALIGN JUMP_ALIGN123 ALIGN KEYBOARD_JUMP_ALIGN 124 124 .PrepareDisplayContextForKeyboardInput: 125 125 pop bx ; Pop return address to BX … … 150 150 ; AH 151 151 ;-------------------------------------------------------------------- 152 ALIGN JUMP_ALIGN152 ALIGN KEYBOARD_JUMP_ALIGN 153 153 .ProcessControlCharacter: 154 154 cmp al, CR ; ENTER to terminate string? … … 193 193 ;-------------------------------------------------------------------- 194 194 %ifndef EXCLUDE_FROM_XTIDE_UNIVERSAL_BIOS 195 ALIGN JUMP_ALIGN195 ALIGN KEYBOARD_JUMP_ALIGN 196 196 Keyboard_PrintBackspace: 197 197 mov al, BS … … 214 214 ;-------------------------------------------------------------------- 215 215 %ifndef EXCLUDE_FROM_XTIDE_UNIVERSAL_BIOS 216 ALIGN JUMP_ALIGN216 ALIGN KEYBOARD_JUMP_ALIGN 217 217 Keyboard_PlayBellForUnwantedKeystroke: 218 218 mov al, BELL … … 230 230 ;-------------------------------------------------------------------- 231 231 %ifndef EXCLUDE_FROM_XTIDE_UNIVERSAL_BIOS 232 ALIGN JUMP_ALIGN232 ALIGN KEYBOARD_JUMP_ALIGN 233 233 Keyboard_PrintInputtedCharacter: 234 234 push di … … 250 250 ;-------------------------------------------------------------------- 251 251 %ifndef EXCLUDE_FROM_XTIDE_UNIVERSAL_BIOS ; Only used when debugging 252 ALIGN JUMP_ALIGN252 ALIGN KEYBOARD_JUMP_ALIGN 253 253 Keyboard_RemoveAllKeystrokesFromBuffer: 254 254 call Keyboard_GetKeystrokeToAX … … 272 272 ; Nothing 273 273 ;-------------------------------------------------------------------- 274 ALIGN JUMP_ALIGN274 ALIGN KEYBOARD_JUMP_ALIGN 275 275 Keyboard_GetKeystrokeToAXandLeaveItToBuffer: 276 276 mov ah, CHECK_FOR_KEYSTROKE 277 277 int BIOS_KEYBOARD_INTERRUPT_16h 278 278 ret 279 ALIGN JUMP_ALIGN279 ALIGN KEYBOARD_JUMP_ALIGN 280 280 Keyboard_GetKeystrokeToAX: 281 281 call Keyboard_GetKeystrokeToAXandLeaveItToBuffer 282 282 jz SHORT Keyboard_GetKeystrokeToAXReturn 283 283 ; Fall to Keyboard_GetKeystrokeToAXandWaitIfNecessary 284 ALIGN JUMP_ALIGN284 ALIGN KEYBOARD_JUMP_ALIGN 285 285 Keyboard_GetKeystrokeToAXandWaitIfNecessary: 286 286 xor ah, ah ; GET_KEYSTROKE
Note:
See TracChangeset
for help on using the changeset viewer.