Rev 1396 | Rev 2455 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1396 | Rev 2288 | ||
---|---|---|---|
Line 2... | Line 2... | ||
2 | ;; ;; |
2 | ;; ;; |
3 | ;; Copyright (C) KolibriOS team 2004-2007. All rights reserved. ;; |
3 | ;; Copyright (C) KolibriOS team 2004-2007. All rights reserved. ;; |
4 | ;; Distributed under terms of the GNU General Public License ;; |
4 | ;; Distributed under terms of the GNU General Public License ;; |
5 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |
5 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |
Line 6... | Line 6... | ||
6 | 6 | ||
Line 7... | Line 7... | ||
7 | $Revision: 1396 $ |
7 | $Revision: 2288 $ |
Line 8... | Line 8... | ||
8 | 8 | ||
9 | _esp equ esp |
9 | _esp equ esp |
Line 250... | Line 250... | ||
250 | debug_endf |
250 | debug_endf |
Line 251... | Line 251... | ||
251 | 251 | ||
252 | debug_func fdo_debug_outstr |
252 | debug_func fdo_debug_outstr |
253 | debug_beginf |
253 | debug_beginf |
- | 254 | mov eax, 1 |
|
254 | mov eax,1 |
255 | .l1: |
255 | .l1: dec esi |
256 | dec esi |
256 | js .l2 |
257 | js .l2 |
257 | movzx ebx,byte[edx] |
258 | movzx ebx, byte[edx] |
258 | or bl,bl |
259 | or bl, bl |
259 | jz .l2 |
260 | jz .l2 |
260 | mov ecx,sys_msg_board |
261 | mov ecx, sys_msg_board |
261 | call ecx ; sys_msg_board |
262 | call ecx ; sys_msg_board |
262 | inc edx |
263 | inc edx |
- | 264 | jmp .l1 |
|
263 | jmp .l1 |
265 | .l2: |
264 | .l2: ret |
266 | ret |
Line 265... | Line 267... | ||
265 | debug_endf |
267 | debug_endf |
266 | 268 | ||
267 | debug_func fdo_debug_outdec |
269 | debug_func fdo_debug_outdec |
Line 273... | Line 275... | ||
273 | neg eax |
275 | neg eax |
274 | push eax |
276 | push eax |
275 | mov al,'-' |
277 | mov al, '-' |
276 | call fdo_debug_outchar |
278 | call fdo_debug_outchar |
277 | pop eax |
279 | pop eax |
- | 280 | @@: |
|
278 | @@: push 10 |
281 | push 10 |
279 | pop ecx |
282 | pop ecx |
280 | push -'0' |
283 | push -'0' |
- | 284 | .l1: |
|
281 | .l1: xor edx,edx |
285 | xor edx, edx |
282 | div ecx |
286 | div ecx |
283 | push edx |
287 | push edx |
284 | test eax,eax |
288 | test eax, eax |
285 | jnz .l1 |
289 | jnz .l1 |
- | 290 | .l2: |
|
286 | .l2: pop eax |
291 | pop eax |
287 | add al,'0' |
292 | add al, '0' |
288 | jz .l3 |
293 | jz .l3 |
289 | call fdo_debug_outchar |
294 | call fdo_debug_outchar |
290 | jmp .l2 |
295 | jmp .l2 |
- | 296 | .l3: |
|
291 | .l3: ret |
297 | ret |
292 | debug_endf |
298 | debug_endf |
Line 293... | Line 299... | ||
293 | 299 | ||
294 | debug_func fdo_debug_outhex |
300 | debug_func fdo_debug_outhex |
295 | __fdo_hexdigits db '0123456789ABCDEF' |
301 | __fdo_hexdigits db '0123456789ABCDEF' |
296 | debug_beginf |
302 | debug_beginf |
297 | mov cl,dl |
303 | mov cl, dl |
298 | neg cl |
304 | neg cl |
299 | add cl,8 |
305 | add cl, 8 |
300 | shl cl,2 |
306 | shl cl, 2 |
- | 307 | rol eax, cl |
|
301 | rol eax,cl |
308 | .l1: |
302 | .l1: rol eax,4 |
309 | rol eax, 4 |
303 | push eax |
310 | push eax |
304 | and eax,0x0000000F |
311 | and eax, 0x0000000F |
305 | mov al,[__fdo_hexdigits+eax] |
312 | mov al, [__fdo_hexdigits+eax] |
306 | call fdo_debug_outchar |
313 | call fdo_debug_outchar |