Changeset 593 in xtideuniversalbios for trunk/Assembly_Library/Inc


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/Assembly_Library/Inc
Files:
2 added
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/Assembly_Library/Inc/AssemblyLibrary.inc

    r256 r593  
    99%include "BiosData.inc"
    1010%include "BiosFunctions.inc"
     11%include "CMOS.inc"
    1112%include "CgaSnow.inc"
    1213%include "Debug.inc"
    1314%include "Delay.inc"
    1415%include "DosFunctions.inc"
     16%include "CMOS.inc"
    1517%include "File.inc"
    1618%include "Math.inc"
     
    2022
    2123; Library dependencies
    22 %ifdef INCLUDE_MENU_DIALOGS
    23     %include "Dialog.inc"
    24     %define INCLUDE_MENU_LIBRARY
    25     %define INCLUDE_FILE_LIBRARY
    26 %endif
    27 
    28 %ifdef INCLUDE_MENU_LIBRARY
     24%ifdef INCLUDE_MENU_LIBRARY or INCLUDE_MENU_DIALOGS ; To prevent warnings with Nasm 2.13.xx
    2925    %include "Menu.inc"
    3026    %include "MenuEvents.inc"
    3127    %define INCLUDE_KEYBOARD_LIBRARY
    3228    %define INCLUDE_TIME_LIBRARY
     29   
     30    %ifdef INCLUDE_MENU_DIALOGS
     31        %include "Dialog.inc"
     32        %define INCLUDE_MENU_LIBRARY
     33        %define INCLUDE_FILE_LIBRARY
     34    %endif
    3335%endif
    3436
  • trunk/Assembly_Library/Inc/BiosFunctions.inc

    r592 r593  
    1212BIOS_BOOT_FAILURE_INTERRUPT_18h EQU     18h
    1313BIOS_BOOT_LOADER_INTERRUPT_19h  EQU     19h
     14BIOS_TIME_PCI_PNP_1Ah           EQU     1Ah
    1415BIOS_DISKETTE_INTERRUPT_40h     EQU     40h
    1516HD0_DPT_POINTER_41h             EQU     41h
     
    6465EVENT_WAIT                      EQU     86h
    6566
     67; BIOS PCI 2.0+ functions
     68PCI_INSTALLATION_CHECK              EQU     0B101h
     69
    6670
    6771%endif ; BIOS_FUNCTIONS_INC
  • trunk/Assembly_Library/Inc/Dialog.inc

    r54 r593  
    4646endstruc
    4747
     48
     49; Progress bar dialog
     50PROGRESS_COMPLETE_CHARACTER         EQU     BLOCK_FULL_FOREGROUND
     51PROGRESS_INCOMPLETE_CHARACTER       EQU     BLOCK_MOSTLY_BACKGROUND
     52
    4853struc PROGRESS_DIALOG_IO
    4954    .dialogInput                    resb    DIALOG_INPUT_size
     
    6772endstruc
    6873
     74
     75; File dialog
     76FILENAME_BUFFER_SIZE                EQU     14  ; 8+1+3+NULL+alignment
     77MAX_FILE_DIALOG_INFO_LINES          EQU     3
     78FLG_FILEDIALOG_DRIVES               EQU     (1<<0)  ; Allow changing drive
     79FLG_FILEDIALOG_DIRECTORY            EQU     (1<<1)  ; Select directory instead of file
     80FLG_FILEDIALOG_NEW                  EQU     (1<<2)  ; Allow creating new file or directory
     81
     82KEY_FILEDIALOG_CHANGE_DRIVE         EQU     3Ch     ; F2
     83KEY_FILEDIALOG_SELECT_DIRECTORY     EQU     3Dh     ; F3
     84KEY_FILEDIALOG_NEW_FILE_OR_DIR      EQU     3Eh     ; F4
     85
    6986struc FILE_DIALOG_IO
    7087    ; DIALOG_INPUT adjusted for File Dialog
     
    83100
    84101
    85 ; Progress bar dialog
    86 PROGRESS_COMPLETE_CHARACTER         EQU     BLOCK_FULL_FOREGROUND
    87 PROGRESS_INCOMPLETE_CHARACTER       EQU     BLOCK_MOSTLY_BACKGROUND
    88 
    89 ; File dialog
    90 FILENAME_BUFFER_SIZE                EQU     14  ; 8+1+3+NULL+alignment
    91 MAX_FILE_DIALOG_INFO_LINES          EQU     3
    92 FLG_FILEDIALOG_DRIVES               EQU     (1<<0)  ; Allow changing drive
    93 FLG_FILEDIALOG_DIRECTORY            EQU     (1<<1)  ; Select directory instead of file
    94 FLG_FILEDIALOG_NEW                  EQU     (1<<2)  ; Allow creating new file or directory
    95 
    96 KEY_FILEDIALOG_CHANGE_DRIVE         EQU     3Ch     ; F2
    97 KEY_FILEDIALOG_SELECT_DIRECTORY     EQU     3Dh     ; F3
    98 KEY_FILEDIALOG_NEW_FILE_OR_DIR      EQU     3Eh     ; F4
    99 
    100 
    101102%endif ; DIALOG_INC
  • trunk/Assembly_Library/Inc/Macros.inc

    r592 r593  
    124124
    125125
     126;--------------------------------------------------------------------
     127; Small delay between I/O port accessess if needed.
     128;
     129; IO_DELAY
     130;   Parameters:
     131;       Nothing
     132;   Returns:
     133;       Nothing
     134;   Corrupts registers:
     135;       Nothing
     136;--------------------------------------------------------------------
     137%macro IO_DELAY 0
     138    jmp     SHORT %%ClearPrefetchQueue
     139%%ClearPrefetchQueue:
     140%endmacro
     141
     142
    126143%endif ; MACROS_INC
Note: See TracChangeset for help on using the changeset viewer.