Rev 589 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 589 | Rev 1122 | ||
---|---|---|---|
Line 166... | Line 166... | ||
166 | test al, al |
166 | test al, al |
167 | jnz @b |
167 | jnz @b |
168 | pop eax |
168 | pop eax |
169 | dec edi |
169 | dec edi |
170 | push edx ecx |
170 | push edx ecx |
- | 171 | push -'0' |
|
171 | test eax, eax |
172 | test eax, eax |
172 | jns @f |
173 | jns @f |
173 | mov byte [edi], '-' |
174 | mov byte [edi], '-' |
174 | inc edi |
175 | inc edi |
175 | neg eax |
176 | neg eax |
176 | @@: |
177 | @@: |
177 | xor edx, edx |
178 | xor edx, edx |
178 | mov ecx, 10 |
179 | mov ecx, 10 |
179 | div ecx |
180 | div ecx |
180 | add edx, '0' |
- | |
181 | mov byte [edi], dl |
- | |
182 | inc edi |
181 | push edx |
183 | test eax, eax |
182 | test eax, eax |
184 | jnz @b |
183 | jnz @b |
- | 184 | @@: |
|
185 | pop ecx edx |
185 | pop eax |
- | 186 | add al, '0' |
|
186 | stosb |
187 | stosb |
- | 188 | jnz @b |
|
- | 189 | pop ecx edx |
|
187 | jmp .ret |
190 | jmp .ret |
Line 188... | Line 191... | ||
188 | 191 | ||
189 | libini_alloc: |
192 | libini_alloc: |
190 | push ecx |
193 | push ecx |