Changeset 157 in xtideuniversalbios


Ignore:
Timestamp:
May 1, 2011, 8:34:29 PM (14 years ago)
Author:
krille_n_@…
google:author:
krille_n_@hotmail.com
Message:

Changes to the XTIDE Universal BIOS:

  • Size optimizations in IdeTransfer.asm and IdeCommand.asm (saved 12 bytes).
Location:
trunk/XTIDE_Universal_BIOS/Src
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/XTIDE_Universal_BIOS/Src/Device/IDE/IdeCommand.asm

    r155 r157  
    8282
    8383    ; Clean stack and return
    84     rcl     al, 1       ; Store CF
    85     add     sp, BYTE SIZE_OF_FAKE_IDEPACK
    86     rcr     al, 1       ; Restore CF
     84    lea     sp, [bp+SIZE_OF_FAKE_IDEPACK]   ; This assumes BP hasn't changed between Idepack_FakeToSSBP and here
    8785    pop     bp
    8886    ret
  • trunk/XTIDE_Universal_BIOS/Src/Device/IDE/IdeTransfer.asm

    r155 r157  
    3434    mov     ah, [bp+IDEPACK.bSectorCountHighExt]
    3535
    36     ; Are we reading or writing
     36    ; Are we reading or writing?
     37    test    al, 16  ; Bit 4 is cleared on all the read commands but set on 3 of the 4 write commands
     38    jnz     SHORT .PrepareToWriteDataFromESSI
    3739    cmp     al, COMMAND_WRITE_MULTIPLE
    38     je      SHORT .PrepareToWriteDataFromESSI
    39     cmp     al, COMMAND_WRITE_MULTIPLE_EXT
    40     je      SHORT .PrepareToWriteDataFromESSI
    41     cmp     al, COMMAND_WRITE_SECTORS
    42     je      SHORT .PrepareToWriteDataFromESSI
    43     cmp     al, COMMAND_WRITE_SECTORS_EXT
    4440    je      SHORT .PrepareToWriteDataFromESSI
    4541
  • trunk/XTIDE_Universal_BIOS/Src/Handlers/Int13h/AH9h_HInit.asm

    r150 r157  
    9393    jnz     SHORT ReturnSuccessSinceInitializationNotNeeded
    9494
    95     ; Initialize Locigal Sectors per Track and Max Head number
     95    ; Initialize Logical Sectors per Track and Max Head number
    9696    mov     ah, [di+DPT.bPchsHeads]
    9797    dec     ah                          ; Max Head number
Note: See TracChangeset for help on using the changeset viewer.