Changeset 162 in xtideuniversalbios for trunk/Assembly_Library/Src/String/StringProcess.asm
- Timestamp:
- May 28, 2011, 7:34:42 PM (14 years ago)
- google:author:
- krille_n_@hotmail.com
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Assembly_Library/Src/String/StringProcess.asm
r67 r162 1 ; File name : StringProcess.asm2 1 ; Project name : Assembly Library 3 ; Created date : 12.10.20104 ; Last update : 7.12.20105 ; Author : Tomi Tilli6 2 ; Description : Functions for processing characters in a string. 7 3 … … 33 29 ; CX: Number of characters processed 34 30 ; CF: Clear if all characters processed 35 ; Set if terminated by processing function 31 ; Set if terminated by processing function 36 32 ; Corrupts registers: 37 33 ; Nothing (processing function can corrupt BX,DI,ES) … … 91 87 StringProcess_ConvertToWordInDIWithBaseInBX: 92 88 call Char_ConvertIntegerToALfromDigitInALwithBaseInBX 93 jnc SHORT .InvalidCharacter 89 cmc 90 jc SHORT .InvalidCharacter 94 91 push dx 95 92 … … 99 96 jc SHORT .Overflow 100 97 add di, ax ; Add old WORD to new integer 101 jc SHORT .Overflow102 98 103 pop dx104 ret105 99 .Overflow: 106 100 pop dx 107 101 .InvalidCharacter: 108 stc ; Set CF to stop processing109 102 ret
Note:
See TracChangeset
for help on using the changeset viewer.