Rev 8346 | Rev 9690 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 8346 | Rev 9682 | ||
---|---|---|---|
Line 517... | Line 517... | ||
517 | mov [ebx],dl |
517 | mov [ebx],dl |
518 | jmp .size_convert_end |
518 | jmp .size_convert_end |
519 | ;----------------------------------------- |
519 | ;----------------------------------------- |
520 | align 4 |
520 | align 4 |
521 | .copy_size: |
521 | .copy_size: |
- | 522 | ;/0x1000000000000000 - EB |
|
- | 523 | ;/0x4000000000000 - PB |
|
- | 524 | ;/0x10000000000 - TB |
|
522 | ;/0x40000000 - Gb |
525 | ;/0x40000000 - GB |
523 | ;/0x100000 - Mb |
526 | ;/0x100000 - MB |
524 | ;/0x400 Kb |
527 | ;/0x400 - KB |
525 | mov [eax+6],dword ' ' |
528 | mov [eax+6],dword ' ' |
526 | mov [eax+6+4],word ' ' |
529 | mov [eax+6+4],word ' ' |
527 | push ebx edx |
530 | push ebx edx |
528 | mov eax,[edx-40+32] |
531 | mov eax,[edx-40+32] |
529 | mov ebx,eax |
532 | mov ebx,[edx-40+32+4] |
- | 533 | ; /1024 |
|
- | 534 | shrd eax,ebx,5 ; /32 |
|
- | 535 | shr ebx,5 ; /32 |
|
- | 536 | shrd eax,ebx,5 ; /32 |
|
- | 537 | shr ebx,5 ; /32 |
|
- | 538 | ; /1024 |
|
- | 539 | shrd eax,ebx,5 ; /32 |
|
- | 540 | shr ebx,5 ; /32 |
|
- | 541 | shrd eax,ebx,5 ; /32 |
|
- | 542 | shr ebx,5 ; /32 |
|
- | 543 | ; /1024 |
|
- | 544 | shrd eax,ebx,5 ; /32 |
|
- | 545 | shr ebx,5 ; /32 |
|
- | 546 | shrd eax,ebx,5 ; /32 |
|
- | 547 | shr ebx,5 ; /32 |
|
- | 548 | ; /1024 |
|
- | 549 | shrd eax,ebx,5 ; /32 |
|
- | 550 | shr ebx,5 ; /32 |
|
- | 551 | shrd eax,ebx,5 ; /32 |
|
- | 552 | shr ebx,5 ; /32 |
|
530 | shr eax,30 ; /(1024*1024*1024) |
553 | ; /(1024*1024) |
- | 554 | shr eax,20 |
|
531 | test eax,eax |
555 | test eax,eax |
532 | jz @f |
556 | jz @f |
533 | mov dl,byte 'G' |
557 | mov dl,byte 'E' ; Exa Byte |
534 | jmp .call_decimal_string |
558 | jmp .call_decimal_string |
535 | @@: |
559 | @@: |
- | 560 | mov eax,[edx-40+32] |
|
- | 561 | mov ebx,[edx-40+32+4] |
|
- | 562 | ; /1024 |
|
- | 563 | shrd eax,ebx,5 ; /32 |
|
- | 564 | shr ebx,5 ; /32 |
|
- | 565 | shrd eax,ebx,5 ; /32 |
|
- | 566 | shr ebx,5 ; /32 |
|
- | 567 | ; /1024 |
|
- | 568 | shrd eax,ebx,5 ; /32 |
|
- | 569 | shr ebx,5 ; /32 |
|
- | 570 | shrd eax,ebx,5 ; /32 |
|
- | 571 | shr ebx,5 ; /32 |
|
- | 572 | ; /1024 |
|
- | 573 | shrd eax,ebx,5 ; /32 |
|
- | 574 | shr ebx,5 ; /32 |
|
- | 575 | shrd eax,ebx,5 ; /32 |
|
- | 576 | shr ebx,5 ; /32 |
|
- | 577 | ; /(1024*1024) |
|
- | 578 | shr eax,20 |
|
- | 579 | test eax,eax |
|
- | 580 | jz @f |
|
- | 581 | mov dl,byte 'P' ; Peta Byte |
|
- | 582 | jmp .call_decimal_string |
|
- | 583 | @@: |
|
- | 584 | mov eax,[edx-40+32] |
|
- | 585 | mov ebx,[edx-40+32+4] |
|
- | 586 | ; /1024 |
|
- | 587 | shrd eax,ebx,5 ; /32 |
|
- | 588 | shr ebx,5 ; /32 |
|
- | 589 | shrd eax,ebx,5 ; /32 |
|
- | 590 | shr ebx,5 ; /32 |
|
- | 591 | ; /1024 |
|
- | 592 | shrd eax,ebx,5 ; /32 |
|
- | 593 | shr ebx,5 ; /32 |
|
- | 594 | shrd eax,ebx,5 ; /32 |
|
- | 595 | shr ebx,5 ; /32 |
|
- | 596 | ; /(1024*1024) |
|
- | 597 | shr eax,20 |
|
- | 598 | test eax,eax |
|
- | 599 | jz @f |
|
- | 600 | mov dl,byte 'T' ; Tera Byte |
|
- | 601 | jmp .call_decimal_string |
|
- | 602 | @@: |
|
- | 603 | mov eax,[edx-40+32] |
|
- | 604 | mov ebx,[edx-40+32+4] |
|
- | 605 | ; /1024 |
|
- | 606 | shrd eax,ebx,5 ; /32 |
|
- | 607 | shr ebx,5 ; /32 |
|
- | 608 | shrd eax,ebx,5 ; /32 |
|
- | 609 | shr ebx,5 ; /32 |
|
- | 610 | ; /(1024*1024) |
|
- | 611 | shr eax,20 |
|
- | 612 | test eax,eax |
|
- | 613 | jz @f |
|
- | 614 | mov dl,byte 'G' ; Giga Byte |
|
- | 615 | jmp .call_decimal_string |
|
- | 616 | @@: |
|
- | 617 | mov eax,[edx-40+32] |
|
536 | mov eax,ebx |
618 | mov ebx,eax |
537 | shr eax,20 ; /(1024*1024) |
619 | shr eax,20 ; /(1024*1024) |
538 | test eax,eax |
620 | test eax,eax |
539 | jz @f |
621 | jz @f |
540 | mov dl,byte 'M' |
622 | mov dl,byte 'M' ; Mega Byte |
541 | jmp .call_decimal_string |
623 | jmp .call_decimal_string |
542 | @@: |
624 | @@: |
543 | mov eax,ebx |
625 | mov eax,ebx |
544 | shr eax,10 ; /1024 |
626 | shr eax,10 ; /1024 |
545 | test eax,eax |
627 | test eax,eax |
546 | jz @f |
628 | jz @f |
547 | mov dl,byte 'K' |
629 | mov dl,byte 'K' ; Kilo Byte |
548 | jmp .call_decimal_string |
630 | jmp .call_decimal_string |
549 | @@: |
631 | @@: |
550 | mov eax,ebx |
632 | mov eax,ebx |
551 | mov ebx,fb_type_table |
633 | mov ebx,fb_type_table |
552 | add ebx,6 |
634 | add ebx,6 |