Changeset 124 for trunk/bootcode/regular/other.asm
- Timestamp:
- Apr 8, 2017, 12:27:24 AM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bootcode/regular/other.asm
r123 r124 639 639 ; Check if a loaded sector is all zeros 640 640 ;------------------------------------------------------------------------------ 641 ; IN : BX pointer to memblock641 ; IN : SI pointer to sector buffer 642 642 ; OUT : ZF=1 block if all zeros 643 643 ; NOTE : Segment used is DS 644 644 ;------------------------------------------------------------------------------ 645 IsSectorZero Proc Near Uses cx 645 IsSectorBufferZero Proc Near Uses bx cx 646 mov bx, si ; Address of sector buffer 646 647 mov cx, sector_size ; Normal size of a sector (512 bytes) 647 648 call IsMemBlockZero ; Check the memory block 648 649 ret 649 IsSector ZeroEndP650 IsSectorBufferZero EndP 650 651 651 652 ;------------------------------------------------------------------------------ … … 685 686 ; Clears a sector buffer 686 687 ;------------------------------------------------------------------------------ 687 ; IN : BXpointer to sector buffer688 ; IN : SI pointer to sector buffer 688 689 ; OUT : Nothing 689 690 ; NOTE : Segment used is DS 690 691 ;------------------------------------------------------------------------------ 691 ClearSectorBuffer Proc Near Uses cx 692 ClearSectorBuffer Proc Near Uses bx cx 693 mov bx, si ; Address of sector buffer 692 694 mov cx, sector_size ; Normal size of a sector (512 bytes) 693 695 call ClearMemBlock ; Clear the sector buffer
Note:
See TracChangeset
for help on using the changeset viewer.