Changeset 37 for trunk/TOOLS/DOS


Ignore:
Timestamp:
Apr 11, 2014, 8:39:07 PM (11 years ago)
Author:
Ben Rietbroek
Message:

Reworked Build Environment [2012-02-15]

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 Reworked build environment
o Start made with coding FIXCODE in C
o Moved MBR protection image
o New overlap macro
o Protect type 0x35 from edit (user popup)
o Protect type 0x35 from adding to menu (user popup)
o More...
! No LVM Label change yet

Note

o Changed license to GPL v3

See file COPYING in trunk.

Location:
trunk/TOOLS/DOS
Files:
1 added
3 edited
1 copied

Legend:

Unmodified
Added
Removed
  • trunk/TOOLS/DOS/INITHDD/INITHDD.ASM

    r30 r37  
    1717;
    1818
    19 JUMPS
     19;JUMPS
    2020
    21 Include ..\..\..\include\asm.inc
    22 ;include ..\..\..\include\dos\airboot.inc
     21Include ../../../INCLUDE/ASM.INC
    2322
    2423                .386p
    25                 model large, basic
     24                .model large, basic
    2625
    2726code_seg        segment public use16
     
    3029air_boot_setup: jmp     INITHDD_Start
    3130
    32 Introduction:           db 'INITHDD - AiR-BOOT Initialize HDD Utility (DOS) - (c) 2004 by M. Kiewitz',13,10
     31Introduction            db 'INITHDD - AiR-BOOT Initialize HDD Utility (DOS) - (c) 2004 by M. Kiewitz',13,10
    3332                        db 0
    3433
     
    6968   dw 00000h, 00000h, 00000h, 0AA55h
    7069
    71 ;   Include ..\..\..\include\DOS\Const.asm
     70;   Include ../../../INCLUDE\DOS\CONST.ASM
    7271
    7372INITHDD_Start:  mov     ax, cs
  • trunk/TOOLS/DOS/INITHDD/MAKE.BAT

    r30 r37  
    88%exe2bin% inithdd.exe inithdd.com >nul
    99if errorlevel 1 goto Failed
    10 copy inithdd.com ..\..\..\RELEASE\DOS\inithdd.com
     10copy inithdd.com ..\..\..\RELEASE\DOS\INITHDD.COM
     11
     12@ren inithdd.LST inithdd.TSL
     13@ren inithdd.TSL INITHDD.LST
    1114
    1215rem Cleanup
  • trunk/TOOLS/DOS/INITHDD/MAKE.CMD

    r36 r37  
    11@echo off
    22rem Do actual build...
    3 call ..\..\..\env\dos.bat
     3call ..\..\..\env\os2.cmd
    44%assembler% inithdd.asm
    55if errorlevel 1 goto Failed
    6 %linker% inithdd.obj >nul
     6%linker% inithdd.obj; >nul
    77if errorlevel 1 goto Failed
    88%exe2bin% inithdd.exe inithdd.com >nul
    99if errorlevel 1 goto Failed
    10 copy inithdd.com ..\..\..\RELEASE\DOS\inithdd.com
     10copy inithdd.com ..\..\..\RELEASE\DOS\INITHDD.COM
     11
     12@ren inithdd.LST inithdd.TSL
     13@ren inithdd.TSL INITHDD.LST
    1114
    1215rem Cleanup
  • trunk/TOOLS/DOS/SETABOOT/SETABOOT.ASM

    r29 r37  
    1919JUMPS
    2020
    21 Include ..\..\..\Include\asm.inc
    22 include ..\..\..\include\dos\airboot.inc
     21Include ../../../INCLUDE/ASM.INC
     22include ../../../INCLUDE/DOS/AIRBOOT.INC
    2323
    2424                .386p
     
    6060                        db ' detected.', 13, 10, 0
    6161
    62    Include ..\..\..\include\dos\Const.asm
     62   Include ../../../INCLUDE/DOS/CONST.ASM
    6363
    6464AiRBOOTdetected         db 0
     
    343343                ;  DL holds total IPT entries to go
    344344                ;  DH holds current partition number (base 0)
    345                 push    cx es di
     345                push    cx
     346                push    es
     347                push    di
    346348                   mov     ax, ds
    347349                   mov     es, ax        ; ES == DS for now
     
    351353                   mov     di, offset TrackZero+6E00h ; Starting at sector 56
    352354                  CmdLine_RebootToSearchLoop:
    353                       push    si di
     355                      push    si
     356                      push    di
    354357                         add     di, 4   ; Seek to "PartitionName" item
    355358                         mov     cx, bx
    356359                         rep     cmpsb
    357                       pop     di si
     360                      pop     di
     361                      pop     si
    358362                      je      CmdLine_RebootToSearchDone
    359363                      add     di, 34     ; Length of IPT entry
     
    363367                  CmdLine_RebootToSearchDone:
    364368                   mov     bl, ds:[di+17] ; Get "Flags"
    365                 pop     di es cx
     369                pop     di
     370                pop     es
     371                pop     cx
    366372                or      dl, dl           ; If no partitions left -> not found
    367373                jz      CmdLine_RebootToNotFound
Note: See TracChangeset for help on using the changeset viewer.