Ignore:
Timestamp:
Apr 12, 2014, 8:23:32 AM (11 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...

File:
1 edited

Legend:

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

    r40 r46  
    3131PASSWORD_AskSystemPwd           Proc Near   Uses ax bx si di
    3232   ; Asks System Password, if set...
    33    test    CFG_PasswordSystem, 1
     33   test    byte ptr [CFG_PasswordSystem], 1
    3434   jz      PASP_NoPassword
    3535      mov     ax, 0ABABh
     
    4343PASSWORD_AskChangeBootPwd       Proc Near   Uses ax bx si di
    4444   ; Asks System Password, if set...
    45    test    CFG_PasswordChangeBoot, 1
     45   test    byte ptr [CFG_PasswordChangeBoot], 1
    4646   jz      PACBP_NoPassword
    47    test    TimedBootUsed, 1
     47   test    byte ptr [TimedBootUsed], 1
    4848   jnz     PACBP_NoPassword
    4949      mov     ax, 0ABABh
     
    7070PASSWORD_AskSpecifiedPassword   Proc Near   Uses cx dx ds si es di bp
    7171   local AskPasswordMiss:byte, AskPasswordText:word, AskPasswordMagic:word, AskPasswordWhich:word
    72    mov     AskPasswordMagic, ax
    73    mov     AskPasswordText, si
    74    mov     AskPasswordWhich, di
     72   mov     [AskPasswordMagic], ax
     73   mov     [AskPasswordText], si
     74   mov     [AskPasswordWhich], di
    7575   mov     ax, cs
    7676   mov     ds, ax
     
    8080   mov     cx, 8
    8181   rep     stosb                         ; Generates empty password
    82    mov     AskPasswordMiss, 0
    83    mov     ax, AskPasswordWhich
     82   mov     byte ptr [AskPasswordMiss], 0
     83   mov     ax, [AskPasswordWhich]
    8484   or      ax, ax
    8585   jnz     PASP_BadBoyRetry              ; Only check one
     
    106106
    107107      ; ...and compare it to the specified on-board one
    108       mov     di, AskPasswordWhich
     108      mov     di, [AskPasswordWhich]
    109109      or      di, di
    110110      jnz     PASP_OnlyCheckSpecified
     
    122122
    123123     PASP_LetUserGuessPassword:          ; ;-)))
    124       mov     ax, AskPasswordMagic
    125       mov     si, AskPasswordText
     124      mov     ax, [AskPasswordMagic]
     125      mov     si, [AskPasswordText]
    126126      mov     di, offset TempPasswordEntry
    127127      call    SETUP_LetEnterPassword
    128    inc     AskPasswordMiss
    129    cmp     AskPasswordMiss, 10
     128   inc     byte ptr [AskPasswordMiss]
     129   cmp     byte ptr [AskPasswordMiss], 10
    130130   jae     PASP_BadBoyAlert
    131131   jmp     PASP_BadBoyRetry
Note: See TracChangeset for help on using the changeset viewer.