Changeset 491 in xtideuniversalbios for trunk/Assembly_Library/Src/Util
- Timestamp:
- Dec 15, 2012, 2:46:29 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/Registers.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 21 21 SECTION .text … … 52 52 ; Nothing 53 53 ;-------------------------------------------------------------------- 54 %ifdef INCLUDE_MENU_LIBRARY 54 55 ALIGN JUMP_ALIGN 55 %ifdef INCLUDE_MENU_LIBRARY56 56 Registers_CopySSBPtoESDI: 57 57 COPY_SSBP_TO_ESDI -
trunk/Assembly_Library/Src/Util/Size.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 %ifdef INCLUDE_MENU_LIBRARY … … 68 68 ; Convert remainder to tenths 69 69 xchg bx, ax ; Store AX 70 mov ax, 10 71 mul cx ; DX:AX = remainder * 10 72 eSHR_IM ax, 10 ; Divide AX by 1024 70 mov ax, 5 71 mul cx ; DX:AX = remainder * (10 / 2) 72 %ifdef USE_186 73 shr ax, 9 ; Divide AX by (1024 / 2) 74 %else 75 shr ax, 1 76 mov al, ah 77 cbw 78 %endif 73 79 xchg cx, ax ; CX = tenths 74 80 xchg ax, bx … … 124 130 ;-------------------------------------------------------------------- 125 131 ALIGN UTIL_SIZE_JUMP_ALIGN 126 Size_ConvertSectorCountInBXDXAXtoKiB: 132 Size_ConvertSectorCountInBXDXAXtoKiB: ; unused entrypoint ok 127 133 Size_DivideBXDXAXbyTwo: 128 134 shr bx, 1 ; Divide sector count by 2...
Note:
See TracChangeset
for help on using the changeset viewer.