Changeset 37 for trunk/TOOLS/DOS/SETABOOT
- Timestamp:
- Apr 11, 2014, 8:39:07 PM (12 years ago)
- Location:
- trunk/TOOLS/DOS/SETABOOT
- Files:
-
- 1 added
- 1 edited
-
MAKE.CMD (added)
-
SETABOOT.ASM (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
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.
