Changeset 593 in xtideuniversalbios for trunk/XTIDE_Universal_BIOS_Configurator_v2


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
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • trunk/XTIDE_Universal_BIOS_Configurator_v2/Inc/MenuStructs.inc

    r567 r593  
    2020%ifndef MENU_STRUCTS_INC
    2121%define MENU_STRUCTS_INC
     22
     23struc ITEM_VALUE
     24    .wRomvarsValueOffset    resb    2   ; ROMVARS offset to actual value to be configured
     25    .szDialogTitle          resb    2   ; Dialog title string
     26
     27    .szMultichoice          resb    2   ; Multiple choices in one string
     28    .rgwChoiceToValueLookup resb    2   ; Ptr to lookup table for translating selected choice to actual value
     29    .rgszValueToStringLookup:           ; Ptr to lookup table for translating value to string
     30    .rgszChoiceToStringLookup:
     31    .wMinValue              resb    2   ; Minimum allowed integer value
     32    .wMaxValue:
     33    .wValueBitmask          resb    2   ; Bitmask for item value flag or field
     34    .fnValueReader          resb    2   ; Called just after ROMVARS is read, providing a hook for further action
     35    .fnValueWriter          resb    2   ; Called just before ROMVARS is written, providing a hook for further action
     36    .bFieldPosition         resb    1   ; Bit field position
     37endstruc
    2238
    2339struc MENUPAGE
     
    6177
    6278
    63 struc ITEM_VALUE
    64     .wRomvarsValueOffset    resb    2   ; ROMVARS offset to actual value to be configured
    65     .szDialogTitle          resb    2   ; Dialog title string
    66 
    67     .szMultichoice          resb    2   ; Multiple choices in one string
    68     .rgwChoiceToValueLookup resb    2   ; Ptr to lookup table for translating selected choice to actual value
    69     .rgszValueToStringLookup:           ; Ptr to lookup table for translating value to string
    70     .rgszChoiceToStringLookup:
    71     .wMinValue              resb    2   ; Minimum allowed integer value
    72     .wMaxValue:
    73     .wValueBitmask          resb    2   ; Bitmask for item value flag or field
    74     .fnValueReader          resb    2   ; Called just after ROMVARS is read, providing a hook for further action
    75     .fnValueWriter          resb    2   ; Called just before ROMVARS is written, providing a hook for further action
    76     .bFieldPosition         resb    1   ; Bit field position
    77 endstruc
    78 
    79 
    8079%endif ; MENU_STRUCTS_INC
  • 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;--------------------------------------------------------------------
  • trunk/XTIDE_Universal_BIOS_Configurator_v2/makefile

    r592 r593  
    5454# Assembler preprocessor defines.                               #
    5555#################################################################
    56 DEFINES = EXCLUDE_FROM_XTIDECFG
     56DEFINES = EXCLUDE_FROM_XTIDECFG CLD_NEEDED
    5757DEFINES_XT = ELIMINATE_CGA_SNOW
    5858DEFINES_XTPLUS = USE_186 ELIMINATE_CGA_SNOW
Note: See TracChangeset for help on using the changeset viewer.