Changeset 37 for trunk/TOOLS/DOS
- Timestamp:
- Apr 11, 2014, 8:39:07 PM (11 years ago)
- Location:
- trunk/TOOLS/DOS
- Files:
-
- 1 added
- 3 edited
- 1 copied
Legend:
- Unmodified
- Added
- Removed
-
trunk/TOOLS/DOS/INITHDD/INITHDD.ASM
r30 r37 17 17 ; 18 18 19 JUMPS19 ;JUMPS 20 20 21 Include ..\..\..\include\asm.inc 22 ;include ..\..\..\include\dos\airboot.inc 21 Include ../../../INCLUDE/ASM.INC 23 22 24 23 .386p 25 model large, basic24 .model large, basic 26 25 27 26 code_seg segment public use16 … … 30 29 air_boot_setup: jmp INITHDD_Start 31 30 32 Introduction :db 'INITHDD - AiR-BOOT Initialize HDD Utility (DOS) - (c) 2004 by M. Kiewitz',13,1031 Introduction db 'INITHDD - AiR-BOOT Initialize HDD Utility (DOS) - (c) 2004 by M. Kiewitz',13,10 33 32 db 0 34 33 … … 69 68 dw 00000h, 00000h, 00000h, 0AA55h 70 69 71 ; Include .. \..\..\include\DOS\Const.asm70 ; Include ../../../INCLUDE\DOS\CONST.ASM 72 71 73 72 INITHDD_Start: mov ax, cs -
trunk/TOOLS/DOS/INITHDD/MAKE.BAT
r30 r37 8 8 %exe2bin% inithdd.exe inithdd.com >nul 9 9 if errorlevel 1 goto Failed 10 copy inithdd.com ..\..\..\RELEASE\DOS\inithdd.com 10 copy inithdd.com ..\..\..\RELEASE\DOS\INITHDD.COM 11 12 @ren inithdd.LST inithdd.TSL 13 @ren inithdd.TSL INITHDD.LST 11 14 12 15 rem Cleanup -
trunk/TOOLS/DOS/INITHDD/MAKE.CMD
r36 r37 1 1 @echo off 2 2 rem Do actual build... 3 call ..\..\..\env\ dos.bat3 call ..\..\..\env\os2.cmd 4 4 %assembler% inithdd.asm 5 5 if errorlevel 1 goto Failed 6 %linker% inithdd.obj >nul6 %linker% inithdd.obj; >nul 7 7 if errorlevel 1 goto Failed 8 8 %exe2bin% inithdd.exe inithdd.com >nul 9 9 if errorlevel 1 goto Failed 10 copy inithdd.com ..\..\..\RELEASE\DOS\inithdd.com 10 copy inithdd.com ..\..\..\RELEASE\DOS\INITHDD.COM 11 12 @ren inithdd.LST inithdd.TSL 13 @ren inithdd.TSL INITHDD.LST 11 14 12 15 rem Cleanup -
trunk/TOOLS/DOS/SETABOOT/SETABOOT.ASM
r29 r37 19 19 JUMPS 20 20 21 Include .. \..\..\Include\asm.inc22 include .. \..\..\include\dos\airboot.inc21 Include ../../../INCLUDE/ASM.INC 22 include ../../../INCLUDE/DOS/AIRBOOT.INC 23 23 24 24 .386p … … 60 60 db ' detected.', 13, 10, 0 61 61 62 Include .. \..\..\include\dos\Const.asm62 Include ../../../INCLUDE/DOS/CONST.ASM 63 63 64 64 AiRBOOTdetected db 0 … … 343 343 ; DL holds total IPT entries to go 344 344 ; DH holds current partition number (base 0) 345 push cx es di 345 push cx 346 push es 347 push di 346 348 mov ax, ds 347 349 mov es, ax ; ES == DS for now … … 351 353 mov di, offset TrackZero+6E00h ; Starting at sector 56 352 354 CmdLine_RebootToSearchLoop: 353 push si di 355 push si 356 push di 354 357 add di, 4 ; Seek to "PartitionName" item 355 358 mov cx, bx 356 359 rep cmpsb 357 pop di si 360 pop di 361 pop si 358 362 je CmdLine_RebootToSearchDone 359 363 add di, 34 ; Length of IPT entry … … 363 367 CmdLine_RebootToSearchDone: 364 368 mov bl, ds:[di+17] ; Get "Flags" 365 pop di es cx 369 pop di 370 pop es 371 pop cx 366 372 or dl, dl ; If no partitions left -> not found 367 373 jz CmdLine_RebootToNotFound
Note:
See TracChangeset
for help on using the changeset viewer.