Changeset 623 in xtideuniversalbios for trunk/Assembly_Library/Src
- Timestamp:
- Jun 15, 2022, 2:48:59 PM (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Assembly_Library/Src/Util/Memory.asm
r621 r623 66 66 67 67 ;-------------------------------------------------------------------- 68 ; Memory_ZeroSSBPwithSizeInCX69 ; Parameters70 ; CX: Number of bytes to zero71 ; SS:BP: Ptr to buffer to zero72 ; Returns:73 ; Nothing74 ; Corrupts registers:75 ; CX76 ;--------------------------------------------------------------------77 %ifdef INCLUDE_MENU_LIBRARY78 ALIGN JUMP_ALIGN79 Memory_ZeroSSBPwithSizeInCX:80 push es81 push di82 push ax83 call Registers_CopySSBPtoESDI84 call Memory_ZeroESDIwithSizeInCX85 pop ax86 pop di87 pop es88 ret89 %endif90 91 92 ;--------------------------------------------------------------------93 68 ; Memory_ZeroESDIwithSizeInCX 94 69 ; Parameters … … 119 94 OPTIMIZE_STRING_OPERATION stos 120 95 ret 96 97 98 ;-------------------------------------------------------------------- 99 ; Memory_ZeroSSBPwithSizeInCX 100 ; Parameters 101 ; CX: Number of bytes to zero 102 ; SS:BP: Ptr to buffer to zero 103 ; Returns: 104 ; Nothing 105 ; Corrupts registers: 106 ; CX 107 ;-------------------------------------------------------------------- 108 %ifdef INCLUDE_MENU_LIBRARY 109 ALIGN JUMP_ALIGN 110 Memory_ZeroSSBPwithSizeInCX: 111 push es 112 push di 113 push ax 114 call Registers_CopySSBPtoESDI 115 call Memory_ZeroESDIwithSizeInCX 116 pop ax 117 pop di 118 pop es 119 ret 120 %endif 121 121 122 122
Note:
See TracChangeset
for help on using the changeset viewer.