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/TOOLS/INTERNAL/FIXCODE.ASM

    r43 r46  
    4141COM_CodeName    db 'AIR-BOOT.COM', 0
    4242COM_LoadMBR     db ' - Loading MBR-protection from file...$'
    43 COM_MBRName     db 'MBR-PROT\MBR_PROT.COM', 0
     43COM_MBRName     db 'MBR-PROT\MBR-PROT.BIN', 0
    4444COM_MergeMBR    db ' - Merging MBR-protection into bootcode...$'
    4545COM_CountCode   db ' - Count code in bootcode-image...$'
     
    5151COM_FailedReadCode    db 'Read air-boot.com failed', 13, 10, '$'
    5252COM_FailedInvalidCode db 'Invalid air-boot.com', 13, 10, '$'
    53 COM_FailedOpenMBR     db 'mbr-prot\mbr_prot.com not found', 13, 10, '$'
    54 COM_FailedReadMBR     db 'Read mbr-prot\mbr_prot.com failed', 13, 10, '$'
    55 COM_FailedInvalidMBR  db 'Invalid mbr-prot\mbr_prot.com', 13, 10, '$'
     53COM_FailedOpenMBR     db 'mbr-prot\mbr-prot.bin not found', 13, 10, '$'
     54COM_FailedReadMBR     db 'Read mbr-prot\mbr-prot.bin failed', 13, 10, '$'
     55COM_FailedInvalidMBR  db 'Invalid mbr-prot\mbr-prot.bin', 13, 10, '$'
    5656COM_FailedWriteCode   db 'Write air-boot.com failed', 13, 10, '$'
    5757
     
    6565ShowMessage     EndP
    6666
    67 ShowError       Proc Near
    68    mov     ah, 09h
    69    int     21h              ; DOS: WRITE STRING DS:DX TO CONSOLE
    70    jmp     EndProgram
    71    ret
    72 ShowError       EndP
     67ShowError   Proc Near
     68        mov     ah, 09h
     69        int     21h             ; DOS: WRITE STRING DS:DX TO CONSOLE
     70        mov     al,1            ; Error code
     71        jmp     EndProgram
     72        ret
     73ShowError   EndP
    7374
    7475COM_Init:
     
    128129                call    ShowMessage
    129130
    130                 ; Open MBR_PROT.COM
     131                ; Open MBR_PROT.BIN
    131132                mov     dx, offset COM_LoadMBR
    132133                call    ShowMessage
     
    141142DoneOpenMBR:    mov     bx, ax           ; BX = Filehandle
    142143
    143                 ; Load MBR_PROT.COM
     144                ; Load MBR-PROT.BIN
    144145                mov     ah, 3Fh
    145146                mov     cx, 1024         ; Image size
     
    204205                mov     dx, offset COM_Failed
    205206                call    ShowMessage
     207                mov     al,2            ; Error code
    206208                jmp     EndProgram
    207209
     
    220222
    221223                mov     si, offset BootCode
    222                 add     si, 512*53
    223                 mov     cx, 256
    224                 mov     dx, 53
     224                add     si, 512*53  ; 6A00
     225                mov     cx, 256     ; 512 bytes
     226                mov     dx, 53      ; initial count
    225227COM_CodeEndLoop:push    cx
    226228                push    si
     
    277279                mov     dx, offset COM_Okay
    278280                call    ShowMessage
     281                xor     al,al           ; No Error
    279282                jmp     EndProgram
    280283
     
    282285EndProgram:
    283286   ; DOS: TERMINATE PROGRAM
    284    mov     ax, 4C00h
     287   mov     ah, 04Ch
    285288   int     21h
    286289
Note: See TracChangeset for help on using the changeset viewer.