Changeset 46 for trunk/BOOTCODE/SETUP


Ignore:
Timestamp:
Apr 12, 2014, 8:23:32 AM (12 years ago)
Author:
Ben Rietbroek
Message:

Various Changes [2012-04-14]

WARNING!!

All commits upto and including the commit of [2012-05-13] contain
a severe bug!! Building from these sources and then disabling
the 'force LBA' feature while also using the drive-letter feature or
editing the label can DESTROY THE MBR on ALL ATTACHED DISKS!!
DO NOT DISABLE 'FORCE LBA USAGE' WHEN BUILT FROM THE THESE COMMITS!!

Changes

o Added BLDLEVEL support
o Enhanced Master Make
o Sanitized sources
o Support for Wasm and Masm6 (experimental)
o Renamed MBR_PROT.ASM to MBR-PROT.ASM
o Merged bitfield code Into Installer
o First steps for cross platform Installer
o More...

Location:
trunk/BOOTCODE/SETUP
Files:
2 edited

Legend:

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

    r40 r46  
    2424ENDIF
    2525
    26 LocMENU_RoutinePtr           equ          0
    27 LocMENU_VariablePtr          equ          2
    28 LocMENU_ItemNamePtr          equ          4
    29 LocMENU_ItemHelpPtr          equ          6
    30 LocMENU_ItemPack             equ          8 ; only if VariablePtr>0
     26;~ LocMENU_RoutinePtr           equ          0
     27;~ LocMENU_VariablePtr          equ          2
     28;~ LocMENU_ItemNamePtr          equ          4
     29;~ LocMENU_ItemHelpPtr          equ          6
     30;~ LocMENU_ItemPack             equ          8 ; only if VariablePtr>0
    3131
    3232SETUP_UpperFixString          db 'SETUP ',0 ; AddOn for "AiR-BOOT SETUP vX.XX"
     
    8686
    8787
    88    test    CFG_AutoEnterSetup, 1
     88   test    byte ptr [CFG_AutoEnterSetup], 1
    8989   jnz     SCES_ForceEnter
    90    mov     al, SETUP_KeysOnEntry
     90   mov     al, [SETUP_KeysOnEntry]
    9191   test    al, Keys_Flags_EnterSetup
    9292IFDEF ReleaseCode
     
    100100
    101101SETUP_Main                      Proc Near   Uses si es bp
    102    mov     SETUP_ExitEvent, 0
     102   mov     byte ptr [SETUP_ExitEvent], 0
    103103   xor     al, al                        ; -PARTITION SETUP PreDefines-
    104    mov     PartSetup_UpperPart, al       ; Upper-Partition == 0
    105    mov     PartSetup_ActivePart, al      ; Active-Partition == 0
     104   mov     [PartSetup_UpperPart], al       ; Upper-Partition == 0
     105   mov     [PartSetup_ActivePart], al      ; Active-Partition == 0
    106106
    107107   ; Setup PartitionPointers-Table...again (needed when re-entering setup)
     
    118118;   CurMenu: Left Side 0-6, Right Side 8-14 (Bit 3!)
    119119SETUP_MenuTask                  Proc Near   ; the main-menu routine
    120    cmp     SETUP_ExitEvent, 1
     120   cmp     byte ptr [SETUP_ExitEvent], 1
    121121   jne     SMT_NoImmediateExit
    122122   ret
     
    132132   jne     SMT_NotMainMenu
    133133   call    FX_EndScreenLeft              ; Do FX, if requested...
    134    test    CFG_PasswordSetup, 1
     134   test    byte ptr [CFG_PasswordSetup], 1
    135135   jz      SMT_NotMainMenu
    136136   mov     ax, 0ABABh
     
    202202   mov     ch, dh
    203203   call    SETUP_SwitchToSelectedItem    ; Calculates SI for Item-No (CH)
    204    mov     ax, word ptr ds:[si+LocMENU_RoutinePtr]
    205    mov     bx, word ptr ds:[si+LocMENU_VariablePtr]
     204   mov     ax, ds:[si+LocMENU_RoutinePtr]
     205   mov     bx, ds:[si+LocMENU_VariablePtr]
    206206   or      bx, bx                        ; VarPtr ?
    207207   jnz     SMT_DoNotExecute
     
    210210      call    ax                         ; Call to CodePtr
    211211      call    SETUP_DrawMenuOnScreen     ; Redraw after return
    212       cmp     SETUP_ExitEvent, 1
     212      cmp     byte ptr [SETUP_ExitEvent], 1
    213213      je      SMT_ExitEvent
    214214  SMT_DoNotExecute:
     
    226226   mov     ch, dh
    227227   call    SETUP_SwitchToSelectedItem    ; Calculates SI for Item-No (CH)
    228    mov     ax, word ptr ds:[si+LocMENU_RoutinePtr]
    229    mov     bx, word ptr ds:[si+LocMENU_VariablePtr]
     228   mov     ax, ds:[si+LocMENU_RoutinePtr]
     229   mov     bx, ds:[si+LocMENU_VariablePtr]
    230230   or      bx, bx                        ; VarPtr ? =0 No ItemPack
    231231   jnz     SMT_DoItemPack
     
    272272   mov     ch, dh
    273273   call    SETUP_SwitchToSelectedItem    ; Calculates SI for Item-No (CH)
    274    mov     bx, word ptr ds:[si+LocMENU_ItemHelpPtr]
     274   mov     bx, ds:[si+LocMENU_ItemHelpPtr]
    275275   or      bx, bx                        ; Help-Ptr available ?
    276276   jz      SMT_NoHelpAvailable
     
    883883   mov     cx, 0E05h
    884884   call    VideoIO_Color
    885    mov     EnterPwd_Location, 0E26h
    886    mov     EnterPwd_DefinePwd, 1
     885   mov     word ptr [EnterPwd_Location], 0E26h
     886   mov     word ptr [EnterPwd_DefinePwd], 1
    887887   jmp     SLEP_JumpToInputProcess
    888888
     
    927927   ; DL - location of cursor (first=0)
    928928  SLEP_Loop:
    929    mov     cx, EnterPwd_Location
     929   mov     cx, [EnterPwd_Location]
    930930   call    VideoIO_Locate
    931931   push    si
     
    990990   or      dl, dl
    991991   jnz     SLEP_GotSomePassword
    992    cmp     EnterPwd_DefinePwd, 1
     992   cmp     word ptr [EnterPwd_DefinePwd], 1
    993993   je      SLEP_GotSomePassword
    994994   mov     cx, 8
     
    10441044  SEMSAES_DoThis:
    10451045   xor     al, al
    1046    mov     CFG_AutoEnterSetup, al
    1047    add     CFG_LastTimeEditLow, 1
    1048    adc     CFG_LastTimeEditHi, 0         ; Update Time-Stamp
     1046   mov     byte ptr [CFG_AutoEnterSetup], al
     1047   add     word ptr [CFG_LastTimeEditLow], 1
     1048   adc     word ptr [CFG_LastTimeEditHi], 0         ; Update Time-Stamp
    10491049   IFDEF ReleaseCode
    10501050      call    DriveIO_SaveConfiguration
    10511051   ENDIF
    1052    mov     SETUP_ExitEvent, 1            ; Exit and continue boot process
     1052   mov     byte ptr [SETUP_ExitEvent], 1            ; Exit and continue boot process
    10531053  SEMSAES_UserAbort:
    10541054   ret
     
    10601060   jnz     SEMEWS_UserAbort
    10611061   ; If we were forced to enter Setup, save configuration anyway...
    1062    test    CFG_AutoEnterSetup, 1
     1062   test    byte ptr [CFG_AutoEnterSetup], 1
    10631063   jz      SEMEWS_DoThis
    10641064   jmp     SEMEWS_DoThis                 ; Cross-Jump to SaveAndExitSetup!
     
    10681068      call    DriveIO_LoadConfiguration  ; This is *NOT* IPT nor HideConfig
    10691069   ENDIF
    1070    mov     SETUP_ExitEvent, 1            ; Exit and continue boot process
     1070   mov     byte ptr [SETUP_ExitEvent], 1            ; Exit and continue boot process
    10711071  SEMEWS_UserAbort:
    10721072   ret
     
    12701270        SMCP_AlreadyGotSelection:
    12711271         ; We use BL in here for tracking how many selections left
    1272          mov     bl, CFG_Partitions
     1272         mov     bl, [CFG_Partitions]
    12731273         cmp     dl, 0FEh
    12741274         jb      SMCP_DoneAdjust
    12751275         je      SMCP_AdjustContinueBIOS
    1276          cmp     CFG_IncludeFloppy, 0
     1276         cmp     byte ptr [CFG_IncludeFloppy], 0
    12771277         jne     SMCP_DoneAdjust
    12781278         dec     dl                      ; No Floppy? -> Try Resume-BIOS
    12791279        SMCP_AdjustContinueBIOS:
    1280          cmp     CFG_ResumeBIOSbootSeq, 0
     1280         cmp     byte ptr [CFG_ResumeBIOSbootSeq], 0
    12811281         jne     SMCP_DoneAdjust
    12821282         xor     dl, dl                  ; No Resume-BIOS? -> Start partition 0
     
    12911291     SMCP_Inc_RejectPartition:
    12921292      inc     dl                         ; Increase Selection No
    1293       cmp     dl, CFG_Partitions
     1293      cmp     dl, [CFG_Partitions]
    12941294      jb      SMCP_Inc_ModifyDone
    12951295      cmp     dl, 0FFh
    12961296      je      SMCP_Inc_TryFloppy
    12971297      mov     dl, 0FEh                   ; Try Resume-BIOS
    1298       cmp     CFG_ResumeBIOSbootSeq, 0
     1298      cmp     byte ptr [CFG_ResumeBIOSbootSeq], 0
    12991299      jne     SMCP_Inc_ModifyDone
    13001300      inc     dl                         ; Try Floppy
    13011301     SMCP_Inc_TryFloppy:
    1302       cmp     CFG_IncludeFloppy, 0
     1302      cmp     byte ptr [CFG_IncludeFloppy], 0
    13031303      jne     SMCP_Inc_ModifyDone
    1304       cmp     CFG_Partitions, 0
     1304      cmp     byte ptr [CFG_Partitions], 0
    13051305      je      SMCP_NoBootable
    13061306      inc     dl                         ; Now start at partition 0 again
     
    13251325      cmp     dl, 0FFh
    13261326      jb      SMCP_Dec_TryResumeBIOS
    1327       cmp     CFG_IncludeFloppy, 0
     1327      cmp     byte ptr [CFG_IncludeFloppy], 0
    13281328      jne     SMCP_Dec_ModifyDone
    13291329      dec     dl
    13301330     SMCP_Dec_TryResumeBIOS:
    1331       cmp     CFG_ResumeBIOSbootSeq, 0
     1331      cmp     byte ptr [CFG_ResumeBIOSbootSeq], 0
    13321332      jne     SMCP_Dec_ModifyDone
    13331333     SMCP_Dec_TryPartition:
    1334       mov     dl, CFG_Partitions
     1334      mov     dl, [CFG_Partitions]
    13351335      or      dl, dl
    13361336      jz      SMCP_NoBootable
     
    13471347     SMCP_GotSelection:
    13481348   pop     bx
    1349    mov     ds:[bx], dl                   ; neue Partition setzen
     1349   mov     ds:[bx], dl                   ; Set new partition
    13501350   add     si, LocIPT_Name               ; Location of Name
    13511351   push    cs
     
    15641564SETUPMAGIC_ChangeFloppyDisplay  Proc Near   Uses cx dx si es di
    15651565   call    SETUPMAGIC_EnableDisable      ; forward call
    1566    cmp     CFG_PartDefault, 0FFh         ; Default-Selection is us?
     1566   cmp     byte ptr [CFG_PartDefault], 0FFh         ; Default-Selection is us?
    15671567   jne     SMCFD_Done
    15681568   xor     ch, ch
     
    15901590   jnz     SMCBBS_Enabled
    15911591   mov     si, offset TXT_SETUP_MAGIC_Disabled
    1592    cmp     CFG_PartDefault, 0FEh         ; Default-Selection is us?
     1592   cmp     byte ptr [CFG_PartDefault], 0FEh         ; Default-Selection is us?
    15931593   jne     SMCBBS_CopyThiz
    15941594   mov     CFG_PartDefault, dl           ; Reset Default-Selection to 1st part
  • trunk/BOOTCODE/SETUP/PART_SET.ASM

    r45 r46  
    602602   call    VideoIO_Locate                ; Goes to CX
    603603
    604    mov     ChangePartNameSave, 0         ; Don't save to BR / LVM Sector
     604   mov     byte ptr [ChangePartNameSave], 0         ; Don't save to BR / LVM Sector
    605605
    606606   ; We compare, if our IPT contains the same partition name as in BR or LVM
     
    612612   mov   bh,0
    613613
    614    cmp     [PartitionVolumeLetters+bx], 0 ; ==0 means not supported by LVM
     614   cmp     byte ptr [PartitionVolumeLetters+bx], 0 ; ==0 means not supported by LVM
    615615   je      PSCPN_NotLVMSupported
    616616
     
    618618   ; Load LVM-Sector here and seek to PartitionName
    619619   ; Set CurPartition_Location information of destination partition
    620    mov     ax, wptr [si+LocIPT_AbsolutePartTable]
    621    mov     wptr [CurPartition_Location+0], ax
    622    mov     ax, wptr [si+LocIPT_AbsolutePartTable+2]
    623    mov     wptr [CurPartition_Location+2], ax
    624    mov     ah, bptr [si+LocIPT_LocationPartTable+0]
    625    mov     al, [si+LocIPT_Drive]
    626    mov     wptr [CurPartition_Location+4], ax
    627    mov     ax, wptr [si+LocIPT_LocationPartTable+1]
    628    mov     wptr [CurPartition_Location+6], ax
     620   mov     ax, [si+LocIPT_AbsolutePartTable]
     621   mov     [CurPartition_Location+0], ax
     622   mov     ax, [si+LocIPT_AbsolutePartTable+2]
     623   mov     [CurPartition_Location+2], ax
     624   mov     ah, byte ptr [si+LocIPT_LocationPartTable+0]
     625   mov     al, byte ptr [si+LocIPT_Drive]
     626   mov     [CurPartition_Location+4], ax
     627   mov     ax, [si+LocIPT_LocationPartTable+1]
     628   mov     [CurPartition_Location+6], ax
    629629   mov     di, si                        ; Put SI into DI
    630630   call    DriveIO_LoadLVMSector
    631631   jnc     PSCPN_LVMGotError             ; Security again, if problem -> halt
    632632   push    dx
    633       mov     ax, wptr [di+LocIPT_AbsoluteBegin]
    634       mov     dx, wptr [di+LocIPT_AbsoluteBegin+2]
     633      mov     ax, [di+LocIPT_AbsoluteBegin]
     634      mov     dx, [di+LocIPT_AbsoluteBegin+2]
    635635      call    LVM_SearchForPartition
    636636   pop     dx
     
    657657   ; Load Boot-Record...
    658658   push    dx
    659       mov     ax, wptr [si+LocIPT_AbsoluteBegin+0]
    660       mov     bx, wptr [si+LocIPT_AbsoluteBegin+2]
     659      mov     ax, [si+LocIPT_AbsoluteBegin+0]
     660      mov     bx, [si+LocIPT_AbsoluteBegin+2]
    661661      mov     cx, [si+LocIPT_LocationBegin+1]
    662662      mov     dh, [si+LocIPT_LocationBegin+0]
     
    696696
    697697    ; Do no synchronization initially.
    698     mov     [SyncLvmLabels],0
     698    mov     byte ptr [SyncLvmLabels],0
    699699
    700700  ; SI = IPT_Enty, DI points to LVM VolumeName.
     
    729729        repe    cmpsb               ; Compare V and P labels
    730730        jnz     LVM_Labels_not_equal
    731         mov     [SyncLvmLabels],1   ; Same so set flag for later
     731        mov     byte ptr [SyncLvmLabels],1   ; Same so set flag for later
    732732    LVM_Labels_not_equal:
    733733        pop     di
     
    744744   jne     PSCPN_LetUserEditPartName     ; -> No BR/LVM Changing/Saving
    745745
    746    mov     ChangePartNameSave, 1         ; Remember, so we will save to BR
     746   mov     byte ptr [ChangePartNameSave], 1         ; Remember, so we will save to BR
    747747
    748748  ; SI = IPT_Enty, DI points to LVM PartitionName.
     
    754754   jnc     PSCPN_AllDone                 ; Did user abort ?
    755755
    756    test    ChangePartNameSave, 1
     756   test    byte ptr [ChangePartNameSave], 1
    757757   jz      PSCPN_AllDone                 ; Actually we just skip BR/LVM-Save
    758758
     
    763763   mov   bh,0
    764764
    765    cmp     [PartitionVolumeLetters+bx], 0 ; ==0 means not supported by LVM
     765   cmp     byte ptr [PartitionVolumeLetters+bx], 0 ; ==0 means not supported by LVM
    766766   je      PSCPN_SaveBootRecord
    767767
     
    814814
    815815        ; See if LVM-labels need to be synced.
    816         test    [SyncLvmLabels],1
     816        test    byte ptr [SyncLvmLabels],1
    817817        jz      LVM_no_sync_labels
    818818
     
    869869   ; If Partition Selected Left-Side -> go Right-Sided Window
    870870   ;                                     otherwise Left-Sided.
    871    mov     PartSetup_ActivePart, dl
     871   mov     [PartSetup_ActivePart], dl
    872872   mov     ax, 0102h
    873873   and     dl, 1
     
    875875   mov     ax, 002Ah
    876876  PHSM_FirstStep:
    877    mov     PartSetup_HiddenX, al
    878    mov     PartSetup_HiddenAdd, ah
     877   mov     [PartSetup_HiddenX], al
     878   mov     [PartSetup_HiddenAdd], ah
    879879
    880880   ; Draw Menu...
    881881   xor     dx, dx
    882    mov     PartSetup_HiddenUpper, dl
     882   mov     [PartSetup_HiddenUpper], dl
    883883   call    PARTHIDESETUP_DrawMenuBase
    884884   call    PARTHIDESETUP_RefreshPartitions
     
    919919  PHSM_KeyESC:
    920920   ; Collect Hide-Partition-Config and put it into Hide-Table
    921    mov     dl, PartSetup_ActivePart
     921   mov     dl, [PartSetup_ActivePart]
    922922
    923923IFDEF   AUX_DEBUG
     
    977977   call    VideoIO_Color
    978978   mov     bh, 05h
    979    mov     bl, PartSetup_HiddenX
     979   mov     bl, [PartSetup_HiddenX]
    980980   mov     dh, 10h
    981981   mov     dl, bl
    982982   add     dl, 25h
    983    add     dl, PartSetup_HiddenAdd
     983   add     dl, [PartSetup_HiddenAdd]
    984984   push    bx
    985985      call    VideoIO_MakeWindow
     
    10101010   ; --- Make Window-Footer - "State when booting..." at bottom right frame-line
    10111011   mov     dh, 10h
    1012    mov     dl, PartSetup_HiddenX
     1012   mov     dl, [PartSetup_HiddenX]
    10131013   add     dl, 25h
    1014    add     dl, PartSetup_HiddenAdd       ; Location 16, HiddenX->right aligned
     1014   add     dl, [PartSetup_HiddenAdd]       ; Location 16, HiddenX->right aligned
    10151015   mov     si, offset TXT_SETUP_HideFeature2
    10161016   call    GetLenOfString                ; CX - Length of HideFeature2
    10171017   sub     dl, cl                        ; Adjust Position
    10181018   push    dx
    1019       mov     dl, PartSetup_ActivePart
     1019      mov     dl, [PartSetup_ActivePart]
    10201020      call    PART_GetPartitionPointer   ; Holt den Pointer der Partition (DL) nach SI
    10211021   pop     dx
     
    10801080; Draw all partitions to Hidden-Setup aka Dynamic Content-Draw
    10811081PARTHIDESETUP_RefreshPartitions Proc Near   Uses dx
    1082    mov     dl, PartSetup_HiddenUpper
     1082   mov     dl, [PartSetup_HiddenUpper]
    10831083   mov     dh, 8
    10841084  PHSRP_Loop:
     
    10951095   call    VideoIO_Color
    10961096   mov     cx, 0603h                     ; 6, +3
    1097    add     cl, PartSetup_HiddenX
    1098    mov     dl, PartSetup_HiddenUpper
     1097   add     cl, [PartSetup_HiddenX]
     1098   mov     dl, [PartSetup_HiddenUpper]
    10991099   call    PARTSETUP_UpperScrollMarker
    11001100   add     cl, 29
    1101    add     cl, PartSetup_HiddenAdd       ; 6, +29
     1101   add     cl, [PartSetup_HiddenAdd]       ; 6, +29
    11021102   call    PARTSETUP_UpperScrollMarker
    11031103   mov     cx, 0F03h                     ; 15, +3
    1104    add     cl, PartSetup_HiddenX
     1104   add     cl, [PartSetup_HiddenX]
    11051105   add     dl, 8                         ; add 8 -> points to last partition
    1106    mov     dh, CFG_Partitions            ; Limit
     1106   mov     dh, [CFG_Partitions]            ; Limit
    11071107   call    PARTSETUP_LowerScrollMarker
    11081108   add     cl, 29
    1109    add     cl, PartSetup_HiddenAdd       ; 6, +29
     1109   add     cl, [PartSetup_HiddenAdd]       ; 6, +29
    11101110   call    PARTSETUP_LowerScrollMarker
    11111111   ret
     
    11151115   local NoOfPart :byte
    11161116   mov     ch, dl
    1117    sub     ch, PartSetup_HiddenUpper
     1117   sub     ch, [PartSetup_HiddenUpper]
    11181118   add     ch, 7
    11191119   mov     cl, 2
    1120    add     cl, PartSetup_HiddenX
     1120   add     cl, [PartSetup_HiddenX]
    11211121   ; We got location
    11221122   mov     NoOfPart, dl
     
    11301130   pop     cx
    11311131
    1132    cmp     dl, CFG_Partitions
     1132   cmp     dl, [CFG_Partitions]
    11331133   jae     PHSDPI_NoData
    11341134
     
    12221222   xor     dh, dh
    12231223  PHSBCB_NoUnderflow:
    1224    cmp     dh, CFG_Partitions
     1224   cmp     dh, [CFG_Partitions]
    12251225   jb      PHSBCB_NoOverflow
    1226    mov     dh, CFG_Partitions
     1226   mov     dh, [CFG_Partitions]
    12271227   dec     dh
    12281228  PHSBCB_NoOverflow:
     
    12301230
    12311231   ; Do we need to scroll ?
    1232    mov     al, PartSetup_HiddenUpper
     1232   mov     al, [PartSetup_HiddenUpper]
    12331233   cmp     dl, al
    12341234   jb      PHSBCB_YesScrolling
     
    12381238   mov     al, dl
    12391239   sub     al, 7
    1240    mov     PartSetup_HiddenUpper, al
     1240   mov     [PartSetup_HiddenUpper], al
    12411241   call    PARTHIDESETUP_RefreshPartitions
    12421242   jmp     PHSBCB_NoScrolling
    12431243  PHSBCB_YesScrolling:
    12441244   mov     al, dl
    1245    mov     PartSetup_HiddenUpper, al
     1245   mov     [PartSetup_HiddenUpper], al
    12461246   call    PARTHIDESETUP_RefreshPartitions
    12471247  PHSBCB_NoScrolling:
     
    12631263   mov     bh, cl     ; Color to BH
    12641264   ; First calculate location of bar
    1265    cmp     dl, PartSetup_HiddenUpper
     1265   cmp     dl, [PartSetup_HiddenUpper]
    12661266   jb      PHSRCP_NotInWindowView
    12671267   mov     ch, dl
    1268    sub     ch, PartSetup_HiddenUpper     ; CH - Position relative to HiddenUpper
     1268   sub     ch, [PartSetup_HiddenUpper]     ; CH - Position relative to HiddenUpper
    12691269   cmp     ch, 8                         ; 8 - Maximum Total in Window
    12701270   jae     PHSRCP_NotInWindowView
    12711271   add     ch, 7
    12721272   mov     cl, 26
    1273    add     cl, PartSetup_HiddenX
    1274    add     cl, PartSetup_HiddenAdd
     1273   add     cl, [PartSetup_HiddenX]
     1274   add     cl, [PartSetup_HiddenAdd]
    12751275
    12761276   mov     bl, 10                        ; Length of Bar is 10
     
    13151315        ; each points to a partition.
    13161316        ; 3Fh is end-marker / maximum entries = CFG_Partitions
    1317         mov     cl, CFG_Partitions
     1317        mov     cl, [CFG_Partitions]
    13181318        mov     bx,di   ; Pointer to hidden-parts entry for this partition.
    13191319        mov     ch,0    ; Start index in hidden-parts entry for this partition.
     
    13741374        mov     si, offset PartitionTable
    13751375        xor     ch, ch                          ; Partition index
    1376         mov     cl, CFG_Partitions              ; Nr. of partitions in IPT
     1376        mov     cl, [CFG_Partitions]            ; Nr. of partitions in IPT
    13771377        mov     ah,0                            ; Next hide-index to write.
    13781378
     
    15231523   mov   bh,0
    15241524
    1525    mov     dl, bptr [DriveLetters+bx]
     1525   mov     dl, byte ptr [DriveLetters+bx]
    15261526
    15271527   push    bx
     
    16251625   call    VideoIO_Color
    16261626   mov     bh, 06h
    1627    mov     bl, PartSetup_HiddenX
     1627   mov     bl, [PartSetup_HiddenX]
    16281628   mov     dh, 0Ah
    16291629   mov     dl, bl
     
    16981698   push    dx
    16991699      mov     cx, 0805h                  ; Position 8, 5
    1700       add     cl, PartSetup_HiddenX
     1700      add     cl, [PartSetup_HiddenX]
    17011701      call    VideoIO_Locate
    17021702      add     cl, 6                      ; Everything centered (12/2)
Note: See TracChangeset for help on using the changeset viewer.