Changeset 103 in xtideuniversalbios for trunk/Assembly_Library/Src/Util
- Timestamp:
- Feb 2, 2011, 1:33:48 AM (14 years ago)
- google:author:
- krille_n_@hotmail.com
- Location:
- trunk/Assembly_Library/Src/Util
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Assembly_Library/Src/Util/Bit.asm
r41 r103 1 ; File name : Bit.asm2 1 ; Project name : Assembly Library 3 ; Created date : 3.9.20104 ; Last update : 3.9.20105 ; Author : Tomi Tilli6 2 ; Description : Functions for bit handling. 7 3 … … 51 47 shr ax, 1 52 48 jz SHORT .LastBitInCF 53 adc c x, BYTE 049 adc cl, ch 54 50 jmp SHORT .BitScanLoop 55 51 ALIGN JUMP_ALIGN 56 52 .LastBitInCF: 57 adc c x, BYTE 053 adc cl, ch 58 54 59 55 pop ax -
trunk/Assembly_Library/Src/Util/Memory.asm
r54 r103 1 ; File name : Memory.asm2 1 ; Project name : Assembly Library 3 ; Created date : 14.7.20104 ; Last update : 24.10.20105 ; Author : Tomi Tilli6 2 ; Description : Functions for memory access. 7 3 … … 26 22 27 23 shr cx, 1 ; Operate with WORDs for performance 28 j cxz %%HandleRemainingByte24 jz %%HandleRemainingByte 29 25 %1 %2w 30 26 %%HandleRemainingByte: … … 70 66 push di 71 67 push ax 72 callRegisters_CopySSBPtoESDI68 Registers_CopySSBPtoESDI 73 69 call Memory_ZeroESDIwithSizeInCX 74 70 pop ax -
trunk/Assembly_Library/Src/Util/Registers.asm
r66 r103 1 ; File name : Registers.asm2 1 ; Project name : Assembly Library 3 ; Created date : 24.10.20104 ; Last update : 6.12.20105 ; Author : Tomi Tilli6 2 ; Description : Functions for register operations. 7 3 … … 90 86 ; Nothing 91 87 ;-------------------------------------------------------------------- 92 ALIGN JUMP_ALIGN 93 Registers_CopySSBPtoESDI: 88 %macro Registers_CopySSBPtoESDI 0 94 89 push ss 95 90 pop es 96 91 mov di, bp 97 ret 92 %endmacro 98 93 99 ALIGN JUMP_ALIGN 100 Registers_CopySSBPtoDSSI: 94 %macro Registers_CopySSBPtoDSSI 0 101 95 push ss 102 96 pop ds 103 97 mov si, bp 104 ret 98 %endmacro 105 99 106 ALIGN JUMP_ALIGN 107 Registers_CopyDSSItoESDI: 100 %macro Registers_CopyDSSItoESDI 0 108 101 push ds 109 102 pop es 110 103 mov di, si 111 ret 104 %endmacro 112 105 113 ALIGN JUMP_ALIGN 114 Registers_CopyESDItoDSSI: 106 %macro Registers_CopyESDItoDSSI 0 115 107 push es 116 108 pop ds 117 109 mov si, di 118 ret 110 %endmacro 119 111 120 112
Note:
See TracChangeset
for help on using the changeset viewer.