Changeset 85 in xtideuniversalbios for trunk/Assembly_Library/Src/Util
- Timestamp:
- Jan 25, 2011, 4:47:03 PM (14 years ago)
- google:author:
- aitotat
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Assembly_Library/Src/Util/Size.asm
r41 r85 1 ; File name : Size.asm2 1 ; Project name : Assembly Library 3 ; Created date : 7.9.20104 ; Last update : 15.9.20105 ; Author : Tomi Tilli6 2 ; Description : Functions for size calculations. 3 4 struc BYTE_MULTIPLES 5 .B resb 1 6 .kiB resb 1 7 .MiB resb 1 8 .GiB resb 1 9 .TiB resb 1 10 endstruc 7 11 8 12 ; Section containing code … … 10 14 11 15 ;-------------------------------------------------------------------- 12 ; Size_Get WordSizeToAXfromBXDXAXwithMagnitudeInCX16 ; Size_GetSizeToAXAndCharToDLfromBXDXAXwithMagnitudeInCX 13 17 ; Parameters: 14 18 ; BX:DX:AX: Size in magnitude 15 ; CX: Magnitude (0=B, 1=kiB, 2=MiB...)19 ; CX: Magnitude in BYTE_MULTIPLES 16 20 ; Returns: 17 21 ; AX: Size in magnitude … … 52 56 ; Parameters: 53 57 ; BX:DX:AX: Size 54 ; CX: Magnitude (0=B, 1=kiB, 2=MiB...)58 ; CX: Magnitude in BYTE_MULTIPLES 55 59 ; Returns: 56 60 ; BX:DX:AX: Size in magnitude 57 61 ; SI: Remainder (0...1023) 58 ; CX: Magnitude (1=kiB, 2=MiB...)62 ; CX: Magnitude in BYTE_MULTIPLES 59 63 ; Corrupts registers: 60 64 ; Nothing … … 121 125 ; Size_GetMagnitudeCharacterToDLfromMagnitudeInCX 122 126 ; Parameters: 123 ; CX: Magnitude (0=B, 1=kiB, 2=MiB...)127 ; CX: Magnitude in BYTE_MULTIPLES 124 128 ; Returns: 125 129 ; DL: Magnitude character
Note:
See TracChangeset
for help on using the changeset viewer.