Changeset 593 in xtideuniversalbios for trunk/XTIDE_Universal_BIOS_Configurator_v2/Src


Ignore:
Timestamp:
Jun 30, 2018, 8:27:04 AM (6 years ago)
Author:
Tomi Tilli
Message:

Flashing now works again.
Hack to get Windows 95 to work properly (MODULE_WIN95_CMOS_HACK included for 386 builds by default).
Edited makefile to produce large 386 build.
Fixed recovery time for QDI Vision VLB-IDE controllers.
No more warnings with Nasm 2.13.xx and later.
File dialog now properly restores default drive when file selection is cancelled.

Location:
trunk/XTIDE_Universal_BIOS_Configurator_v2/Src
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/XTIDE_Universal_BIOS_Configurator_v2/Src/EEPROM.asm

    r592 r593  
    189189    cld
    190190%endif
    191 ;%if g_rgwEepromTypeToSizeInWords = 0   ; *FIXME* It really is but NASM won't accept this.
    192     mov     cx, [cs:bx]
    193 ;%else
    194 ;   mov     cx, [cs:bx+g_rgwEepromTypeToSizeInWords]
    195 ;%endif
     191    mov     cx, [cs:bx+g_rgwEepromTypeToSizeInWords]
    196192    rep movsw
    197193
  • trunk/XTIDE_Universal_BIOS_Configurator_v2/Src/Flash.asm

    r592 r593  
    292292    loop    .WriteActualDataByteAfterSdpCommand
    293293    sti                     ; Enable interrupts
    294     ; Fall to WaitUntilEepromPageWriteHasCompleted
     294    ; Fall to .WaitUntilEepromPageWriteHasCompleted
    295295
    296296
     
    305305;       AX, BX, DI, DS, ES
    306306;--------------------------------------------------------------------
    307 ALIGN JUMP_ALIGN
    308 WaitUntilEepromPageWriteHasCompleted:
     307.WaitUntilEepromPageWriteHasCompleted:
    309308    push    ss
    310309    pop     ds
     
    325324    ret
    326325
     326
    327327;--------------------------------------------------------------------
    328328; DisplayFlashProgressWithPagesLeftInCXandFlashvarsInSSBP
  • trunk/XTIDE_Universal_BIOS_Configurator_v2/Src/Main.asm

    r592 r593  
    8585    ret
    8686.DosVersionIsOK:
     87    mov     [bDosVersionMajor], al                  ; bDosVersionMajor must be initialized by the application (library code depends on it)
     88    cmp     al, 5
     89    jb      SHORT .DoNotInstallInt2FhHandler
     90    ; Since we are installing our Int2Fh handler we must also hook interrupt 23h to ensure a clean exit on ctrl-c/ctrl-break
     91    call    HookInterrupt23h
     92    call    HookInterrupt2Fh
     93.DoNotInstallInt2FhHandler:
    8794
    8895    mov     ax, SCREEN_BACKGROUND_CHARACTER_AND_ATTRIBUTE
     
    93100    mov     ax, DOS_BACKGROUND_CHARACTER_AND_ATTRIBUTE
    94101    call    InitializeScreenWithBackgroundCharAndAttrInAX
     102
     103    call    UnhookInterrupt2Fh
    95104
    96105    ; Exit to DOS
     
    156165; Section containing uninitialized data
    157166SECTION .bss
     167
     168bDosVersionMajor:   resb    1
     169
  • trunk/XTIDE_Universal_BIOS_Configurator_v2/Src/Menupages/FlashMenu.asm

    r592 r593  
    346346.GetSelectedEepromSizeInWordsToAX:
    347347    eMOVZX  bx, [cs:g_cfgVars+CFGVARS.bEepromType]
    348 ;%if g_rgwEepromTypeToSizeInWords = 0   ; *FIXME* It really is but NASM won't accept this.
    349     mov     ax, [cs:bx]
    350 ;%else
    351 ;   mov     ax, [cs:bx+g_rgwEepromTypeToSizeInWords]
    352 ;%endif
     348    mov     ax, [cs:bx+g_rgwEepromTypeToSizeInWords]
    353349    ret
     350
    354351
    355352;--------------------------------------------------------------------
Note: See TracChangeset for help on using the changeset viewer.