Changeset 30 for trunk/BOOTCODE/SETUP


Ignore:
Timestamp:
May 6, 2011, 4:25:19 AM (15 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)
Location:
trunk/BOOTCODE/SETUP
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/BOOTCODE/SETUP/MAIN.ASM

    r29 r30  
    2020;---------------------------------------------------------------------------
    2121
     22IFDEF ModuleNames
     23DB 'MAIN',0
     24ENDIF
     25
    2226LocMENU_RoutinePtr           equ          0
    2327LocMENU_VariablePtr          equ          2
     
    6670
    6771SETUP_CheckEnterSETUP           Proc Near   Uses
     72
     73
     74
     75   ; Rousseau: added
     76   ;mov     SETUP_ExitEvent, 0
     77   ;xor     al, al                        ; -PARTITION SETUP PreDefines-
     78   ;mov     PartSetup_UpperPart, al       ; Upper-Partition == 0
     79   ;mov     PartSetup_ActivePart, al      ; Active-Partition == 0
     80
     81   ; Setup PartitionPointers-Table...again (needed when re-entering setup)
     82   ;call    PART_CalculateStraightPartPointers
     83   ;call    VideoIO_DBG_WriteString
     84   ; Rousseau: end added
     85
     86
     87
    6888   test    CFG_AutoEnterSetup, 1
    6989   jnz     SCES_ForceEnter
     
    152172      je      SMT_KeyEsc
    153173      cmp     ah, Keys_F1
    154       je      SMT_KeyHelp
     174      jne   skip_xx
     175      jmp      SMT_KeyHelp
     176   skip_xx:
    155177      cmp     ah, Keys_F10
    156       je      SMT_SaveAndExitNOW
     178      jne   skip_yy
     179      jmp      SMT_SaveAndExitNOW
     180   skip_yy:
    157181      ; ASCII values...
    158182      cmp     al, Keys_Space
     
    264288SETUP_MenuTask                  EndP
    265289
     290
     291
     292CLR_MENU_WINDOW_CLASSIC    = 0e01h
     293CLR_MENU_WINDOW_BM   = 0e01h
    266294;        In: BP - Pointer to Menu
    267295;       Out: DH - Active Item on Screen
    268296SETUP_DrawMenuOnScreen          Proc Near   Uses
    269297   call    SETUP_DrawMenuWindow
    270    mov     cx, 0E01h
     298   mov     cx, CLR_MENU_WINDOW_BM
    271299   call    VideoIO_Color
    272300   xor     ch, ch
     
    294322SETUP_FillUpItemPacks           EndP
    295323
     324
     325
     326CLR_SELECTED_ITEM_CLASSIC  = 0f04h
     327CLR_SELECTED_ITEM_BM = 0f04h
    296328; Displays selected Item on screen
    297329;        In: DH - Active Item
    298330; Destroyed: None
    299331SETUP_DrawSelectItem            Proc Near Uses cx
    300    mov     cx, 0F04h
     332   mov     cx, CLR_SELECTED_ITEM_BM
    301333   call    VideoIO_Color
    302334   mov     ch, dh
     
    305337SETUP_DrawSelectItem            EndP
    306338
     339
     340CLR_DESELECTED_ITEM_CLASSIC  = 0e01h
     341CLR_DESELECTED_ITEM_BM  = 0e01h
    307342; Display last-selected Item on screen (De-Select)
    308343;        In: DL - Active Item
    309344; Destroyed: None
    310345SETUP_DrawDeSelectItem          Proc Near Uses cx
    311    mov     cx, 0E01h
     346   mov     cx, CLR_DESELECTED_ITEM_BM
    312347   call    VideoIO_Color
    313348   mov     ch, dl
     
    356391   mov     wptr TextColorFore, dx
    357392   ret
    358          
     393
    359394   ; ------------------------------------------------------ Draw ITEMPACK
    360395  SDIOS_ItemPackDraw:
     
    368403        SDIOS_ItemPack_NoFixUpItemPack:
    369404         call    VideoIO_Locate
    370          mov     cx, 0F01h
     405
     406CLR_ITEM_PACK_CLASSIC   = 0f01h
     407CLR_ITEM_PACK_BM  = 0f01h
     408
     409         mov     cx, CLR_ITEM_PACK_BM
    371410         call    VideoIO_Color           ; White on blue background
    372411         mov     si, ds:[si+LocMENU_ItemNamePtr] ; SI - Name of Item
     
    418457   ret
    419458SETUP_FillUpItemPack_Now        EndP
     459
     460
    420461
    421462SETUP_DrawMenuWindow            Proc Near   Uses es
     
    474515   mov     cl, CopyrightVersionLen
    475516   call    VideoIO_FixedPrint            ; and 'vX.XX'.
    476    add     si, 3
     517
     518   ; Rousseau:
     519   ; Strange, had to adjust this value.
     520   ; Somewhere some offset changed...
     521   ; Possibly happened with the movzx change to 286 instructions because some
     522   ; offsets are hard coded.
     523   ;add     si, 3
     524   add     si, 2
     525
    477526   call    GetLenOfString                ; CX - Len of "Copyright" string
    478527   mov     dx, cx
     
    871920   mov     si, di                        ; DS:SI - Current Password
    872921   xor     dl, dl
    873    ; DL - location of cursor (first=0)         
     922   ; DL - location of cursor (first=0)
    874923  SLEP_Loop:
    875924   mov     cx, EnterPwd_Location
     
    910959   cmp     dl, 8
    911960   je      SLEP_SkipThiz
    912    movzx   bx, dl
     961
     962   ;movzx   bx, dl
     963   mov   bl,dl
     964   mov   bh,0
     965
    913966   mov     ds:[si+bx], al
    914967   mov     al, 42                        ; fixed star :]
     
    920973   je      SLEP_SkipThiz
    921974   dec     dl
    922    movzx   bx, dl
     975
     976   ;movzx   bx, dl
     977   mov   bl,dl
     978   mov   bh,0
     979
    923980   mov     al, 32
    924981   mov     ds:[si+bx], al
     
    10981155   jz      SMICTN_NoFiller
    10991156   dec     al
    1100    movzx   cx, al
     1157
     1158   ;movzx   cx, al
     1159   mov   cl,al
     1160   mov   ch,0
     1161
    11011162   xor     al, al
    11021163   rep     stosb                         ; and fill up with NULs, if required
     
    15231584  SMCBBS_Enabled:
    15241585   dec     dl
    1525    movzx   bx, dl
     1586
     1587   ;movzx   bx, dl
     1588   mov   bl,dl
     1589   mov   bh,0
     1590
    15261591   shl     bx, 1
    15271592   mov     si, wptr [ContinueBIOSbootTable+bx]
  • trunk/BOOTCODE/SETUP/MENUS.ASM

    r29 r30  
    5555;
    5656
     57IFDEF ModuleNames
     58DB 'MENUS',0
     59ENDIF
     60
    5761LocMENU_LenOfMenuPtrBlock    equ          8
    5862LocMENU_LenOfItemPack        equ         12
     
    6367LocMENU_ItemPack             equ          8 ; only if VariablePtr>0
    6468
    65 SETUP_MainMenu: 
     69SETUP_MainMenu:
    6670                db      0                ; Where Current Item will get saved
    6771                dw      offset TXT_SETUPHELP_MAIN ; Pointer to help information
     
    209213                dw      offset TXT_SETUP_IgnoreLVM, offset TXT_SETUPHELP_IgnoreLVM
    210214                dw      6 dup (0)
    211                 dw      offset SETUPMAGIC_EnableDisable, offset CFG_ForceLBAUsage
     215                dw      offset SETUPMAGIC_EnableDisable, offset CFG_ForceLBAUsage            ; Rousseau: LBA
    212216                dw      offset TXT_SETUP_ForceLBAUsage, offset TXT_SETUPHELP_ForceLBAUsage
    213217                dw      6 dup (0)
  • trunk/BOOTCODE/SETUP/PART_SET.ASM

    r29 r30  
    1919;                                          AiR-BOOT SETUP / PARTITION SETUP
    2020;---------------------------------------------------------------------------
     21
     22IFDEF ModuleNames
     23DB 'PART_SET',0
     24ENDIF
    2125
    2226; This here is called from Menu in AIR-BSET.asm
     
    5862      je      PSM_KeyVIBRdetection
    5963      cmp     al, TXT_SETUP_FlagLetterHide
    60       je      PSM_KeyHiddenSetup
     64
     65      jne   skip_x
     66      jmp      PSM_KeyHiddenSetup
     67   skip_x:
    6168      cmp     al, TXT_SETUP_FlagLetterDrvLetter
    62       je      PSM_KeyDriveLetterForceSetup
     69
     70      jne   skip_y
     71      jmp      PSM_KeyDriveLetterForceSetup
     72   skip_y:
     73
    6374      cmp     al, TXT_SETUP_FlagLetterExtMShack
    64       je      PSM_KeyDriveLetterExtMShack
     75      jne   skip_z
     76      jmp      PSM_KeyDriveLetterExtMShack
     77   skip_z:
    6578      jmp     PSM_MainLoop
    6679
     
    331344   inc     al
    332345   call    VideoIO_PrintByteNumber
    333    
     346
    334347   ; Display "No Hd" field aka "01/01"
    335348   call    VideoIO_Locate
     
    426439   call    PARTSETUP_ReColorPart
    427440
    428    ; Running Fixing 
     441   ; Running Fixing
    429442   cmp     dh, 0FFh
    430443   jne     PSBCB_NoUnderflow
     
    558571   ;  This is done for security purposes, because if they match, we will update
    559572   ;  the name in both - IPT and BR/LVM.
    560    movzx   bx, dl
     573
     574   ;movzx   bx, dl
     575   mov   bl,dl
     576   mov   bh,0
     577
    561578   cmp     [PartitionVolumeLetters+bx], 0 ; ==0 means not supported by LVM
    562579   je      PSCPN_NotLVMSupported
     
    638655
    639656   ; Check, where to save 2nd destination to...
    640    movzx   bx, dl
     657
     658   ;movzx   bx, dl
     659   mov   bl,dl
     660   mov   bh,0
     661
    641662   cmp     [PartitionVolumeLetters+bx], 0 ; ==0 means not supported by LVM
    642663   je      PSCPN_SaveBootRecord
     
    775796PARTHIDESETUP_DrawMenuBase      Proc Near   Uses dx
    776797   ; PartSetup_HiddenX1
    777    mov     cx, 0D05h                     ; Lila on lila
     798
     799CLR_PART_HIDE_WINDOW_BASE_CLASSIC   = 0d05h
     800CLR_PART_HIDE_WINDOW_BASE_BM   = 0a02h
     801
     802   mov     cx, CLR_PART_HIDE_WINDOW_BASE_BM                    ; Lila on lila
    778803   call    VideoIO_Color
    779804   mov     bh, 05h
     
    792817   mov     al, 'µ'
    793818   call    VideoIO_PrintSingleChar
    794    mov     cx, 0E05h                     ; Yellow on Lila
     819
     820CLR_PART_HIDE_WINDOW_LABEL_CLASSIC = 0e05h
     821CLR_PART_HIDE_WINDOW_LABEL_BM = 0e02h
     822
     823   mov     cx, CLR_PART_HIDE_WINDOW_LABEL_BM                     ; Yellow on Lila
    795824   call    VideoIO_Color
    796825   mov     si, offset TXT_SETUP_HideFeature
    797826   call    VideoIO_Print
    798    mov     cx, 0D05h                     ; Lila on lila
     827
     828CLR_PART_HIDE_WINDOW_BORDER_CLASSIC = 0d05h
     829CLR_PART_HIDE_WINDOW_BORDER_BM = 0d02h
     830
     831
     832   mov     cx, CLR_PART_HIDE_WINDOW_BORDER_BM                     ; Lila on lila
    799833   call    VideoIO_Color
    800834   mov     al, 'Æ'
     
    851885
    852886   ; --- Make ':' Line down
    853    mov     cx, 0F05h                     ; Yellow on Lila
     887
     888CLR_PART_HIDE_MENU_BASE_CLASSIC  = 0f05h
     889CLR_PART_HIDE_MENU_BASE_BM  = 0f02h
     890
     891   mov     cx, CLR_PART_HIDE_MENU_BASE_BM                     ; Yellow on Lila
    854892   call    VideoIO_Color
    855893   mov     ch, 07h
     
    873911   dec     dh
    874912   jnz     PHSRP_Loop
     913
     914CLR_PART_HIDE_MENU_MARKERS_CLASSIC = 0d05h
     915CLR_PART_HIDE_MENU_MARKERS_BM = 0a02h
     916
    875917   ; At last calculate Scroll-Markers
    876    mov     cx, 0D05h                     ; Lila on lila
     918   mov     cx, CLR_PART_HIDE_MENU_MARKERS_BM                     ; Lila on lila                          ; Hide Feature Markers
    877919   call    VideoIO_Color
    878920   mov     cx, 0603h                     ; 6, +3
     
    919961   push    cx
    920962      ; Display "Label" field aka "OS2" without ending NULs/Spaces
    921       mov     cx, 0F05h
     963
     964CLR_PART_HIDE_LABEL_CLASSIC   = 0f05h
     965CLR_PART_HIDE_LABEL_BM = 0f02h
     966
     967      mov     cx, CLR_PART_HIDE_LABEL_BM
    922968      call    VideoIO_Color              ; Bright White on Lila
    923969      push    si
     
    927973         call    VideoIO_FixedPrint
    928974      pop     si
    929       mov     cx, 0D05h
     975
     976CLR_PART_HIDE_WINDOW_FS_CLASSIC   = 0d05h
     977CLR_PART_HIDE_WINDOW_FS_BM = 0a02h
     978
     979      mov     cx, CLR_PART_HIDE_WINDOW_FS_BM
    930980      call    VideoIO_Color              ; Bright Lila on Lila
    931981      mov     al, ' '
     
    948998   call    VideoIO_Locate
    949999   push    cx
    950       mov     cx, 0E05h
     1000
     1001CLR_PART_HIDE_WINDOW_CHOISES_CLASSIC   = 0e05h
     1002CLR_PART_HIDE_WINDOW_CHOISES_BM   = 0e02h
     1003
     1004      mov     cx, CLR_PART_HIDE_WINDOW_CHOISES_BM
    9511005      call    VideoIO_Color              ; Yellow on Lila
    9521006      mov     al, ' '
     
    9801034  PHSBCB_SkipRetrace:
    9811035
     1036CLR_PART_HIDE_WINDOW_MENU_BAR_CLASSIC  = 5eh
     1037CLR_PART_HIDE_WINDOW_MENU_BAR_BM = 2eh
     1038
    9821039   ; Deactivate current active bar
    983    mov     cl, 5Eh                       ; Yellow on Lila
     1040   mov     cl, CLR_PART_HIDE_WINDOW_MENU_BAR_BM                       ; Yellow on Lila
    9841041   call    PARTHIDESETUP_ReColorPart
    9851042
    986    ; Running Fixing 
     1043   ; Running Fixing
    9871044   cmp     dh, 0FFh
    9881045   jne     PHSBCB_NoUnderflow
     
    10151072
    10161073   ; Activate fresh active bar
    1017    mov     cl, 1Fh                       ; Bright White on Blue
     1074
     1075CLR_PART_HIDE_WINDOW_MENU_ACTIVE_BAR_CLASSIC = 1fh
     1076CLR_PART_HIDE_WINDOW_MENU_ACTIVE_BAR_BM   = 1fh
     1077
     1078   mov     cl, CLR_PART_HIDE_WINDOW_MENU_ACTIVE_BAR_BM                       ; Bright White on Blue
    10181079   call    PARTHIDESETUP_ReColorPart
    10191080   ; Now DL==DH
     
    11781239
    11791240   ; Now get the Logical-Drive-Letter for that partition...
    1180    movzx   bx, dl
     1241   ;movzx   bx, dl
     1242   mov   bl,dl
     1243   mov   bh,0
     1244
    11811245   mov     dl, bptr [DriveLetters+bx]
    11821246
     
    12641328
    12651329   ; Draw base-window
    1266    mov     cx, 0D05h                     ; Lila on lila
     1330
     1331CLR_PART_DL_XX_CLASSIC = 0d05h
     1332CLR_PART_DL_XX_BM = 0a02h
     1333
     1334   mov     cx, CLR_PART_DL_XX_BM                     ; Lila on lila
    12671335   call    VideoIO_Color
    12681336   mov     bh, 06h
     
    12811349      mov     al, 'µ'
    12821350      call    VideoIO_PrintSingleChar
    1283       mov     cx, 0E05h                  ; Yellow on Lila
     1351
     1352CLR_PART_DL_WINDOW_TITLE_CLASSIC  = 0e05h
     1353CLR_PART_DL_WINDOW_TITLE_BM  = 0e02h
     1354
     1355      mov     cx, CLR_PART_DL_WINDOW_TITLE_BM                  ; Yellow on Lila
    12841356      call    VideoIO_Color
    12851357      mov     si, offset TXT_SETUP_DriveLetter
    12861358      call    VideoIO_Print
    1287       mov     cx, 0D05h                  ; Lila on lila
     1359
     1360CLR_PART_DL_WINDOW_BORDER2_CLASSIC  = 0d05h
     1361CLR_PART_DL_WINDOW_BORDER2_BM  = 0a02h
     1362
     1363      mov     cx, CLR_PART_DL_WINDOW_BORDER2_BM                 ; Lila on lila
    12881364      call    VideoIO_Color
    12891365      mov     al, 'Æ'
     
    12921368   ; Display help-information
    12931369   mov     si, offset TXT_SETUPHELP_DriveLetter
    1294    mov     cx, 0D05h                     ; Lila on lila
     1370
     1371CLR_PART_DL_SETUP_HELP_CLASSIC = 0d05h
     1372CLR_PART_DL_SETUP_HELP_BM = 0a02h
     1373
     1374
     1375   mov     cx, CLR_PART_DL_SETUP_HELP_BM                     ; Lila on lila
    12951376   call    VideoIO_Color
    12961377
     
    13061387   mov     al, '>'
    13071388   call    VideoIO_PrintSingleChar
    1308    ; 
     1389   ;
    13091390   mov     cx, 0F01h                     ; Bright White on Blue
    13101391   call    VideoIO_Color
Note: See TracChangeset for help on using the changeset viewer.