Ignore:
Timestamp:
Feb 24, 2012, 3:06:16 PM (12 years ago)
Author:
aitotat@…
google:author:
aitotat@gmail.com
Message:

Changes to XTIDE Universal BIOS:

  • Some fixes for JR-IDE/ISA code (still not working).
File:
1 edited

Legend:

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

    r249 r266  
    5656    mov     [di+DPT.bIdevarsOffset], bp
    5757    mov     BYTE [di+DPT_ATA.bSetBlock], 1  ; Block = 1 sector
     58%ifdef ASSEMBLE_SHARED_IDE_DEVICE_FUNCTIONS
    5859    call    IdeDPT_StoreReversedAddressLinesFlagIfNecessary
     60%endif
    5961
    6062    ; Wait until drive motors have reached max speed
     
    108110    ; Output Device Control Byte to enable or disable interrupts
    109111    mov     al, [bp+IDEPACK.bDeviceControl]
     112%ifdef ASSEMBLE_SHARED_IDE_DEVICE_FUNCTIONS ; JR-IDE/ISA
    110113    test    al, FLG_DEVCONTROL_nIEN ; Interrupts disabled?
    111114    jnz     SHORT .DoNotSetInterruptInServiceFlag
     
    118121    pop     ds
    119122.DoNotSetInterruptInServiceFlag:
     123%endif
    120124    OUTPUT_AL_TO_IDE_CONTROL_BLOCK_REGISTER DEVICE_CONTROL_REGISTER_out
    121125
     
    127131    eMOVZX  ax, BYTE [bp+IDEPACK.bLbaLowExt]
    128132    mov     cx, [bp+IDEPACK.wLbaMiddleAndHighExt]
    129     call    OutputSectorCountAndAddress
     133    call    IDEDEVICE%+OutputSectorCountAndAddress
    130134
    131135    ; Output Sector Address Low
    132136    mov     ax, [bp+IDEPACK.wSectorCountAndLbaLow]
    133137    mov     cx, [bp+IDEPACK.wLbaMiddleAndHigh]
    134     call    OutputSectorCountAndAddress
     138    call    IDEDEVICE%+OutputSectorCountAndAddress
    135139
    136140    ; Output command
     
    198202;       AL, BX, DX
    199203;--------------------------------------------------------------------
    200 %ifdef ASSEMBLE_SHARED_IDE_DEVICE_FUNCTIONS
    201 ALIGN JUMP_ALIGN
    202 OutputSectorCountAndAddress:
     204ALIGN JUMP_ALIGN
     205IDEDEVICE%+OutputSectorCountAndAddress:
    203206    OUTPUT_AL_TO_IDE_REGISTER SECTOR_COUNT_REGISTER
    204207
     
    211214    mov     al, ch
    212215    JUMP_TO_OUTPUT_AL_TO_IDE_REGISTER LBA_HIGH_REGISTER
    213 %endif
Note: See TracChangeset for help on using the changeset viewer.