Changeset 491 in xtideuniversalbios for trunk/Assembly_Library/Src/String
- Timestamp:
- Dec 15, 2012, 2:46:29 PM (12 years ago)
- google:author:
- krille_n_@hotmail.com
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Assembly_Library/Src/String/Char.asm
r489 r491 3 3 4 4 ; 5 ; XTIDE Universal BIOS and Associated Tools 5 ; XTIDE Universal BIOS and Associated Tools 6 6 ; Copyright (C) 2009-2010 by Tomi Tilli, 2011-2012 by XTIDE Universal BIOS Team. 7 7 ; … … 10 10 ; the Free Software Foundation; either version 2 of the License, or 11 11 ; (at your option) any later version. 12 ; 12 ; 13 13 ; This program is distributed in the hope that it will be useful, 14 14 ; but WITHOUT ANY WARRANTY; without even the implied warranty of 15 15 ; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 16 ; GNU General Public License for more details. 16 ; GNU General Public License for more details. 17 17 ; Visit http://www.gnu.org/licenses/old-licenses/gpl-2.0.html 18 ; 18 ; 19 19 20 20 ; Section containing code … … 29 29 ; %3: Last accepted value in range 30 30 ; Returns: 31 ; CF: Set if character i srange31 ; CF: Set if character in range 32 32 ; (Jumps to Char_CharIsNotValid if before range) 33 33 ; Corrupts registers: … … 51 51 ; Nothing 52 52 ;-------------------------------------------------------------------- 53 %ifdef EXCLUDE_FROM_XTIDE_UNIVERSAL_BIOS 54 %ifndef MODULE_HOTKEYS 55 %define EXCLUDE 56 %endif 57 %endif 58 59 %ifndef EXCLUDE 53 60 ALIGN STRING_JUMP_ALIGN 54 61 Char_IsLowerCaseLetterInAL: 55 62 IS_BETWEEN_IMMEDIATES al, 'a', 'z' 56 63 ret 64 %endif 65 %undef EXCLUDE 66 57 67 58 68 ;-------------------------------------------------------------------- … … 72 82 ret 73 83 %endif 84 74 85 75 86 ;-------------------------------------------------------------------- … … 94 105 %endif 95 106 107 96 108 ;-------------------------------------------------------------------- 97 109 ; Char_IsDecimalDigitInAL … … 110 122 ret 111 123 %endif 124 112 125 113 126 ;-------------------------------------------------------------------- … … 141 154 %endif 142 155 156 143 157 ;-------------------------------------------------------------------- 144 158 ; Char_CharIsValid … … 159 173 %endif 160 174 175 176 %ifdef EXCLUDE_FROM_XTIDE_UNIVERSAL_BIOS 177 %ifndef MODULE_HOTKEYS 178 %define EXCLUDE 179 %endif 180 %ifndef MODULE_STRINGS_COMPRESSED 181 %undef EXCLUDE 182 %endif 183 %endif 184 185 %ifndef EXCLUDE 161 186 ALIGN STRING_JUMP_ALIGN 162 187 Char_CharIsNotValid: 163 188 clc 164 189 ret 190 %endif 191 %undef EXCLUDE 165 192 166 193 … … 181 208 %endif 182 209 183 210 184 211 ;-------------------------------------------------------------------- 185 212 ; Char_ALtoUpperCaseLetter … … 191 218 ; Nothing 192 219 ;-------------------------------------------------------------------- 193 %ifndef EXCLUDE_FROM_XTIDE_UNIVERSAL_BIOS 220 %ifndef EXCLUDE_FROM_XTIDE_UNIVERSAL_BIOS 194 221 ALIGN STRING_JUMP_ALIGN 195 222 Char_ALtoUpperCaseLetter: … … 200 227 %endif 201 228 202 229 203 230 ;-------------------------------------------------------------------- 204 231 ; Char_ChangeCaseInAL … … 210 237 ; Nothing 211 238 ;-------------------------------------------------------------------- 239 %ifndef EXCLUDE_FROM_XTIDE_UNIVERSAL_BIOS 212 240 Char_ChangeCaseInAL: 213 241 xor al, 32 214 242 .Return: 215 243 ret 244 %endif 245 216 246 217 247 ;--------------------------------------------------------------------
Note:
See TracChangeset
for help on using the changeset viewer.