Subversion Repositories Kolibri OS

Rev

Rev 9938 | Blame | Compare with Previous | Last modification | View Log | Download | RSS feed

  1. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  2. ;;                                                              ;;
  3. ;; Copyright (C) KolibriOS team 2004-2015. All rights reserved. ;;
  4. ;; Distributed under terms of the GNU General Public License    ;;
  5. ;;                                                              ;;
  6. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  7.  
  8. ;======================================================================
  9. ;
  10. ;                           BOOT DATA
  11. ;
  12. ;======================================================================
  13.  
  14. $Revision: 9942 $
  15.  
  16.  
  17. d80x25_bottom:
  18.           db       186,' KolibriOS comes with ABSOLUTELY NO WARRANTY. See file COPYING for details    ',186
  19.           db       186,' If you find any bugs, please report them at: http://board.kolibrios.org      ',186
  20.           line_full_bottom
  21. d80x25_bottom_num = 3
  22.  
  23. msg_apm   db      " APM x.x ", 0
  24. novesa    db      "Display: EGA/CGA",13,10,0
  25. s_vesa    db      "Version of VESA: "
  26.   .ver    db      "?.?",13,10,0
  27.  
  28. gr_mode   db      "Select a videomode: ",13,10,0
  29.  
  30. ask_bd    db      "Add disks visible by BIOS emulated in V86-mode? [1-yes, 2-no]: ",0
  31.  
  32. if defined extended_primary_loader
  33. bdev      db      "Load ramdisk from [1-floppy; 2-kolibri.img; 3-don't load]: ",0
  34. else
  35. bdev      db      "Load ramdisk from [1-floppy; 2-C:\kolibri.img (FAT32);"
  36.           db      13,10,186,"                    "
  37.           db      "3-preloaded ram-image (flash-disk, dualboot, "
  38.           db      13,10,186,"                    "
  39.           db      "kernel restart, etc.)]: ",0
  40. end if
  41.  
  42. prnotfnd  db      "Fatal - Videomode not found.",0
  43.  
  44. not386    db      "Fatal - CPU 386+ required.",0
  45. fatalsel  db      "Fatal - Graphics mode not supported by hardware.",0
  46. pres_key  db      "Press any key to choose a new videomode.",0
  47. badsect   db      13,10,186," Fatal - Bad sector. Replace floppy.",0
  48. memmovefailed db  13,10,186," Fatal - Int 0x15 move failed.",0
  49. okt       db      " ... OK"
  50. linef     db      13,10,0
  51. diskload  db      "Loading diskette: 00 %",8,8,8,8,0
  52. pros      db      "00"
  53. backspace2 db     8,8,0
  54. boot_dev  db      0  ; 0=floppy, 1=hd
  55. start_msg db      "Press [abcde] to change settings, press [Enter] to continue booting",13,10,0
  56. time_msg  db      " or wait "
  57. time_str  db      " 5 seconds"
  58.           db      " to continue automatically",13,10,0
  59. current_cfg_msg db "Current settings:",13,10,0
  60. curvideo_msg db   " [a] Videomode: ",0
  61.  
  62. mode0     db      "320x200, EGA/CGA 256 colors",13,10,0
  63. mode9     db      "640x480, VGA 16 colors",13,10,0
  64.  
  65. usebd_msg db      " [b] Add disks visible by BIOS:",0
  66. on_msg    db      " on",13,10,0
  67. off_msg   db      " off",13,10,0
  68.  
  69. debug_mode_msg db " [c] Duplicate debug output to the screen:",0
  70. ask_debug      db "Duplicate debug output to the screen? [1-yes, 2-no]: ",0
  71.  
  72. launcher_msg   db " [d] Start LAUNCHER after kernel is loaded:",0
  73. ask_launcher   db "Start first application (LAUNCHER) after kernel is loaded? [1-yes, 2-no]: ",0
  74.  
  75. preboot_device_msg db " [e] Floppy image: ",0
  76.  
  77. if defined extended_primary_loader
  78. preboot_device_msgs dw 0,pdm1,pdm2,pdm3,0
  79. pdm1      db      "real floppy",13,10,0
  80. pdm2      db      "C:\kolibri.img (FAT32)",13,10,0
  81. pdm3      db      "do not use floppy image",13,10,0
  82. else
  83. preboot_device_msgs dw 0,pdm1,pdm2,pdm3,pdm4,0
  84. pdm1      db      "real floppy",13,10,0
  85. pdm2      db      "C:\kolibri.img (FAT32)",13,10,0
  86. pdm3      db      "use already loaded image",13,10,0
  87. pdm4      db      "create blank image",13,10,0
  88. end if
  89.  
  90. loading_msg db    "Loading KolibriOS...",0
  91.  
  92. if ~ defined extended_primary_loader
  93. save_quest db     "New settings have been applied.",13,10,13,10,186
  94.            db     " Do you want to record them for the future boots?",13,10,186
  95.            db     " Answer 'yes' only if your booting device is writable. [y/n]: ",0
  96. loader_block_error db "Bootloader data invalid, I cannot continue. Stopped.",0
  97. write_err_msg db "Recording the configuration has failed. Press any key to resume booting...",0
  98. end if
  99.  
  100. _st latin1 '║                   ┌───────────────────────────────┬─┐',13,10,0
  101. _r1 latin1 '║                   │  320x200  EGA/CGA 256 colors  │ │',13,10,0
  102. _r2 latin1 '║                   │  640x480  VGA 16 colors       │ │',13,10,0
  103. _rs latin1 '║                   │  ????x????@??  SVGA VESA      │ │',13,10,0
  104. _bt latin1 '║                   └───────────────────────────────┴─┘',13,10,0
  105.  
  106. remark1 db      "Default values were selected to match most of configurations, but not all.",0
  107. remark2 db      "If the system does not boot, try to disable option [b]. If the system gets",0
  108. remark3 db      "stuck after booting, enable option [c], disable option [d] and make photo.",0
  109. remarks dw      remark1, remark2, remark3
  110. num_remarks = 3
  111.