Changeset 46 in xtideuniversalbios for trunk/Assembly_Library/Src/String
- Timestamp:
- Oct 4, 2010, 7:38:36 AM (14 years ago)
- google:author:
- aitotat
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Assembly_Library/Src/String/String.asm
r41 r46 2 2 ; Project name : Assembly Library 3 3 ; Created date : 12.7.2010 4 ; Last update : 6.9.20104 ; Last update : 1.10.2010 5 5 ; Author : Tomi Tilli 6 6 ; Description : Functions for handling characters. … … 76 76 pop ax 77 77 ret 78 79 80 ;-------------------------------------------------------------------- 81 ; String_ConvertDSSItoLowerCase 82 ; Parameters: 83 ; DS:SI: Ptr to NULL terminated string to convert 84 ; Returns: 85 ; Nothing 86 ; Corrupts registers: 87 ; Nothing 88 ;-------------------------------------------------------------------- 89 ALIGN JUMP_ALIGN 90 String_ConvertDSSItoLowerCase: 91 push si 92 push ax 93 94 ALIGN JUMP_ALIGN 95 .ConvertNextCharacter: 96 lodsb 97 test al, al ; NULL to end string? 98 jz SHORT .EndOfString 99 call Char_ALtoLowerCaseLetter 100 mov [si-1], al 101 jmp SHORT .ConvertNextCharacter 102 103 ALIGN JUMP_ALIGN 104 .EndOfString: 105 pop ax 106 pop si 107 ret
Note:
See TracChangeset
for help on using the changeset viewer.