home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 11 Util / 11-Util.zip / BOOTANY1.ZIP / BOOTANY.INC < prev    next >
Text File  |  1990-09-28  |  1KB  |  44 lines

  1. Numeric         equ     30H             ; First numeric value
  2. BootLocation    equ     7C00h           ; Address where DOS loads us
  3. BootSeg         equ     07C0h           ; Segment where DOS loads us
  4. NewBootLocation equ     7A00h           ; Address where we relocate
  5. NewBootSeg      equ     07A0h           ; Segment where we relocate
  6. PartAddr        equ     1beh            ; offset to partition table
  7. KeyboardFlags   equ     417h            ; Address of keyboard mask
  8. NumLockOff      equ     11011111b       ; Mask to turn numlock off
  9. NumLockOn       equ     11111111b       ; Mask to leave numlock on
  10. max_partitions  equ     3               ; Can't fit any more
  11. part_text_len   equ     15              ; max bytes for partition desc
  12.  
  13. PartitionEntry  struc
  14. BootIndicator   db      ?
  15. BeginHead       db      ?
  16. BeginSector     db      ?
  17. BeginCyl        db      ?
  18. SystemID        db      ?
  19. EndHead         db      ?
  20. EndSector       db      ?
  21. EndCyl          db      ?
  22. RelSectorLow    dw      ?
  23. RelSectorHigh   dw      ?
  24. NumSectorsLow   dw      ?
  25. NumSectorsHigh  dw      ?
  26. PartitionEntry  ends
  27.  
  28. PartData        struc
  29. partition       db   0
  30. text            db   part_text_len dup(0)
  31. term            db   +80h
  32. PartData        ends
  33.  
  34. PartDataLen     equ  SIZE PartData * max_partitions
  35.  
  36. BootData        struc
  37. numlockMask     db   NumLockOff
  38. BootData        ends
  39.  
  40. BootDataLen     equ  SIZE BootData
  41.  
  42. DataAddr        equ  PartAddr - BootDataLen - PartDataLen
  43.  
  44.