Changeset 41654 in vbox
- Timestamp:
- Jun 11, 2012 3:15:09 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/PC/BIOS-new/support.asm
r41653 r41654 86 86 push edx 87 87 push ecx 88 push ebx89 88 90 89 rol eax, 16 … … 98 97 mul ecx ; eax * ecx -> edx:eax 99 98 100 pop ebx101 99 pop ecx 102 100 … … 115 113 ; memset taking a far pointer. 116 114 ; 115 ; cx, es may be modified; di is preserved 116 ; 117 117 ; @returns dx:ax unchanged. 118 118 ; @param dx:ax Pointer to the memory. … … 121 121 ; 122 122 _fmemset_: 123 push es124 123 push di 125 push cx126 pushf127 124 128 125 mov es, dx … … 132 129 xchg al, bl 133 130 134 popf135 pop cx136 131 pop di 137 pop es138 132 ret 139 133 … … 141 135 ;; 142 136 ; memset taking far pointers. 137 ; 138 ; cx, es may be modified; si, di are preserved 143 139 ; 144 140 ; @returns dx:ax unchanged. … … 150 146 push bp 151 147 mov bp, sp 152 push es153 148 push di 154 149 push ds 155 150 push si 156 push cx157 popf158 151 159 152 mov es, dx … … 164 157 rep movsb 165 158 166 pushf167 pop cx168 159 pop si 169 160 pop ds 170 161 pop di 171 pop es172 162 leave 173 163 ret
Note:
See TracChangeset
for help on using the changeset viewer.