Ignore:
Timestamp:
May 6, 2011, 4:25:19 AM (14 years ago)
Author:
Ben Rietbroek
Message:

AiR-BOOT v1.07 -- As released with eCS v2.1. [2011-05-06]
Signature-date: 2006-03-13. (incorrect)
Trunk contains buildable v1.07 version as distributed with eCS v2.1.
Directory 'tags' contains v1.06 & v1.07 reference versions
built for all languages. Note that language ID for 'Dutch' changed
from 'DT' to 'NL' in v1.07 and that the v1.06 reference version also
uses 'NL' for 'Dutch'.
Also note that helper programs like the installer and setaboot are
are only modified for the OS/2 versions in v1.07.
The signature-date for v1.07 incorrectly states the same
date as for v1.06. The signature-version is correct.
Removed other binaries. (cd-rom images, old releases, etc.)
The tags serve as reference versions:

  • v1.06: rebuilt from source. (tags/v1.06r)
  • v1.07: built as released with eCS v2.1. (tags/v1.07r)
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/BOOTCODE/REGULAR/BOOTMENU.ASM

    r29 r30  
    2020;---------------------------------------------------------------------------
    2121
     22IFDEF ModuleNames
     23DB 'BOOTMENU',0
     24ENDIF
     25
    2226BOOTMENU_BuildBackground        Proc Near   Uses es di
    2327   call    VideoIO_CursorOff
     
    3236BOOTMENU_BuildBackground        EndP
    3337
     38CLR_COPYRIGHT_CLASSIC   = 0f00h
     39CLR_COPYRIGHT_BM  = 0700h
     40
    3441BOOTMENU_BuildMain              Proc Near   Uses es di
    3542   ; 1st line with Copyright information...
    3643   mov     cx, 0101h
    3744   call    VideoIO_Locate
    38    mov     cx, 0F00h
     45   mov     cx, CLR_COPYRIGHT_BM
    3946   call    VideoIO_Color
    4047   mov     si, offset Copyright
     
    4249
    4350   ; Boot-Window...
    44    mov     cx, 0901h
     51CLR_BOOT_WINDOW_CLASSIC    = 0901h
     52CLR_BOOT_WINDOW_BM         = 0701h
     53
     54   mov     cx, CLR_BOOT_WINDOW_BM
    4555   call    VideoIO_Color
    4656   mov     bx, 0201h
     
    5363   mov     al, TextChar_WinLineRight
    5464   mov     cl, 78
    55    call    VideoIO_Internal_MakeWinRight 
     65   call    VideoIO_Internal_MakeWinRight
    5666
    5767   mov     dl, 18h
     
    6373
    6474   ; Display Top-Infos in Boot-Window
    65    mov     cx, 0B01h
     75
     76CLR_TOP_INFOS_CLASSIC    = 0b01h
     77CLR_TOP_INFOS_BM  = 0301h
     78
     79   mov     cx, CLR_TOP_INFOS_BM
    6680   call    VideoIO_Color
    6781   mov     ch, 03h
     
    91105
    92106   ; Now make the separating vertical lines...
    93    mov     cx, 0901h
     107CLR_SEP_VERT_LINES_CLASSIC    = 0901h
     108CLR_SEP_VERT_LINES_BM   = 0701h
     109
     110   mov     cx, CLR_SEP_VERT_LINES_BM
    94111   call    VideoIO_Color
    95112   mov     ch, 03h
     
    157174   ; Boot-Window is DONE
    158175
    159    mov     cx, 0C04h
    160    call    VideoIO_Color
     176; Rousseau: = Colors =
     177; FG
     178; BG
     179; 7 = grey
     180; 6 = brown
     181; 5 = magenta
     182; 4 = red
     183; 3 = cyan
     184; 2 = green
     185; 1 = blue
     186
     187CLR_INFO_WINDOW_CLASSIC    = 0c04h
     188CLR_INFO_WINDOW_BM   = 0701h
     189
     190   mov     cx, CLR_INFO_WINDOW_BM
     191   ;mov     cx, 0C06h ; brown, main background
     192   call    VideoIO_Color                                                         ; Rousseau: color info window
     193
    161194   mov     bx, 1401h
    162195   mov     dx, 1950h
     
    173206   mov     cx, 1703h
    174207   call    VideoIO_Locate
    175    mov     cx, 0F04h
    176    call    VideoIO_Color
     208
     209CLR_INFO_TEXT_CLASSIC   = 0f04h
     210CLR_INFO_TEXT_BM   = 0701h
     211
     212   mov     cx, CLR_INFO_TEXT_BM                   ; Info text
     213   call    VideoIO_Color                                                         ; Rousseau: color info text
     214
    177215   mov     si, offset TXT_BootMenuHelpText1
    178216   call    VideoIO_Print
     
    182220   call    VideoIO_Print
    183221
    184    mov     cx, 0C04h
     222
     223CLR_F10_SETUP_CLASSIC   = 0c04h
     224CLR_F10_SETUP_BM        = 0901h
     225
     226   mov     cx, CLR_F10_SETUP_BM                            ; background F10 enter Setup
    185227   call    VideoIO_Color
    186228
     
    198240   call    VideoIO_PrintSingleChar
    199241   ; HelpWindow done...
     242
     243
     244   ; Rousseau: Debug Stuff, put here after building Main Menu
     245   ;call    VideoIO_DBG_WriteString
     246   ;call    VideoIO_DBG_WriteString2
     247
    200248   ret
    201249BOOTMENU_BuildMain              EndP
     250
     251
    202252
    203253BOOTMENU_BuildGoodBye           Proc Near   Uses es di
     
    209259   rep     stosw
    210260   ; -------------------------------------------
    211    mov     cx, 0D05h
     261
     262CLR_GOODBYE_WINDOW_CLASSIC = 0d05h
     263CLR_GOODBYE_WINDOW_BM   = 0f01h
     264
     265   mov     cx, CLR_GOODBYE_WINDOW_BM
    212266   call    VideoIO_Color
    213267   mov     bx, 0101h
     
    221275   mov     cx, 9
    222276   mov     al, WinCharRight
    223    mov     ah, 05Dh
     277
     278   ; Little part before version in goodbye-window
     279   ; Does not use color-function
     280   ;mov     ah, 05Dh
     281   mov     ah, 01fh
    224282   rep     stosw
     283
    225284   mov     cx, 010Bh
    226285   call    VideoIO_Locate
     
    240299   mov     al, TextChar_WinRep4
    241300   call    VideoIO_PrintSingleChar
    242    mov     cx, 0E01h
     301
     302CLR_GOODBYE_AB_VERSION_CLASSIC   = 0e01h
     303CLR_GOODBYE_AB_VERSION_BM  = 0e03h
     304
     305   mov     cx, CLR_GOODBYE_AB_VERSION_BM
    243306   call    VideoIO_Color
    244307   mov     si, offset Copyright
    245308   mov     cl, 11+CopyrightVersionLen
    246309   call    VideoIO_FixedPrint
    247    mov     cx, 0D05h
     310
     311   mov     cx, CLR_GOODBYE_WINDOW_BM
     312
    248313   call    VideoIO_Color
    249314   mov     al, TextChar_WinRep5
     
    251316   mov     cx, 020Dh
    252317   call    VideoIO_Locate
    253    mov     cx, 0F05h
     318
     319   CLR_GOODBYE_WINDOW_CLASSIC_2    = 0f05h
     320   CLR_GOODBYE_WINDOW_BM_2   = 0701h
     321
     322   mov     cx,  CLR_GOODBYE_WINDOW_BM_2
    254323   call    VideoIO_Color
    255324   inc     si
     
    272341BOOTMENU_BuildGoodBye           EndP
    273342
     343
     344
    274345; Must preserve AX!
    275346BOOTMENU_BuildTimedBootText     Proc Near   Uses ax cx si es di
    276    mov     cx, 1503h
    277    call    VideoIO_Locate
    278    mov     cx, 0E04h
     347   mov     cx, 1503h ;
     348   call    VideoIO_Locate
     349
     350CLR_NON_TIMED_BAR_CLASSIC  = 0e04h
     351CLR_NON_TIMED_BAR_BM = 0701h
     352
     353   mov     cx, CLR_NON_TIMED_BAR_BM                      ; non-timed time bar
    279354   call    VideoIO_Color
    280355   call    VideoIO_Internal_SetRegs
     
    294369   mov     cx, 1503h
    295370   call    VideoIO_Locate
    296    mov     cx, 0E04h
     371
     372CLR_TIMED_BAR_CLASSIC   = 0e04h
     373CLR_TIMED_BAR_BM  = 0e04h
     374
     375   mov     cx, CLR_TIMED_BAR_BM ; timed time bar, yellow on red
    297376   call    VideoIO_Color
    298377   mov     si, offset TXT_TimedBootLine  ; will print TimedBootEntryName too
     
    325404BOOTMENU_RefreshPartitionText   EndP
    326405
     406
     407CLR_VOLUME_INDEX_CLASSIC   = 0f01h
     408CLR_VOLUME_INDEX_BM  = 0f01h
     409
    327410; Writes Partition-Information to Screen (Boot-Menu)
    328411;        In: CH - Line to print info
     
    339422   mov     dh, cl
    340423   call    VideoIO_Locate
    341    mov     cx, 0F01h                     ; Bwhite, blue
     424   mov     cx, CLR_VOLUME_INDEX_BM                     ; Bwhite, blue
    342425   call    VideoIO_Color
    343426   mov     al, dl
     
    347430   ; === Display Drive-Number and Size (Size only in detailed view) ===
    348431   add     dh, 5
    349    movzx   cx, dh
    350    call    VideoIO_Locate
    351    mov     cx, 0D01h
     432   ;movzx   cx, dh
     433   mov   cl,dh
     434   mov   ch,0
     435
     436   call    VideoIO_Locate
     437
     438CLR_HD_INDEX_CLASSIC    = 0d01h
     439CLR_HD_INDEX_BM   = 0701h
     440
     441   mov     cx, CLR_HD_INDEX_BM
    352442   call    VideoIO_Color                 ; Violet, blue
    353443   mov     si, PartPointer
     
    367457     BMBPT_IsHarddrive:
    368458      ; Now display Size-Element...
    369       mov     cx, 0501h
     459
     460CLR_HD_SIZE_CLASSIC  = 0501h
     461CLR_HD_SIZE_BM = 0701h
     462
     463      mov     cx, CLR_HD_SIZE_BM
    370464      call    VideoIO_Color              ; Dark-Violet, Blue
    371465      mov     al, '/'
    372466      call    VideoIO_PrintSingleChar
    373       mov     cx, 0D01h
     467      mov     cx, CLR_HD_SIZE_BM
    374468      call    VideoIO_Color              ; Violet, Blue
    375469      mov     ax, PartPointer            ; Get Size-Element from PartPtr (AX)
     
    383477
    384478   ; === Display Label ===
    385    movzx   cx, dh
    386    call    VideoIO_Locate
    387    mov     cx, 0E01h
     479   ;movzx   cx, dh
     480   mov   cl,dh
     481   mov   ch,0
     482
     483   call    VideoIO_Locate
     484
     485CLR_LABEL_CLASSIC    = 0e01h
     486CLR_LABEL_BM   = 0f01h
     487
     488   mov     cx, CLR_LABEL_BM
    388489   call    VideoIO_Color                 ; Yellow, blue
    389490   mov     si, PartPointer
     
    394495   ; === Display Type ===
    395496   add     dh, 14
    396    movzx   cx, dh
     497   ;movzx   cx, dh
     498   mov   cl,dh
     499   mov   ch,0
     500
    397501   call    VideoIO_Locate
    398502   mov     si, PartPointer
    399503   mov     al, [si+LocIPT_SystemID]
    400504   call    PART_SearchFileSysName
    401    mov     cx, 0C01h
     505
     506CLR_FS_NAME_CLASSIC  =  0c01h
     507CLR_FS_NAME_BM =  0701h
     508
     509   mov     cx, CLR_FS_NAME_BM
    402510   call    VideoIO_Color                 ; Hrot, Blau
    403511   mov     cl, 8
     
    410518;       Out: DX - will get returned (fixed, if needed)
    411519BOOTMENU_BuildChoiceBar         Proc near   Uses ax es di
     520
     521   ;call  SOUND_Beep
     522
    412523   call    VideoIO_WaitRetrace
     524
     525
     526   ;call  SOUND_Beep
     527
    413528   mov     cl, 10h    ; Color BLUE, Partition DL
    414529   call    BOOTMENU_ReColorPart
     530
     531   ;call  SOUND_Beep
    415532
    416533   ; Check, if clipping needed...
     
    448565   call    BOOTMENU_RefreshPartitionText
    449566
     567
     568; Keuze bar
     569; 00h black
     570; 10h blue
     571; 20h green (also nice)
     572; 30h cyan (also nice)
     573; 40h red
     574; 50h magenta
     575; 60h brown (nice)
     576; 70h white
     577; 80h grey
     578; 90h light blue (nice)
     579; 0a0h bright green
     580; 0b0h bright cyan
     581; 0c0h bright red
     582; 0d0h bright magenta
     583; 0e0h bright yellow
     584; 0f0h bright white
     585
     586
     587CLR_SELECTION_BAR_CLASSIC  = 50h
     588CLR_SELECTION_BAR_BM = 090h
     589
     590
     591
    450592  BMBCB_AfterScrolling:
    451    mov     cl, 50h    ; Color PINK, Partition DL
     593   mov     cl, CLR_SELECTION_BAR_BM    ; Color PINK, Partition DL
    452594   call    BOOTMENU_ReColorPart
    453595   ret
     
    457599; Destroyed: None, but Locate-Pointer gets set
    458600BOOTMENU_ReColorPart            Proc Near   Uses bx cx es di
     601
     602  ; call  SOUND_Beep
     603
    459604   mov     bh, cl     ; Color to BH
    460605   ; First calculate location of bar
     
    475620      and     al, 0Fh
    476621      or      al, bh                     ; Adds background color (from BH)
     622
     623      ;mov      al,97h
     624
    477625      mov     es:[di], al
    478626      add     di, 2
     
    615763   ; Got it, so display bar...
    616764   mov     dh, dl
     765
     766   ;call  SOUND_Beep
     767
    617768   call    BOOTMENU_BuildChoiceBar       ; DH - Active, DL - Last Active
     769
     770   ;call  SOUND_Beep
     771
    618772   call    SOUND_PreBootMenu
    619773
     774
    620775  BME_MainLoop:
     776
     777     ;call    VideoIO_DBG_WriteString2    ; Rousseau
     778
    621779   test    TimedBootEnable, 1
    622780   jz      BME_NoTimedBoot
Note: See TracChangeset for help on using the changeset viewer.