Ignore:
Timestamp:
Jan 25, 2011, 9:13:56 PM (13 years ago)
Author:
krille_n_@…
google:author:
krille_n_@hotmail.com
Message:

Size optimizations in various files in the XTIDE BIOS.
Also added a new include file for generic macros (macros.inc).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/XTIDE_Universal_BIOS/Src/Initialization/FloppyDrive.asm

    r39 r86  
    1 ; File name     :   FloppyDrive.asm
    21; Project name  :   IDE BIOS
    3 ; Created date  :   25.3.2010
    4 ; Last update   :   13.9.2010
    5 ; Author        :   Tomi Tilli
    62; Description   :   Various floppy drive related functions that
    73;                   Boot Menu uses.
     
    2117;   Corrupts registers:
    2218;       BX, CX, DI
    23 ;--------------------------------------------------------------------   
     19;--------------------------------------------------------------------
    2420;ALIGN JUMP_ALIGN
    2521FloppyDrive_IsInt40hInstalled:
     
    4036;   Corrupts registers:
    4137;       BX, CX, DI
    42 ;--------------------------------------------------------------------   
     38;--------------------------------------------------------------------
    4339;ALIGN JUMP_ALIGN
    4440.VerifyInt40hHandlerSinceSomeBiosesSimplyReturnFromInt40h:
     
    8480;   Corrupts registers:
    8581;       DH
    86 ;--------------------------------------------------------------------   
     82;--------------------------------------------------------------------
    8783;ALIGN JUMP_ALIGN
    8884.LoadInt40hVerifyParameters:
    89     xor     dx, dx              ; Floppy drive 0
     85    mov     ah, 08h             ; Get Drive Parameters
     86    cwd                         ; Floppy drive 0
    9087    mov     di, dx
    9188    mov     es, dx              ; ES:DI = 0000:0000h to guard against BIOS bugs
    92     mov     ah, 08h             ; Get Drive Parameters
    9389    ret
    9490
     
    171167
    172168    mov     ah, 08h                 ; Get Drive Parameters
    173     xor     dx, dx                  ; Floppy Drive 00h
     169    cwd                             ; Floppy Drive 00h
    174170    int     INTV_FLOPPY_FUNC
    175171    mov     cl, dl                  ; Number of Floppy Drives to CL
Note: See TracChangeset for help on using the changeset viewer.