forked from KolibriOS/kolibrios
Kolibri-A: anoying blue screen menu removed
git-svn-id: svn://kolibrios.org@1700 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
parent
ccb39c0999
commit
39b5906518
Binary file not shown.
@ -47,8 +47,8 @@ printplain:
|
|||||||
popa
|
popa
|
||||||
ret
|
ret
|
||||||
|
|
||||||
getkey:
|
getkey:
|
||||||
; get number in range [bl,bh] (bl,bh in ['0'..'9'])
|
;get number in range [bl,bh] (bl,bh in ['0'..'9'])
|
||||||
; in: bx=range
|
; in: bx=range
|
||||||
; out: ax=digit (1..9, 10 for 0)
|
; out: ax=digit (1..9, 10 for 0)
|
||||||
mov ah, 0
|
mov ah, 0
|
||||||
@ -209,32 +209,16 @@ dfl1:
|
|||||||
; draw bottom
|
; draw bottom
|
||||||
mov si, d80x25_bottom
|
mov si, d80x25_bottom
|
||||||
mov cx, d80x25_bottom_num * 80
|
mov cx, d80x25_bottom_num * 80
|
||||||
@@:
|
;@@:
|
||||||
lodsb
|
; lodsb
|
||||||
stosw
|
; stoswvmode
|
||||||
loop @b
|
; loop @b
|
||||||
|
|
||||||
mov byte [space_msg+80], 0 ; now space_msg is null terminated
|
mov byte [space_msg+80], 0 ; now space_msg is null terminated
|
||||||
|
|
||||||
_setcursor d80x25_top_num,0
|
_setcursor d80x25_top_num,0
|
||||||
|
|
||||||
|
|
||||||
; TEST FOR 386+
|
|
||||||
jmp cpugood
|
|
||||||
; mov bx, 0x4000
|
|
||||||
; pushf
|
|
||||||
; pop ax
|
|
||||||
; mov dx, ax
|
|
||||||
; xor ax, bx
|
|
||||||
; push ax
|
|
||||||
; popf
|
|
||||||
; pushf
|
|
||||||
; pop ax
|
|
||||||
; and ax, bx
|
|
||||||
; and dx, bx
|
|
||||||
; cmp ax, dx
|
|
||||||
; jnz cpugood
|
|
||||||
; mov si, not386
|
|
||||||
sayerr:
|
sayerr:
|
||||||
call print
|
call print
|
||||||
jmp $
|
jmp $
|
||||||
@ -403,7 +387,7 @@ cfgmanager:
|
|||||||
mov si, curvideo_msg
|
mov si, curvideo_msg
|
||||||
call print
|
call print
|
||||||
|
|
||||||
call draw_current_vmode
|
;<< call draw_current_vmode
|
||||||
|
|
||||||
mov si, usebd_msg
|
mov si, usebd_msg
|
||||||
cmp [preboot_biosdisk], 1
|
cmp [preboot_biosdisk], 1
|
||||||
|
@ -1,115 +0,0 @@
|
|||||||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
||||||
;; ;;
|
|
||||||
;; Copyright (C) KolibriOS team 2004-2007. All rights reserved. ;;
|
|
||||||
;; Distributed under terms of the GNU General Public License ;;
|
|
||||||
;; ;;
|
|
||||||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
||||||
|
|
||||||
;======================================================================
|
|
||||||
;
|
|
||||||
; BOOT DATA
|
|
||||||
;
|
|
||||||
;======================================================================
|
|
||||||
|
|
||||||
$Revision$
|
|
||||||
|
|
||||||
|
|
||||||
d80x25_bottom:
|
|
||||||
db 186,' KolibriOS based on MenuetOS and comes with ABSOLUTELY '
|
|
||||||
db 'NO WARRANTY ',186
|
|
||||||
db 186,' See file COPYING for details '
|
|
||||||
db ' ',186
|
|
||||||
line_full_bottom
|
|
||||||
d80x25_bottom_num = 3
|
|
||||||
|
|
||||||
novesa db "Ekraan: EGA/CGA",13,10,0
|
|
||||||
vervesa db "Vesa versioon: Vesa x.x",13,10,0
|
|
||||||
vervesa_off=20
|
|
||||||
msg_apm db " APM x.x ", 0
|
|
||||||
gr_mode db 186," Vesa 2.0+ 16 M LFB: [1] 640x480, [2] 800x600, "
|
|
||||||
db "[3] 1024x768, [4] 1280x1024",13,10
|
|
||||||
db 186," Vesa 1.2 16 M Bnk: [5] 640x480, [6] 800x600, "
|
|
||||||
db "[7] 1024x768, [8] 1280x1024",13,10
|
|
||||||
db 186," EGA/CGA 256 värvi: [9] 320x200, "
|
|
||||||
db "VGA 16 värvi: [0] 640x480",13,10
|
|
||||||
db 186," Vali reziim: ",0
|
|
||||||
bt24 db "Bitti pikseli kohta: 24",13,10,0
|
|
||||||
bt32 db "Bitti pikseli kohta: 32",13,10,0
|
|
||||||
vrrmprint db "Kinnita VRR? (ekraani sagedus suurem kui 60Hz"
|
|
||||||
db " ainult:",13,10
|
|
||||||
db 186," 1024*768->800*600 ja 800*600->640*480) [1-jah,2-ei]:",0
|
|
||||||
;askmouse db " Hiir:"
|
|
||||||
; db " [1] PS/2 (USB), [2] Com1, [3] Com2."
|
|
||||||
; db " Vali port [1-3]: ",0
|
|
||||||
;no_com1 db 13,10,186, " No COM1 mouse",0
|
|
||||||
;no_com2 db 13,10,186, " No COM2 mouse",0
|
|
||||||
;ask_dma db "Use DMA for HDD access? [1-yes, 2-only for reading, 3-no]: ",0
|
|
||||||
ask_bd db "Add disks visible by BIOS emulated in V86-mode? [1-yes, 2-no]: ",0
|
|
||||||
;gr_direct db 186," Use direct LFB writing? "
|
|
||||||
; db "[1-yes/2-no] ? ",0
|
|
||||||
;mem_model db 13,10,186," Motherboard memory [1-16 Mb / 2-32 Mb / "
|
|
||||||
; db "3-64Mb / 4-128 Mb / 5-256 Mb] ? ",0
|
|
||||||
;bootlog db 13,10,186," After bootlog display [1-continue/2-pause] ? ",0
|
|
||||||
bdev db "Paigalda mäluketas [1-diskett; 2-C:\kolibri.img (FAT32);"
|
|
||||||
db 13,10,186," "
|
|
||||||
db "3-kasuta eellaaditud mäluketast kerneli restardist;"
|
|
||||||
db 13,10,186," "
|
|
||||||
db "4-loo tühi pilt]: ",0
|
|
||||||
probetext db 13,10,13,10,186," Kasuta standartset graafika reziimi? [1-jah, "
|
|
||||||
db "2-leia biosist (Vesa 3.0)]: ",0
|
|
||||||
;memokz256 db 13,10,186," RAM 256 Mb",0
|
|
||||||
;memokz128 db 13,10,186," RAM 128 Mb",0
|
|
||||||
;memokz64 db 13,10,186," RAM 64 Mb",0
|
|
||||||
;memokz32 db 13,10,186," RAM 32 Mb",0
|
|
||||||
;memokz16 db 13,10,186," RAM 16 Mb",0
|
|
||||||
prnotfnd db "Fataalne - Videoreziimi ei leitud.",0
|
|
||||||
;modena db "Fataalne - VBE 0x112+ on vajalik.",0
|
|
||||||
not386 db "Fataalne - CPU 386+ on vajalik.",0
|
|
||||||
btns db "Fataalne - Ei suuda värvisügavust määratleda.",0
|
|
||||||
fatalsel db "Fataalne - Graafilist reziimi riistvara ei toeta.",0
|
|
||||||
badsect db 13,10,186," Fataalne - Vigane sektor. Asenda diskett.",0
|
|
||||||
memmovefailed db 13,10,186," Fataalne - Int 0x15 liigutamine ebaõnnestus.",0
|
|
||||||
okt db " ... OK"
|
|
||||||
linef db 13,10,0
|
|
||||||
diskload db "Loen disketti: 00 %",8,8,8,8,0
|
|
||||||
pros db "00"
|
|
||||||
backspace2 db 8,8,0
|
|
||||||
boot_dev db 0 ; 0=floppy, 1=hd
|
|
||||||
start_msg db "Vajuta [abcd] seadete muutmiseks, vajuta [Enter] laadimise jätkamiseks",13,10,0
|
|
||||||
time_msg db " või oota "
|
|
||||||
time_str db " 5 sekundit"
|
|
||||||
db " automaatseks jätkamiseks",13,10,0
|
|
||||||
current_cfg_msg db "Praegused seaded:",13,10,0
|
|
||||||
curvideo_msg db " [a] Videoreziim: ",0
|
|
||||||
mode1 db "640x480",0
|
|
||||||
mode2 db "800x600",0
|
|
||||||
mode3 db "1024x768",0
|
|
||||||
mode4 db "1280x1024",0
|
|
||||||
modes_msg dw mode4,mode1,mode2,mode3
|
|
||||||
modevesa20 db " koos LFB",0
|
|
||||||
modevesa12 db ", VESA 1.2 Bnk",0
|
|
||||||
mode9 db "320x200, EGA/CGA 256 värvi",0
|
|
||||||
mode10 db "640x480, VGA 16 värvi",0
|
|
||||||
probeno_msg db " (standard reziim)",0
|
|
||||||
probeok_msg db " (kontrolli ebastandardseid reziime)",0
|
|
||||||
;dma_msg db " [b] Kasuta DMA'd HDD juurdepääsuks:",0
|
|
||||||
usebd_msg db " [b] Add disks visible by BIOS:",0
|
|
||||||
on_msg db " sees",13,10,0
|
|
||||||
off_msg db " väljas",13,10,0
|
|
||||||
;readonly_msg db " ainult lugemiseks",13,10,0
|
|
||||||
vrrm_msg db " [c] Kasuta VRR:",0
|
|
||||||
preboot_device_msg db " [d] Disketi kujutis: ",0
|
|
||||||
preboot_device_msgs dw 0,pdm1,pdm2,pdm3
|
|
||||||
pdm1 db "reaalne diskett",13,10,0
|
|
||||||
pdm2 db "C:\kolibri.img (FAT32)",13,10,0
|
|
||||||
pdm3 db "kasuta juba laaditud kujutist",13,10,0
|
|
||||||
pdm4 db "loo tühi pilt",13,10,0
|
|
||||||
loading_msg db "Laadin KolibriOS...",0
|
|
||||||
save_quest db "Jäta meelde praegused seaded? [y/n]: ",0
|
|
||||||
loader_block_error db "Alglaaduri andmed vigased, ei saa jätkata. Peatatud.",0
|
|
||||||
|
|
||||||
remark1 db "Default values were selected to match most of configurations, but not all.",0
|
|
||||||
remark2 db "If you have CRT-monitor, enable VRR in the item [c].",0
|
|
||||||
remark3 db "If the system does not boot, try to disable the item [b].",0
|
|
||||||
remarks dw remark1, remark2, remark3
|
|
||||||
num_remarks = 3
|
|
@ -1,120 +0,0 @@
|
|||||||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
||||||
;; ;;
|
|
||||||
;; Copyright (C) KolibriOS team 2004-2007. All rights reserved. ;;
|
|
||||||
;; Distributed under terms of the GNU General Public License ;;
|
|
||||||
;; ;;
|
|
||||||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
||||||
|
|
||||||
;======================================================================
|
|
||||||
;
|
|
||||||
; BOOT DATA
|
|
||||||
;
|
|
||||||
;======================================================================
|
|
||||||
|
|
||||||
$Revision$
|
|
||||||
|
|
||||||
|
|
||||||
d80x25_bottom:
|
|
||||||
; db 186,' KolibriOS based on MenuetOS and comes with ABSOLUTELY '
|
|
||||||
; db 'NO WARRANTY ',186
|
|
||||||
; db 186,' See file COPYING for details '
|
|
||||||
; db ' ',186
|
|
||||||
|
|
||||||
db 186,' KolibriOS basiert auf MenuetOS und wird ohne jegliche '
|
|
||||||
db ' Garantie vertrieben ',186
|
|
||||||
db 186,' Details stehen in der Datei COPYING '
|
|
||||||
db ' ',186
|
|
||||||
line_full_bottom
|
|
||||||
d80x25_bottom_num = 3
|
|
||||||
|
|
||||||
novesa db "Anzeige: EGA/CGA ",13,10,0
|
|
||||||
vervesa db "Vesa-Version: Vesa ",13,10,0
|
|
||||||
vervesa_off=22
|
|
||||||
msg_apm db " APM x.x ", 0
|
|
||||||
gr_mode db 186," Vesa 2.0+ 16 M LFB: [1] 640x480, [2] 800x600, "
|
|
||||||
db "[3] 1024x768, [4] 1280x1024",13,10
|
|
||||||
db 186," Vesa 1.2 16 M Bnk: [5] 640x480, [6] 800x600, "
|
|
||||||
db "[7] 1024x768, [8] 1280x1024",13,10
|
|
||||||
db 186," EGA/CGA 256 Farben: [9] 320x200, "
|
|
||||||
db "VGA 16 Farben: [0] 640x480",13,10
|
|
||||||
db 186," Waehle Modus: ",0
|
|
||||||
bt24 db "Bits Per Pixel: 24",13,10,0
|
|
||||||
bt32 db "Bits Per Pixel: 32",13,10,0
|
|
||||||
vrrmprint db "VRR verwenden? (Monitorfrequenz groesser als 60Hz"
|
|
||||||
db " only for transfers:",13,10
|
|
||||||
db 186," 1024*768->800*600 und 800*600->640*480) [1-ja,2-nein]:",0
|
|
||||||
;askmouse db " Maus angeschlossen an:"
|
|
||||||
; db " [1] PS/2 (USB), [2] Com1, [3] Com2."
|
|
||||||
; db " Waehle Port [1-3]: ",0
|
|
||||||
;no_com1 db 13,10,186, " Keine COM1 Maus",0
|
|
||||||
;no_com2 db 13,10,186, " Keine COM2 Maus",0
|
|
||||||
;ask_dma db "Nutze DMA zum HDD Zugriff? [1-ja, 2-allein fur Lesen, 3-nein]: ",0
|
|
||||||
ask_bd db "Add disks visible by BIOS emulated in V86-mode? [1-yes, 2-no]: ",0
|
|
||||||
;gr_direct db 186," Benutze direct LFB? "
|
|
||||||
; db "[1-ja/2-nein] ? ",0
|
|
||||||
;mem_model db 13,10,186," Hauptspeicher [1-16 Mb / 2-32 Mb / "
|
|
||||||
; db "3-64Mb / 4-128 Mb / 5-256 Mb] ? ",0
|
|
||||||
;bootlog db 13,10,186," After bootlog display [1-continue/2-pause] ? ",0
|
|
||||||
bdev db "Lade die Ramdisk von [1-Diskette; 2-C:\kolibri.img (FAT32);"
|
|
||||||
db 13,10,186," "
|
|
||||||
db "3-benutze ein bereits geladenes Kernel image;"
|
|
||||||
db 13,10,186," "
|
|
||||||
db "4-create blank image]: ",0
|
|
||||||
probetext db 13,10,13,10,186," Nutze Standardgrafikmodi? [1-ja, "
|
|
||||||
db "2-BIOS Test (Vesa 3.0)]: ",0
|
|
||||||
;memokz256 db 13,10,186," RAM 256 Mb",0
|
|
||||||
;memokz128 db 13,10,186," RAM 128 Mb",0
|
|
||||||
;memokz64 db 13,10,186," RAM 64 Mb",0
|
|
||||||
;memokz32 db 13,10,186," RAM 32 Mb",0
|
|
||||||
;memokz16 db 13,10,186," RAM 16 Mb",0
|
|
||||||
prnotfnd db "Fatal - Videomodus nicht gefunden.",0
|
|
||||||
;modena db "Fatal - VBE 0x112+ required.",0
|
|
||||||
not386 db "Fatal - CPU 386+ benoetigt.",0
|
|
||||||
btns db "Fatal - konnte Farbtiefe nicht erkennen.",0
|
|
||||||
fatalsel db "Fatal - Grafikmodus nicht unterstuetzt.",0
|
|
||||||
badsect db 13,10,186," Fatal - Sektorfehler, Andere Diskette neutzen.",0
|
|
||||||
memmovefailed db 13,10,186," Fatal - Int 0x15 Fehler.",0
|
|
||||||
okt db " ... OK"
|
|
||||||
linef db 13,10,0
|
|
||||||
diskload db "Lade Diskette: 00 %",8,8,8,8,0
|
|
||||||
pros db "00"
|
|
||||||
backspace2 db 8,8,0
|
|
||||||
boot_dev db 0 ; 0=floppy, 1=hd
|
|
||||||
start_msg db "Druecke [abcd], um die Einstellungen zu aendern , druecke [Enter] zum starten",13,10,0
|
|
||||||
time_msg db " oder warte "
|
|
||||||
time_str db " 5 Sekunden"
|
|
||||||
db " bis zum automatischen Start",13,10,0
|
|
||||||
current_cfg_msg db "Aktuelle Einstellungen:",13,10,0
|
|
||||||
curvideo_msg db " [a] Videomodus: ",0
|
|
||||||
mode1 db "640x480",0
|
|
||||||
mode2 db "800x600",0
|
|
||||||
mode3 db "1024x768",0
|
|
||||||
mode4 db "1280x1024",0
|
|
||||||
modes_msg dw mode4,mode1,mode2,mode3
|
|
||||||
modevesa20 db " mit LFB",0
|
|
||||||
modevesa12 db ", VESA 1.2 Bnk",0
|
|
||||||
mode9 db "320x200, EGA/CGA 256 colors",0
|
|
||||||
mode10 db "640x480, VGA 16 colors",0
|
|
||||||
probeno_msg db " (Standard Modus)",0
|
|
||||||
probeok_msg db " (teste nicht-standard Modi)",0
|
|
||||||
;dma_msg db " [b] Nutze DMA zum HDD Aufschreiben:",0
|
|
||||||
usebd_msg db " [b] Add disks visible by BIOS:",0
|
|
||||||
on_msg db " an",13,10,0
|
|
||||||
off_msg db " aus",13,10,0
|
|
||||||
;readonly_msg db " fur Lesen",13,10,0
|
|
||||||
vrrm_msg db " [c] Nutze VRR:",0
|
|
||||||
preboot_device_msg db " [d] Diskettenimage: ",0
|
|
||||||
preboot_device_msgs dw 0,pdm1,pdm2,pdm3
|
|
||||||
pdm1 db "Echte Diskette",13,10,0
|
|
||||||
pdm2 db "C:\kolibri.img (FAT32)",13,10,0
|
|
||||||
pdm3 db "Nutze bereits geladenes Image",13,10,0
|
|
||||||
pdm4 db "create blank image",13,10,0
|
|
||||||
loading_msg db "Lade KolibriOS...",0
|
|
||||||
save_quest db "Aktuelle Einstellungen speichern? [y/n]: ",0
|
|
||||||
loader_block_error db "Bootloader Daten ungueltig, Kann nicht fortfahren. Angehalten.",0
|
|
||||||
|
|
||||||
remark1 db "Default values were selected to match most of configurations, but not all.",0
|
|
||||||
remark2 db "If you have CRT-monitor, enable VRR in the item [c].",0
|
|
||||||
remark3 db "If the system does not boot, try to disable the item [b].",0
|
|
||||||
remarks dw remark1, remark2, remark3
|
|
||||||
num_remarks = 3
|
|
@ -1,91 +0,0 @@
|
|||||||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
||||||
;; ;;
|
|
||||||
;; Copyright (C) KolibriOS team 2004-2008. All rights reserved. ;;
|
|
||||||
;; Distributed under terms of the GNU General Public License ;;
|
|
||||||
;; ;;
|
|
||||||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
||||||
|
|
||||||
;=================================================================
|
|
||||||
;
|
|
||||||
; BOOT DATA
|
|
||||||
;
|
|
||||||
;=================================================================
|
|
||||||
|
|
||||||
$Revision$
|
|
||||||
|
|
||||||
|
|
||||||
d80x25_bottom:
|
|
||||||
db 186,' Kolibri OS ®á®¢ Menuet OS ¨ ¥ ¯à¥¤®áâ ¢«ï¥â '
|
|
||||||
db '¨ª ª¨å £ àa⨩. ',186
|
|
||||||
db 186,' <20>®¤à®¡¥¥ ᬮâà¨â¥ ¢ ä ©«¥ COPYING.TXT '
|
|
||||||
db ' ',186
|
|
||||||
line_full_bottom
|
|
||||||
d80x25_bottom_num = 3
|
|
||||||
|
|
||||||
msg_apm db " APM x.x ", 0
|
|
||||||
novesa db "‚¨¤¥®ª àâ : EGA/CGA",13,10,0
|
|
||||||
s_vesa db "‚¥àá¨ï VESA: "
|
|
||||||
.ver db "?.?",13,10,0
|
|
||||||
|
|
||||||
gr_mode db "‚ë¡¥à¨â¥ ¢¨¤¥®à¥¦¨¬: ",13,10,0
|
|
||||||
vrrmprint db "ˆá¯®«ì§®¢ âì VRR? (ç áâ®â ª ¤à®¢ ¢ëè¥ 60 ƒæ"
|
|
||||||
db " ⮫쪮 ¤«ï ¯¥à¥å®¤®¢:",13,10
|
|
||||||
db 186," 1024*768>800*600 ¨ 800*600>640*480) [1-¤ , 2-¥â]: ",0
|
|
||||||
;ask_dma db "ˆá¯®«ì§®¢ âì DMA ¤«ï ¤®áâ㯠ª HDD? [1-¤ , 2-⮫쪮 ç⥨¥, 3-¥â]: ",0
|
|
||||||
ask_bd db "„®¡ ¢¨âì ¤¨áª¨, ¢¨¤¨¬ë¥ ç¥à¥§ BIOS ¢ ०¨¬¥ V86? [1-¤ , 2-¥â]: ",0
|
|
||||||
bdev db "‡ £à㧨âì ®¡à § ¨§ [1-¤¨áª¥â ; 2-C:\kolibri.img (FAT32);"
|
|
||||||
db 13,10,186," "
|
|
||||||
db "3-¨á¯®«ì§®¢ âì 㦥 § £àã¦¥ë© ®¡à §;"
|
|
||||||
db 13,10,186," "
|
|
||||||
db "4-ᮧ¤ âì ç¨áâë© ®¡à §]: ",0
|
|
||||||
prnotfnd db "Žè¨¡ª - ‚¨¤¥®à¥¦¨¬ ¥ ©¤¥.",0
|
|
||||||
not386 db "Žè¨¡ª - ’ॡã¥âáï ¯à®æ¥áá®à 386+.",0
|
|
||||||
fatalsel db "Žè¨¡ª - ‚ë¡à ë© ¢¨¤¥®à¥¦¨¬ ¥ ¯®¤¤¥à¦¨¢ ¥âáï.",0
|
|
||||||
pres_key db "<EFBFBD> ¦¨¬¨â¥ «î¡ãî ª« ¢¨èã, ¤«ï ¯¥à¥å®¤ ¢ ¢ë¡®à ०¨¬®¢.",0
|
|
||||||
badsect db 13,10,186," Žè¨¡ª - „¨áª¥â ¯®¢à¥¦¤¥ . <20>®¯à®¡ã©â¥ ¤àã£ãî.",0
|
|
||||||
memmovefailed db 13,10,186," Žè¨¡ª - Int 0x15 move failed.",0
|
|
||||||
okt db " ... OK"
|
|
||||||
linef db 13,10,0
|
|
||||||
diskload db "‡ £à㧪 ¤¨áª¥âë: 00 %",8,8,8,8,0
|
|
||||||
pros db "00"
|
|
||||||
backspace2 db 8,8,0
|
|
||||||
boot_dev db 0
|
|
||||||
start_msg db "<EFBFBD> ¦¬¨â¥ [abcd] ¤«ï ¨§¬¥¥¨ï áâ஥ª, [Enter] ¤«ï ¯à®¤®«¦¥¨ï § £à㧪¨",13,10,0
|
|
||||||
time_msg db " ¨«¨ ¯®¤®¦¤¨â¥ "
|
|
||||||
time_str db " 5 ᥪ㤠"
|
|
||||||
db " ¤® ¢â®¬ â¨ç¥áª®£® ¯à®¤®«¦¥¨ï",13,10,0
|
|
||||||
current_cfg_msg db "’¥ªã騥 áâனª¨:",13,10,0
|
|
||||||
curvideo_msg db " [a] ‚¨¤¥®à¥¦¨¬: ",0
|
|
||||||
|
|
||||||
|
|
||||||
mode0 db "320x200, EGA/CGA 256 梥⮢",13,10,0
|
|
||||||
mode9 db "640x480, VGA 16 梥⮢",13,10,0
|
|
||||||
|
|
||||||
usebd_msg db " [b] „®¡ ¢¨âì ¤¨áª¨, ¢¨¤¨¬ë¥ ç¥à¥§ BIOS:",0
|
|
||||||
on_msg db " ¢ª«",13,10,0
|
|
||||||
off_msg db " ¢ëª«",13,10,0
|
|
||||||
readonly_msg db " ⮫쪮 ç⥨¥",13,10,0
|
|
||||||
vrrm_msg db " [c] ˆá¯®«ì§®¢ ¨¥ VRR:",0
|
|
||||||
preboot_device_msg db " [d] Ž¡à § ¤¨áª¥âë: ",0
|
|
||||||
preboot_device_msgs dw 0,pdm1,pdm2,pdm3,pdm4
|
|
||||||
pdm1 db " áâ®ïé ï ¤¨áª¥â ",13,10,0
|
|
||||||
pdm2 db "C:\kolibri.img (FAT32)",13,10,0
|
|
||||||
pdm3 db "¨á¯®«ì§®¢ âì 㦥 § £àã¦¥ë© ®¡à §",13,10,0
|
|
||||||
pdm4 db "ᮧ¤ âì ç¨áâë© ®¡à §",13,10,0
|
|
||||||
loading_msg db "ˆ¤ñâ § £à㧪 KolibriOS...",0
|
|
||||||
save_quest db "‡ ¯®¬¨âì ⥪ã騥 áâனª¨? [y/n]: ",0
|
|
||||||
loader_block_error db "Žè¨¡ª ¢ ¤ ëå ç «ì®£® § £àã§ç¨ª , ¯à®¤®«¦¥¨¥ ¥¢®§¬®¦®.",0
|
|
||||||
|
|
||||||
|
|
||||||
_st db 186,' ÚÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÂÄ¿ ',13,10,0
|
|
||||||
_r1 db 186,' ³ 320x200 EGA/CGA 256 梥⮢ ³ ³ ',13,10,0
|
|
||||||
_r2 db 186,' ³ 640x480 VGA 16 梥⮢ ³ ³ ',13,10,0
|
|
||||||
_rs db 186,' ³ ????x????@?? SVGA VESA ³ ³ ',13,10,0
|
|
||||||
_bt db 186,' ÀÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÁÄÙ ',13,10,0
|
|
||||||
|
|
||||||
|
|
||||||
remark1 db "‡ ç¥¨ï ¯® 㬮«ç ¨î ¢ë¡à ë ¤«ï 㤮¡á⢠¡®«ìè¨á⢠, ® ¥ ¢á¥å.",0
|
|
||||||
remark2 db "…᫨ ã ‚ á <20>‹’-¬®¨â®à, ¢ª«îç¨â¥ VRR ¢ ¯ãªâ¥ [c].",0
|
|
||||||
remark3 db "…᫨ ã ‚ á ¥ £à㧨âáï á¨á⥬ , ¯®¯à®¡ã©â¥ ®âª«îç¨âì ¯ãªâ [b].",0
|
|
||||||
remarks dw remark1, remark2, remark3
|
|
||||||
num_remarks = 3
|
|
@ -187,15 +187,7 @@ calc_vmodes_table:
|
|||||||
lfs si, [es:vi.VideoModePtr]
|
lfs si, [es:vi.VideoModePtr]
|
||||||
|
|
||||||
mov bx,modes_table
|
mov bx,modes_table
|
||||||
;save no vesa mode of work 320x200, EGA/CGA 256 colors and 640x480, VGA 16 cols
|
|
||||||
; mov word [es:bx],640
|
|
||||||
; mov word [es:bx+2],480
|
|
||||||
; mov word [es:bx+6],0x13
|
|
||||||
|
|
||||||
; mov word [es:bx+10],640
|
|
||||||
; mov word [es:bx+12],480
|
|
||||||
; mov word [es:bx+16],0x12
|
|
||||||
; add bx,20
|
|
||||||
.next_mode:
|
.next_mode:
|
||||||
mov cx,word [fs:si] ; mode number
|
mov cx,word [fs:si] ; mode number
|
||||||
cmp cx,-1
|
cmp cx,-1
|
||||||
@ -206,7 +198,7 @@ calc_vmodes_table:
|
|||||||
int 0x10
|
int 0x10
|
||||||
|
|
||||||
or ah,ah
|
or ah,ah
|
||||||
jnz .modes_ok.2;vesa_info.exit
|
jnz .modes_ok.2 ;vesa_info.exit
|
||||||
|
|
||||||
test [es:mi.ModeAttributes],00000001b ;videomode support ?
|
test [es:mi.ModeAttributes],00000001b ;videomode support ?
|
||||||
jz @f
|
jz @f
|
||||||
@ -229,13 +221,13 @@ calc_vmodes_table:
|
|||||||
mov ax,[es:mi.ModeAttributes]
|
mov ax,[es:mi.ModeAttributes]
|
||||||
mov [es:bx+4],ax ; +4[2] : attributes
|
mov [es:bx+4],ax ; +4[2] : attributes
|
||||||
|
|
||||||
cmp [s_vesa.ver],'2'
|
;<< cmp [s_vesa.ver],'2'
|
||||||
jb .lp1
|
;<< jb .lp1
|
||||||
|
|
||||||
or cx,0x4000 ; use LFB
|
or cx,0x4000 ; use LFB <<< ?
|
||||||
.lp1: mov [es:bx+6],cx ; +6 : mode number
|
.lp1: mov [es:bx+6],cx ; +6 : mode number
|
||||||
movzx ax,byte [es:mi.BitsPerPixel]
|
movzx ax,byte [es:mi.BitsPerPixel]
|
||||||
mov word [es:bx+8],ax ; +8 : bits per pixel
|
mov word [es:bx+8],ax ; +8 : bits per pixel << ?
|
||||||
add bx,size_of_step ; size of record
|
add bx,size_of_step ; size of record
|
||||||
|
|
||||||
@@:
|
@@:
|
||||||
@ -251,46 +243,46 @@ calc_vmodes_table:
|
|||||||
|
|
||||||
;-----------------------------------------------------------------------------
|
;-----------------------------------------------------------------------------
|
||||||
|
|
||||||
draw_current_vmode:
|
;draw_current_vmode:
|
||||||
push 0
|
; push 0
|
||||||
pop es
|
; pop es
|
||||||
|
|
||||||
mov si,word [cursor_pos]
|
; mov si,word [cursor_pos]
|
||||||
|
|
||||||
cmp word [es:si+6],0x12
|
; cmp word [es:si+6],0x12
|
||||||
je .no_vesa_0x12
|
; je .no_vesa_0x12
|
||||||
|
|
||||||
cmp word [es:si+6],0x13
|
; cmp word [es:si+6],0x13
|
||||||
je .no_vesa_0x13
|
; je .no_vesa_0x13
|
||||||
|
|
||||||
mov di,loader_block_error
|
; mov di,loader_block_error
|
||||||
movzx eax,word[es:si+0]
|
; movzx eax,word[es:si+0]
|
||||||
mov ecx,10
|
; mov ecx,10
|
||||||
call int2strnz
|
; call int2strnz
|
||||||
mov byte[es:di],'x'
|
; mov byte[es:di],'x'
|
||||||
inc di
|
; inc di
|
||||||
movzx eax,word[es:si+2]
|
; movzx eax,word[es:si+2]
|
||||||
call int2strnz
|
; call int2strnz
|
||||||
mov byte[es:di],'x'
|
; mov byte[es:di],'x'
|
||||||
inc di
|
; inc di
|
||||||
movzx eax,word[es:si+8]
|
; movzx eax,word[es:si+8]
|
||||||
call int2strnz
|
; call int2strnz
|
||||||
mov dword[es:di],0x00000d0a
|
; mov dword[es:di],0x00000d0a
|
||||||
mov si,loader_block_error
|
; mov si,loader_block_error
|
||||||
push ds
|
; push ds
|
||||||
push es
|
; push es
|
||||||
pop ds
|
; pop ds
|
||||||
call printplain
|
; call printplain
|
||||||
pop ds
|
; pop ds
|
||||||
ret
|
; ret
|
||||||
.no_vesa_0x13:
|
;.no_vesa_0x13:
|
||||||
mov si,mode0
|
; mov si,mode0
|
||||||
jmp .print
|
; jmp .print
|
||||||
.no_vesa_0x12:
|
;.no_vesa_0x12:
|
||||||
mov si,mode9
|
; mov si,mode9
|
||||||
.print:
|
;.print:
|
||||||
call printplain
|
; call printplain
|
||||||
ret
|
; ret
|
||||||
;-----------------------------------------------------------------------------
|
;-----------------------------------------------------------------------------
|
||||||
check_first_parm:
|
check_first_parm:
|
||||||
mov si,word [preboot_graph]
|
mov si,word [preboot_graph]
|
||||||
@ -309,12 +301,6 @@ check_first_parm:
|
|||||||
call .loops
|
call .loops
|
||||||
test ax,ax
|
test ax,ax
|
||||||
jz .ok_found_mode
|
jz .ok_found_mode
|
||||||
mov ax,800
|
|
||||||
mov bx,600
|
|
||||||
mov si,modes_table
|
|
||||||
call .loops
|
|
||||||
test ax,ax
|
|
||||||
jz .ok_found_mode
|
|
||||||
|
|
||||||
mov si,modes_table
|
mov si,modes_table
|
||||||
jmp .ok_found_mode
|
jmp .ok_found_mode
|
||||||
@ -331,14 +317,9 @@ check_first_parm:
|
|||||||
jz .ok_found_mode
|
jz .ok_found_mode
|
||||||
|
|
||||||
mov si,modes_table
|
mov si,modes_table
|
||||||
; cmp ax,modes_table
|
|
||||||
; jb .zerro ;check on correct if bellow
|
|
||||||
; cmp ax,word [end_cursor]
|
|
||||||
; ja .zerro ;check on correct if anymore
|
|
||||||
|
|
||||||
.ok_found_mode:
|
.ok_found_mode:
|
||||||
mov word [home_cursor],si
|
mov word [home_cursor],si
|
||||||
; mov word [cursor_pos],si
|
|
||||||
mov word [preboot_graph],si
|
mov word [preboot_graph],si
|
||||||
mov ax,si
|
mov ax,si
|
||||||
|
|
||||||
@ -373,9 +354,6 @@ check_first_parm:
|
|||||||
jne .next
|
jne .next
|
||||||
cmp bx,word [es:si+2]
|
cmp bx,word [es:si+2]
|
||||||
jne .next
|
jne .next
|
||||||
cmp word [es:si+8],32
|
|
||||||
je .ok
|
|
||||||
cmp word [es:si+8],24
|
|
||||||
je .ok
|
je .ok
|
||||||
.next: add si,size_of_step
|
.next: add si,size_of_step
|
||||||
cmp word [es:si],-1
|
cmp word [es:si],-1
|
||||||
@ -393,200 +371,200 @@ check_first_parm:
|
|||||||
|
|
||||||
;-----------------------------------------------------------------------------
|
;-----------------------------------------------------------------------------
|
||||||
draw_vmodes_table:
|
draw_vmodes_table:
|
||||||
_setcursor 9, 2
|
; _setcursor 9, 2
|
||||||
mov si,gr_mode
|
; mov si,gr_mode
|
||||||
call printplain
|
; call printplain
|
||||||
|
|
||||||
mov si,_st
|
; mov si,_st
|
||||||
call printplain
|
; call printplain
|
||||||
|
|
||||||
push word [cursor_pos]
|
; push word [cursor_pos]
|
||||||
pop ax
|
; pop ax
|
||||||
push word [home_cursor]
|
; push word [home_cursor]
|
||||||
pop si
|
; pop si
|
||||||
mov cx,si
|
; mov cx,si
|
||||||
|
|
||||||
cmp ax,si
|
; cmp ax,si
|
||||||
je .ok
|
; je .ok
|
||||||
jb .low
|
; jb .low
|
||||||
|
|
||||||
|
|
||||||
add cx,size_of_step*long_v_table
|
; add cx,size_of_step*long_v_table
|
||||||
|
|
||||||
cmp ax,cx
|
; cmp ax,cx
|
||||||
jb .ok
|
; jb .ok
|
||||||
|
|
||||||
sub cx,size_of_step*long_v_table
|
; sub cx,size_of_step*long_v_table
|
||||||
add cx,size_of_step
|
; add cx,size_of_step
|
||||||
cmp cx,word[end_cursor]
|
; cmp cx,word[end_cursor]
|
||||||
jae .ok
|
; jae .ok
|
||||||
add si,size_of_step
|
; add si,size_of_step
|
||||||
push si
|
; push si
|
||||||
pop word [home_cursor]
|
; pop word [home_cursor]
|
||||||
jmp .ok
|
; jmp .ok
|
||||||
|
|
||||||
|
|
||||||
.low: sub cx,size_of_step
|
;.low: sub cx,size_of_step
|
||||||
cmp cx,modes_table
|
; cmp cx,modes_table
|
||||||
jb .ok
|
; jb .ok
|
||||||
push cx
|
; push cx
|
||||||
push cx
|
; push cx
|
||||||
pop word [home_cursor]
|
; pop word [home_cursor]
|
||||||
pop si
|
; pop si
|
||||||
|
|
||||||
|
|
||||||
.ok:
|
;.ok:
|
||||||
; calculate scroll position
|
; calculate scroll position
|
||||||
push si
|
; push si
|
||||||
mov ax, [end_cursor]
|
; mov ax, [end_cursor]
|
||||||
sub ax, modes_table
|
; sub ax, modes_table
|
||||||
mov bx, size_of_step
|
; mov bx, size_of_step
|
||||||
cwd
|
; cwd
|
||||||
div bx
|
; div bx
|
||||||
mov si, ax ; si = size of list
|
; mov si, ax ; si = size of list
|
||||||
mov ax, [home_cursor]
|
; mov ax, [home_cursor]
|
||||||
sub ax, modes_table
|
; sub ax, modes_table
|
||||||
cwd
|
; cwd
|
||||||
div bx
|
; div bx
|
||||||
mov di, ax
|
; mov di, ax
|
||||||
mov ax, scroll_area_size*long_v_table
|
; mov ax, scroll_area_size*long_v_table
|
||||||
cwd
|
; cwd
|
||||||
div si
|
; div si
|
||||||
test ax, ax
|
; test ax, ax
|
||||||
jnz @f
|
; jnz @f
|
||||||
inc ax
|
; inc ax
|
||||||
@@:
|
;@@:
|
||||||
cmp al, scroll_area_size
|
; cmp al, scroll_area_size
|
||||||
jb @f
|
; jb @f
|
||||||
mov al, scroll_area_size
|
; mov al, scroll_area_size
|
||||||
@@:
|
;@@:
|
||||||
mov cx, ax
|
; mov cx, ax
|
||||||
; cx = scroll height
|
; cx = scroll height
|
||||||
; calculate scroll pos
|
; calculate scroll pos
|
||||||
xor bx, bx ; initialize scroll pos
|
; xor bx, bx ; initialize scroll pos
|
||||||
sub al, scroll_area_size+1
|
; sub al, scroll_area_size+1
|
||||||
neg al
|
; neg al
|
||||||
sub si, long_v_table-1
|
; sub si, long_v_table-1
|
||||||
jbe @f
|
; jbe @f
|
||||||
mul di
|
; mul di
|
||||||
div si
|
; div si
|
||||||
mov bx, ax
|
; mov bx, ax
|
||||||
@@:
|
;@@:
|
||||||
inc bx
|
; inc bx
|
||||||
imul ax, bx, size_of_step
|
; imul ax, bx, size_of_step
|
||||||
add ax, [home_cursor]
|
; add ax, [home_cursor]
|
||||||
mov [scroll_start], ax
|
; mov [scroll_start], ax
|
||||||
imul cx, size_of_step
|
; imul cx, size_of_step
|
||||||
add ax, cx
|
; add ax, cx
|
||||||
mov [scroll_end], ax
|
; mov [scroll_end], ax
|
||||||
pop si
|
; pop si
|
||||||
mov bp,long_v_table ;show rows
|
; mov bp,long_v_table ;show rows
|
||||||
.@@_next_bit:
|
;.@@_next_bit:
|
||||||
;clear cursor
|
;clear cursor
|
||||||
mov ax,' '
|
; mov ax,' '
|
||||||
mov word[ds:_r1+21],ax
|
; mov word[ds:_r1+21],ax
|
||||||
mov word[ds:_r1+50],ax
|
; mov word[ds:_r1+50],ax
|
||||||
|
|
||||||
mov word[ds:_r2+21],ax
|
; mov word[ds:_r2+21],ax
|
||||||
mov word[ds:_r2+45],ax
|
; mov word[ds:_r2+45],ax
|
||||||
|
|
||||||
mov word[ds:_rs+21],ax
|
; mov word[ds:_rs+21],ax
|
||||||
mov word[ds:_rs+46],ax
|
; mov word[ds:_rs+46],ax
|
||||||
; draw string
|
; draw string
|
||||||
cmp word [es:si+6],0x12
|
; cmp word [es:si+6],0x12
|
||||||
je .show_0x12
|
; je .show_0x12
|
||||||
cmp word [es:si+6],0x13
|
; cmp word [es:si+6],0x13
|
||||||
je .show_0x13
|
; je .show_0x13
|
||||||
|
|
||||||
movzx eax,word[es:si]
|
; movzx eax,word[es:si]
|
||||||
cmp ax,-1
|
; cmp ax,-1
|
||||||
je .@@_end
|
; je .@@_end
|
||||||
mov di,_rs+23
|
; mov di,_rs+23
|
||||||
mov ecx,10
|
; mov ecx,10
|
||||||
mov bl,4
|
; mov bl,4
|
||||||
call int2str
|
; call int2str
|
||||||
movzx eax,word[es:si+2]
|
; movzx eax,word[es:si+2]
|
||||||
inc di
|
; inc di
|
||||||
mov bl,4
|
; mov bl,4
|
||||||
call int2str
|
; call int2str
|
||||||
|
|
||||||
movzx eax,word[es:si+8]
|
; movzx eax,word[es:si+8]
|
||||||
inc di
|
; inc di
|
||||||
mov bl,2
|
; mov bl,2
|
||||||
call int2str
|
; call int2str
|
||||||
|
|
||||||
cmp si, word [cursor_pos]
|
; cmp si, word [cursor_pos]
|
||||||
jne .next
|
; jne .next
|
||||||
;draw cursor
|
;draw cursor
|
||||||
mov word[ds:_rs+21],'>>'
|
; mov word[ds:_rs+21],'>>'
|
||||||
mov word[ds:_rs+46],'<<'
|
; mov word[ds:_rs+46],'<<'
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
.next:
|
;.next:
|
||||||
push si
|
; push si
|
||||||
mov si,_rs
|
; mov si,_rs
|
||||||
.@@_sh:
|
;.@@_sh:
|
||||||
; add to the string pseudographics for scrollbar
|
; add to the string pseudographics for scrollbar
|
||||||
pop bx
|
; pop bx
|
||||||
push bx
|
; push bx
|
||||||
mov byte [si+53], ' '
|
; mov byte [si+53], ' '
|
||||||
cmp bx, [scroll_start]
|
; cmp bx, [scroll_start]
|
||||||
jb @f
|
; jb @f
|
||||||
cmp bx, [scroll_end]
|
; cmp bx, [scroll_end]
|
||||||
jae @f
|
; jae @f
|
||||||
mov byte [si+53], 0xDB ; filled bar
|
; mov byte [si+53], 0xDB ; filled bar
|
||||||
@@:
|
;@@:
|
||||||
push bx
|
; push bx
|
||||||
add bx, size_of_step
|
; add bx, size_of_step
|
||||||
cmp bx, [end_cursor]
|
; cmp bx, [end_cursor]
|
||||||
jnz @f
|
; jnz @f
|
||||||
mov byte [si+53], 31 ; 'down arrow' symbol
|
; mov byte [si+53], 31 ; 'down arrow' symbol
|
||||||
@@:
|
;@@:
|
||||||
sub bx, [home_cursor]
|
; sub bx, [home_cursor]
|
||||||
cmp bx, size_of_step*long_v_table
|
; cmp bx, size_of_step*long_v_table
|
||||||
jnz @f
|
; jnz @f
|
||||||
mov byte [si+53], 31 ; 'down arrow' symbol
|
; mov byte [si+53], 31 ; 'down arrow' symbol
|
||||||
@@:
|
;@@:
|
||||||
pop bx
|
; pop bx
|
||||||
cmp bx, [home_cursor]
|
; cmp bx, [home_cursor]
|
||||||
jnz @f
|
; jnz @f
|
||||||
mov byte [si+53], 30 ; 'up arrow' symbol
|
; mov byte [si+53], 30 ; 'up arrow' symbol
|
||||||
@@:
|
;@@:
|
||||||
call printplain
|
; call printplain
|
||||||
pop si
|
; pop si
|
||||||
add si,size_of_step
|
; add si,size_of_step
|
||||||
|
|
||||||
dec bp
|
; dec bp
|
||||||
jnz .@@_next_bit
|
; jnz .@@_next_bit
|
||||||
|
|
||||||
.@@_end:
|
;.@@_end:
|
||||||
mov si,_bt
|
; mov si,_bt
|
||||||
call printplain
|
; call printplain
|
||||||
ret
|
ret
|
||||||
.show_0x13:
|
;.show_0x13:
|
||||||
push si
|
; push si
|
||||||
|
|
||||||
cmp si, word [cursor_pos]
|
; cmp si, word [cursor_pos]
|
||||||
jne @f
|
; jne @f
|
||||||
mov word[ds:_r1+21],'>>'
|
; mov word[ds:_r1+21],'>>'
|
||||||
mov word[ds:_r1+50],'<<'
|
; mov word[ds:_r1+50],'<<'
|
||||||
@@:
|
;@@:
|
||||||
mov si,_r1
|
; mov si,_r1
|
||||||
jmp .@@_sh
|
; jmp .@@_sh
|
||||||
.show_0x12:
|
;.show_0x12:
|
||||||
push si
|
; push si
|
||||||
cmp si, word [cursor_pos]
|
; cmp si, word [cursor_pos]
|
||||||
jne @f
|
; jne @f
|
||||||
|
|
||||||
mov word[ds:_r2+21],'>>'
|
; mov word[ds:_r2+21],'>>'
|
||||||
mov word[ds:_r2+45],'<<'
|
; mov word[ds:_r2+45],'<<'
|
||||||
@@:
|
;@@:
|
||||||
mov si,_r2
|
; mov si,_r2
|
||||||
jmp .@@_sh
|
; jmp .@@_sh
|
||||||
|
|
||||||
;-----------------------------------------------------------------------------
|
;-----------------------------------------------------------------------------
|
||||||
;Clear arrea of current video page (0xb800)
|
;Clear area of current video page (0xb800)
|
||||||
clear_vmodes_table:
|
clear_vmodes_table:
|
||||||
pusha
|
pusha
|
||||||
; draw frames
|
; draw frames
|
||||||
@ -626,63 +604,26 @@ set_vmode:
|
|||||||
mov word [es:0x900C],bx ; resolution Y
|
mov word [es:0x900C],bx ; resolution Y
|
||||||
mov word [es:0x9008],cx ; number of mode
|
mov word [es:0x9008],cx ; number of mode
|
||||||
|
|
||||||
; cmp cx,0x12
|
|
||||||
; je .mode0x12_0x13
|
|
||||||
; cmp cx,0x13
|
|
||||||
; je .mode0x12_0x13
|
|
||||||
|
|
||||||
|
; VESA 2 and Vesa 3 only
|
||||||
; cmp byte [s_vesa.ver],'2'
|
|
||||||
; jb .vesa12
|
|
||||||
|
|
||||||
; VESA 2 and Vesa 3
|
|
||||||
|
|
||||||
mov ax,0x4f01
|
mov ax,0x4f01
|
||||||
and cx,0xfff
|
and cx,0xfff
|
||||||
mov di,mi;0xa000
|
mov di,mi;0xa000
|
||||||
int 0x10
|
int 0x10
|
||||||
; LFB
|
; LFB
|
||||||
mov eax,[es:mi.PhysBasePtr];di+0x28]
|
mov eax,[es:mi.PhysBasePtr] ;di+0x28]
|
||||||
mov [es:0x9018],eax
|
mov [es:0x9018],eax
|
||||||
; ---- vbe voodoo
|
; ---- vbe voodoo
|
||||||
BytesPerLine equ 0x10
|
BytesPerLine equ 0x10
|
||||||
mov ax, [es:di+BytesPerLine]
|
mov ax, [es:di+BytesPerLine]
|
||||||
mov [es:0x9001], ax
|
mov [es:0x9001], ax
|
||||||
; BPP
|
; BPP
|
||||||
; cmp [es:mi.BitsPerPixel],16
|
|
||||||
; jne .l0
|
|
||||||
; cmp [es:mi.GreenMaskSize],5
|
|
||||||
; jne .l0
|
|
||||||
; mov [es:mi.BitsPerPixel],15
|
|
||||||
.l0:
|
.l0:
|
||||||
mov al, byte [es:di+0x19]
|
mov al, byte [es:di+0x19]
|
||||||
mov [es:0x9000], al
|
mov [es:0x9000], al
|
||||||
jmp .exit
|
jmp .exit
|
||||||
|
|
||||||
;.mode0x12_0x13:
|
|
||||||
; mov byte [es:0x9000], 32
|
|
||||||
; or dword [es:0x9018], 0xFFFFFFFF; 0x800000
|
|
||||||
|
|
||||||
|
|
||||||
; VESA 1.2 PM BANK SWITCH ADDRESS
|
|
||||||
|
|
||||||
;.vesa12:
|
|
||||||
|
|
||||||
|
|
||||||
; mov ax,0x4f0A
|
|
||||||
; xor bx,bx
|
|
||||||
; int 0x10
|
|
||||||
; xor eax,eax
|
|
||||||
; xor ebx,ebx
|
|
||||||
; mov ax,es
|
|
||||||
; shl eax,4
|
|
||||||
; mov bx,di
|
|
||||||
; add eax,ebx
|
|
||||||
; movzx ebx,word[es:di]
|
|
||||||
; add eax,ebx
|
|
||||||
; push 0x0000
|
|
||||||
; pop es
|
|
||||||
; mov [es:0x9014],eax
|
|
||||||
.exit:
|
.exit:
|
||||||
ret
|
ret
|
||||||
|
|
||||||
|
@ -1,16 +0,0 @@
|
|||||||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
||||||
;; ;;
|
|
||||||
;; Copyright (C) KolibriOS team 2004-2007. All rights reserved. ;;
|
|
||||||
;; Distributed under terms of the GNU General Public License ;;
|
|
||||||
;; ;;
|
|
||||||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
||||||
|
|
||||||
$Revision$
|
|
||||||
|
|
||||||
|
|
||||||
; Full ASCII code font
|
|
||||||
; only õ and ä added
|
|
||||||
; Kaitz
|
|
||||||
ET_FNT:
|
|
||||||
fontfile file "ETFONT.FNT"
|
|
||||||
|
|
@ -1,102 +0,0 @@
|
|||||||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
||||||
;; ;;
|
|
||||||
;; Copyright (C) KolibriOS team 2004-2007. All rights reserved. ;;
|
|
||||||
;; Distributed under terms of the GNU General Public License ;;
|
|
||||||
;; ;;
|
|
||||||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
||||||
|
|
||||||
$Revision$
|
|
||||||
|
|
||||||
|
|
||||||
; Generated by RUFNT.EXE
|
|
||||||
; By BadBugsKiller (C)
|
|
||||||
; Modifyed by BadBugsKiller 12.01.2004 17:45
|
|
||||||
; Øðèôò óìåíüøåí â ðàçìåðå è òåïåðü ñîñòîèò èç 2-óõ ÷àñòåé,
|
|
||||||
; ñîäåðæàùèõ òîëüêî ñèìâîëû ðóññêîãî àëôàâèòà.
|
|
||||||
; ñèìâîëû â êîäèðîâêå ASCII (ÄÎÑ'îâñêàÿ), êîäîâàÿ ñòðàíèöà 866.
|
|
||||||
RU_FNT1:
|
|
||||||
db 0x00, 0x00, 0x1E, 0x36, 0x66, 0xC6, 0xC6, 0xFE, 0xC6, 0xC6, 0xC6, 0xC6, 0x00, 0x00, 0x00, 0x00
|
|
||||||
db 0x00, 0x00, 0xFE, 0x62, 0x60, 0x60, 0x7C, 0x66, 0x66, 0x66, 0x66, 0xFC, 0x00, 0x00, 0x00, 0x00
|
|
||||||
db 0x00, 0x00, 0xFC, 0x66, 0x66, 0x66, 0x7C, 0x66, 0x66, 0x66, 0x66, 0xFC, 0x00, 0x00, 0x00, 0x00
|
|
||||||
db 0x00, 0x00, 0xFE, 0x66, 0x62, 0x60, 0x60, 0x60, 0x60, 0x60, 0x60, 0xF0, 0x00, 0x00, 0x00, 0x00
|
|
||||||
db 0x00, 0x00, 0x1E, 0x36, 0x66, 0x66, 0x66, 0x66, 0x66, 0x66, 0x66, 0xFF, 0xC3, 0x81, 0x00, 0x00
|
|
||||||
db 0x00, 0x00, 0xFE, 0x66, 0x62, 0x68, 0x78, 0x68, 0x60, 0x62, 0x66, 0xFE, 0x00, 0x00, 0x00, 0x00
|
|
||||||
db 0x00, 0x00, 0xDB, 0xDB, 0x5A, 0x5A, 0x7E, 0x7E, 0x5A, 0xDB, 0xDB, 0xDB, 0x00, 0x00, 0x00, 0x00
|
|
||||||
db 0x00, 0x00, 0x7C, 0xC6, 0x06, 0x06, 0x3C, 0x06, 0x06, 0x06, 0xC6, 0x7C, 0x00, 0x00, 0x00, 0x00
|
|
||||||
db 0x00, 0x00, 0xC6, 0xC6, 0xC6, 0xCE, 0xDE, 0xF6, 0xE6, 0xC6, 0xC6, 0xC6, 0x00, 0x00, 0x00, 0x00
|
|
||||||
db 0x6C, 0x38, 0xC6, 0xC6, 0xC6, 0xCE, 0xDE, 0xF6, 0xE6, 0xC6, 0xC6, 0xC6, 0x00, 0x00, 0x00, 0x00
|
|
||||||
db 0x00, 0x00, 0xE6, 0x66, 0x6C, 0x6C, 0x78, 0x78, 0x6C, 0x6C, 0x66, 0xE6, 0x00, 0x00, 0x00, 0x00
|
|
||||||
db 0x00, 0x00, 0x1F, 0x36, 0x66, 0x66, 0x66, 0x66, 0x66, 0x66, 0x66, 0xCF, 0x00, 0x00, 0x00, 0x00
|
|
||||||
db 0x00, 0x00, 0xC6, 0xEE, 0xFE, 0xFE, 0xD6, 0xC6, 0xC6, 0xC6, 0xC6, 0xC6, 0x00, 0x00, 0x00, 0x00
|
|
||||||
db 0x00, 0x00, 0xC6, 0xC6, 0xC6, 0xC6, 0xFE, 0xC6, 0xC6, 0xC6, 0xC6, 0xC6, 0x00, 0x00, 0x00, 0x00
|
|
||||||
db 0x00, 0x00, 0x7C, 0xC6, 0xC6, 0xC6, 0xC6, 0xC6, 0xC6, 0xC6, 0xC6, 0x7C, 0x00, 0x00, 0x00, 0x00
|
|
||||||
db 0x00, 0x00, 0xFE, 0xC6, 0xC6, 0xC6, 0xC6, 0xC6, 0xC6, 0xC6, 0xC6, 0xC6, 0x00, 0x00, 0x00, 0x00
|
|
||||||
|
|
||||||
db 0x00, 0x00, 0xFC, 0x66, 0x66, 0x66, 0x66, 0x7C, 0x60, 0x60, 0x60, 0xF0, 0x00, 0x00, 0x00, 0x00
|
|
||||||
db 0x00, 0x00, 0x7C, 0xC6, 0xC6, 0xC0, 0xC0, 0xC0, 0xC0, 0xC2, 0xC6, 0x7C, 0x00, 0x00, 0x00, 0x00
|
|
||||||
db 0x00, 0x00, 0xFF, 0xDB, 0x99, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x3C, 0x00, 0x00, 0x00, 0x00
|
|
||||||
db 0x00, 0x00, 0xC6, 0xC6, 0xC6, 0xC6, 0xC6, 0x7E, 0x06, 0x06, 0xC6, 0x7C, 0x00, 0x00, 0x00, 0x00
|
|
||||||
db 0x00, 0x00, 0x7E, 0xDB, 0xDB, 0xDB, 0xDB, 0xDB, 0xDB, 0x7E, 0x18, 0x3C, 0x00, 0x00, 0x00, 0x00
|
|
||||||
db 0x00, 0x00, 0xC6, 0xC6, 0x6C, 0x7C, 0x38, 0x38, 0x7C, 0x6C, 0xC6, 0xC6, 0x00, 0x00, 0x00, 0x00
|
|
||||||
db 0x00, 0x00, 0xC6, 0xC6, 0xC6, 0xC6, 0xC6, 0xC6, 0xC6, 0xC6, 0xC6, 0xFF, 0x03, 0x03, 0x00, 0x00
|
|
||||||
db 0x00, 0x00, 0xC6, 0xC6, 0xC6, 0xC6, 0xC6, 0x7E, 0x06, 0x06, 0x06, 0x06, 0x00, 0x00, 0x00, 0x00
|
|
||||||
db 0x00, 0x00, 0xD6, 0xD6, 0xD6, 0xD6, 0xD6, 0xD6, 0xD6, 0xD6, 0xD6, 0xFE, 0x00, 0x00, 0x00, 0x00
|
|
||||||
db 0x00, 0x00, 0xD6, 0xD6, 0xD6, 0xD6, 0xD6, 0xD6, 0xD6, 0xD6, 0xD6, 0xFF, 0x03, 0x03, 0x00, 0x00
|
|
||||||
db 0x00, 0x00, 0xF8, 0xF0, 0xB0, 0x30, 0x3E, 0x33, 0x33, 0x33, 0x33, 0x7E, 0x00, 0x00, 0x00, 0x00
|
|
||||||
db 0x00, 0x00, 0xC3, 0xC3, 0xC3, 0xC3, 0xF3, 0xDB, 0xDB, 0xDB, 0xDB, 0xF3, 0x00, 0x00, 0x00, 0x00
|
|
||||||
db 0x00, 0x00, 0xF0, 0x60, 0x60, 0x60, 0x7C, 0x66, 0x66, 0x66, 0x66, 0xFC, 0x00, 0x00, 0x00, 0x00
|
|
||||||
db 0x00, 0x00, 0x7C, 0xC6, 0x06, 0x26, 0x3E, 0x26, 0x06, 0x06, 0xC6, 0x7C, 0x00, 0x00, 0x00, 0x00
|
|
||||||
db 0x00, 0x00, 0xCE, 0xDB, 0xDB, 0xDB, 0xFB, 0xDB, 0xDB, 0xDB, 0xDB, 0xCE, 0x00, 0x00, 0x00, 0x00
|
|
||||||
db 0x00, 0x00, 0x3F, 0x66, 0x66, 0x66, 0x3E, 0x3E, 0x66, 0x66, 0x66, 0xE7, 0x00, 0x00, 0x00, 0x00
|
|
||||||
|
|
||||||
db 0x00, 0x00, 0x00, 0x00, 0x00, 0x78, 0x0C, 0x7C, 0xCC, 0xCC, 0xCC, 0x76, 0x00, 0x00, 0x00, 0x00
|
|
||||||
db 0x00, 0x02, 0x06, 0x7C, 0xC0, 0xC0, 0xFC, 0xC6, 0xC6, 0xC6, 0xC6, 0x7C, 0x00, 0x00, 0x00, 0x00
|
|
||||||
db 0x00, 0x00, 0x00, 0x00, 0x00, 0xFC, 0x66, 0x66, 0x7C, 0x66, 0x66, 0xFC, 0x00, 0x00, 0x00, 0x00
|
|
||||||
db 0x00, 0x00, 0x00, 0x00, 0x00, 0xFE, 0x62, 0x62, 0x60, 0x60, 0x60, 0xF0, 0x00, 0x00, 0x00, 0x00
|
|
||||||
db 0x00, 0x00, 0x00, 0x00, 0x00, 0x1E, 0x36, 0x66, 0x66, 0x66, 0x66, 0xFF, 0xC3, 0xC3, 0x00, 0x00
|
|
||||||
db 0x00, 0x00, 0x00, 0x00, 0x00, 0x7C, 0xC6, 0xC6, 0xFE, 0xC0, 0xC6, 0x7C, 0x00, 0x00, 0x00, 0x00
|
|
||||||
db 0x00, 0x00, 0x00, 0x00, 0x00, 0xD6, 0xD6, 0x54, 0x7C, 0x54, 0xD6, 0xD6, 0x00, 0x00, 0x00, 0x00
|
|
||||||
db 0x00, 0x00, 0x00, 0x00, 0x00, 0x7C, 0xC6, 0x06, 0x3C, 0x06, 0xC6, 0x7C, 0x00, 0x00, 0x00, 0x00
|
|
||||||
db 0x00, 0x00, 0x00, 0x00, 0x00, 0xC6, 0xC6, 0xCE, 0xD6, 0xE6, 0xC6, 0xC6, 0x00, 0x00, 0x00, 0x00
|
|
||||||
db 0x00, 0x00, 0x00, 0x6C, 0x38, 0xC6, 0xC6, 0xCE, 0xD6, 0xE6, 0xC6, 0xC6, 0x00, 0x00, 0x00, 0x00
|
|
||||||
db 0x00, 0x00, 0x00, 0x00, 0x00, 0xE6, 0x6C, 0x78, 0x78, 0x6C, 0x66, 0xE6, 0x00, 0x00, 0x00, 0x00
|
|
||||||
db 0x00, 0x00, 0x00, 0x00, 0x00, 0x1E, 0x36, 0x66, 0x66, 0x66, 0x66, 0xE6, 0x00, 0x00, 0x00, 0x00
|
|
||||||
db 0x00, 0x00, 0x00, 0x00, 0x00, 0xC6, 0xEE, 0xFE, 0xFE, 0xD6, 0xD6, 0xC6, 0x00, 0x00, 0x00, 0x00
|
|
||||||
db 0x00, 0x00, 0x00, 0x00, 0x00, 0xC6, 0xC6, 0xC6, 0xFE, 0xC6, 0xC6, 0xC6, 0x00, 0x00, 0x00, 0x00
|
|
||||||
db 0x00, 0x00, 0x00, 0x00, 0x00, 0x7C, 0xC6, 0xC6, 0xC6, 0xC6, 0xC6, 0x7C, 0x00, 0x00, 0x00, 0x00
|
|
||||||
db 0x00, 0x00, 0x00, 0x00, 0x00, 0xFE, 0xC6, 0xC6, 0xC6, 0xC6, 0xC6, 0xC6, 0x00, 0x00, 0x00, 0x00
|
|
||||||
|
|
||||||
RU_FNT2:
|
|
||||||
db 0x00, 0x00, 0x00, 0x00, 0x00, 0xDC, 0x66, 0x66, 0x66, 0x66, 0x66, 0x7C, 0x60, 0x60, 0xF0, 0x00
|
|
||||||
db 0x00, 0x00, 0x00, 0x00, 0x00, 0x7C, 0xC6, 0xC0, 0xC0, 0xC0, 0xC6, 0x7C, 0x00, 0x00, 0x00, 0x00
|
|
||||||
db 0x00, 0x00, 0x00, 0x00, 0x00, 0x7E, 0x5A, 0x18, 0x18, 0x18, 0x18, 0x3C, 0x00, 0x00, 0x00, 0x00
|
|
||||||
db 0x00, 0x00, 0x00, 0x00, 0x00, 0xC6, 0xC6, 0xC6, 0xC6, 0xC6, 0x7E, 0x06, 0x06, 0xC6, 0x7C, 0x00
|
|
||||||
db 0x00, 0x00, 0x00, 0x3C, 0x18, 0x7E, 0xDB, 0xDB, 0xDB, 0xDB, 0xDB, 0x7E, 0x18, 0x18, 0x3C, 0x00
|
|
||||||
db 0x00, 0x00, 0x00, 0x00, 0x00, 0xC6, 0x6C, 0x38, 0x38, 0x38, 0x6C, 0xC6, 0x00, 0x00, 0x00, 0x00
|
|
||||||
db 0x00, 0x00, 0x00, 0x00, 0x00, 0xC6, 0xC6, 0xC6, 0xC6, 0xC6, 0xC6, 0xFF, 0x03, 0x03, 0x00, 0x00
|
|
||||||
db 0x00, 0x00, 0x00, 0x00, 0x00, 0xC6, 0xC6, 0xC6, 0xC6, 0x7E, 0x06, 0x06, 0x00, 0x00, 0x00, 0x00
|
|
||||||
db 0x00, 0x00, 0x00, 0x00, 0x00, 0xD6, 0xD6, 0xD6, 0xD6, 0xD6, 0xD6, 0xFE, 0x00, 0x00, 0x00, 0x00
|
|
||||||
db 0x00, 0x00, 0x00, 0x00, 0x00, 0xD6, 0xD6, 0xD6, 0xD6, 0xD6, 0xD6, 0xFE, 0x03, 0x03, 0x00, 0x00
|
|
||||||
db 0x00, 0x00, 0x00, 0x00, 0x00, 0xF8, 0xB0, 0xB0, 0x3E, 0x33, 0x33, 0x7E, 0x00, 0x00, 0x00, 0x00
|
|
||||||
db 0x00, 0x00, 0x00, 0x00, 0x00, 0xC6, 0xC6, 0xC6, 0xF6, 0xDE, 0xDE, 0xF6, 0x00, 0x00, 0x00, 0x00
|
|
||||||
db 0x00, 0x00, 0x00, 0x00, 0x00, 0xF0, 0x60, 0x60, 0x7C, 0x66, 0x66, 0xFC, 0x00, 0x00, 0x00, 0x00
|
|
||||||
db 0x00, 0x00, 0x00, 0x00, 0x00, 0x7C, 0xC6, 0x06, 0x3E, 0x06, 0xC6, 0x7C, 0x00, 0x00, 0x00, 0x00
|
|
||||||
db 0x00, 0x00, 0x00, 0x00, 0x00, 0xCE, 0xDB, 0xDB, 0xFB, 0xDB, 0xDB, 0xCE, 0x00, 0x00, 0x00, 0x00
|
|
||||||
db 0x00, 0x00, 0x00, 0x00, 0x00, 0x7F, 0xC6, 0xC6, 0x7E, 0x36, 0x66, 0xE7, 0x00, 0x00, 0x00, 0x00
|
|
||||||
|
|
||||||
db 0x6C, 0x00, 0xFE, 0x66, 0x62, 0x68, 0x78, 0x68, 0x60, 0x62, 0x66, 0xFE, 0x00, 0x00, 0x00, 0x00
|
|
||||||
db 0x00, 0x00, 0x00, 0x6C, 0x00, 0x7C, 0xC6, 0xC6, 0xFC, 0xC0, 0xC6, 0x7C, 0x00, 0x00, 0x00, 0x00
|
|
||||||
db 0x00, 0x00, 0x7C, 0xC6, 0xC0, 0xC8, 0xF8, 0xC8, 0xC0, 0xC0, 0xC6, 0x7C, 0x00, 0x00, 0x00, 0x00
|
|
||||||
db 0x00, 0x00, 0x00, 0x00, 0x00, 0x7C, 0xC6, 0xC0, 0xF8, 0xC0, 0xC6, 0x7C, 0x00, 0x00, 0x00, 0x00
|
|
||||||
db 0x66, 0x00, 0x3C, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x3C, 0x00, 0x00, 0x00, 0x00
|
|
||||||
db 0x00, 0x00, 0x00, 0x6C, 0x00, 0x38, 0x18, 0x18, 0x18, 0x18, 0x18, 0x3C, 0x00, 0x00, 0x00, 0x00
|
|
||||||
db 0x6C, 0x38, 0xC6, 0xC6, 0xC6, 0xC6, 0xC6, 0x7E, 0x06, 0x06, 0xC6, 0x7C, 0x00, 0x00, 0x00, 0x00
|
|
||||||
db 0x00, 0x00, 0x00, 0x6C, 0x38, 0xC6, 0xC6, 0xC6, 0xC6, 0xC6, 0x7E, 0x06, 0x06, 0xC6, 0x7C, 0x00
|
|
||||||
db 0x00, 0x38, 0x6C, 0x6C, 0x38, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
|
|
||||||
db 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x18, 0x18, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
|
|
||||||
db 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x18, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
|
|
||||||
db 0x00, 0x0E, 0x0C, 0x0C, 0x0C, 0x0C, 0x0C, 0x0C, 0xEC, 0x6C, 0x3C, 0x1C, 0x00, 0x00, 0x00, 0x00
|
|
||||||
db 0x00, 0x00, 0xCF, 0xCD, 0xEF, 0xEC, 0xFF, 0xDC, 0xDC, 0xCC, 0xCC, 0xCC, 0x00, 0x00, 0x00, 0x00
|
|
||||||
db 0x00, 0x00, 0x00, 0xC6, 0x7C, 0xC6, 0xC6, 0xC6, 0xC6, 0xC6, 0x7C, 0xC6, 0x00, 0x00, 0x00, 0x00
|
|
||||||
db 0x00, 0x00, 0x00, 0x00, 0x7E, 0x7E, 0x7E, 0x7E, 0x7E, 0x7E, 0x7E, 0x00, 0x00, 0x00, 0x00, 0x00
|
|
||||||
db 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
|
|
Loading…
Reference in New Issue
Block a user