Changeset 445 in xtideuniversalbios for trunk/Assembly_Library/Src/Util
- Timestamp:
- Aug 29, 2012, 12:59:23 PM (12 years ago)
- google:author:
- krille_n_@hotmail.com
- Location:
- trunk/Assembly_Library/Src/Util
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Assembly_Library/Src/Util/Memory.asm
r440 r445 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 … … 151 151 ; Returns: 152 152 ; AL: Sum of bytes 153 ; ZF: Set if result is zero 154 ; Cleared if result is non-zero 153 155 ; Corrupts registers: 154 156 ; CX 155 157 ;-------------------------------------------------------------------- 158 %ifndef EXCLUDE_FROM_XTIDECFG 156 159 ALIGN JUMP_ALIGN 157 160 Memory_SumCXbytesFromESSItoAL: 158 161 push si 162 dec si 159 163 xor al, al 160 164 ALIGN JUMP_ALIGN 161 165 .AddNextByteToAL: 166 inc si 162 167 add al, [es:si] 163 inc si164 168 loop .AddNextByteToAL 165 169 pop si 166 170 ret 171 %endif -
trunk/Assembly_Library/Src/Util/Sort.asm
r376 r445 7 7 8 8 ; 9 ; XTIDE Universal BIOS and Associated Tools 9 ; XTIDE Universal BIOS and Associated Tools 10 10 ; Copyright (C) 2009-2010 by Tomi Tilli, 2011-2012 by XTIDE Universal BIOS Team. 11 11 ; … … 14 14 ; the Free Software Foundation; either version 2 of the License, or 15 15 ; (at your option) any later version. 16 ; 16 ; 17 17 ; This program is distributed in the hope that it will be useful, 18 18 ; but WITHOUT ANY WARRANTY; without even the implied warranty of 19 19 ; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 20 ; GNU General Public License for more details. 20 ; GNU General Public License for more details. 21 21 ; Visit http://www.gnu.org/licenses/old-licenses/gpl-2.0.html 22 ; 22 ; 23 23 24 24 ; Algorith is from http://www.algolist.net/Algorithms/Sorting/Quicksort … … 62 62 push di 63 63 mov di, cx 64 shlcx, 1 ; Reserve temp and pivot items64 eSHL_IM cx, 1 ; Reserve temp and pivot items 65 65 add cx, BYTE QSORT_PARAMS_size 66 66 eENTER_STRUCT cx
Note:
See TracChangeset
for help on using the changeset viewer.