Ignore:
Timestamp:
Apr 8, 2017, 12:27:24 AM (8 years ago)
Author:
Ben Rietbroek
Message:

Use SI instead of BX for actions on sector buffers [v1.1.1-testing]

CAUTION:
This is a testbuild !
AirBoot uses the BIOS to access disks and a small coding error can trash
partition tables or other vital disk structures. You are advised to make
backups of TRACK0 and EBRs before using this testbuild. More info at:
https://rousseaux.github.io/netlabs.air-boot/pdf/AirBoot-v1.1.0-manual.pdf

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bootcode/regular/other.asm

    r123 r124  
    639639; Check if a loaded sector is all zeros
    640640;------------------------------------------------------------------------------
    641 ; IN    : BX pointer to memblock
     641; IN    : SI pointer to sector buffer
    642642; OUT   : ZF=1 block if all zeros
    643643; NOTE  : Segment used is DS
    644644;------------------------------------------------------------------------------
    645 IsSectorZero    Proc    Near    Uses cx
     645IsSectorBufferZero  Proc    Near    Uses bx cx
     646        mov     bx, si          ; Address of sector buffer
    646647        mov     cx, sector_size ; Normal size of a sector (512 bytes)
    647648        call    IsMemBlockZero  ; Check the memory block
    648649        ret
    649 IsSectorZero    EndP
     650IsSectorBufferZero  EndP
    650651
    651652;------------------------------------------------------------------------------
     
    685686; Clears a sector buffer
    686687;------------------------------------------------------------------------------
    687 ; IN    : BX pointer to sector buffer
     688; IN    : SI pointer to sector buffer
    688689; OUT   : Nothing
    689690; NOTE  : Segment used is DS
    690691;------------------------------------------------------------------------------
    691 ClearSectorBuffer   Proc    Near    Uses cx
     692ClearSectorBuffer   Proc    Near    Uses bx cx
     693        mov     bx, si              ; Address of sector buffer
    692694        mov     cx, sector_size     ; Normal size of a sector (512 bytes)
    693695        call    ClearMemBlock       ; Clear the sector buffer
Note: See TracChangeset for help on using the changeset viewer.