Correct English, Spanish and German messages string length in blue screen to fit into one line. Add some comments to bootcode.inc

git-svn-id: svn://kolibrios.org@3796 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
Yogev Ezra 2013-07-10 01:05:54 +00:00
parent 470c36df8b
commit 8ed01ff721
4 changed files with 21 additions and 21 deletions

View File

@ -47,21 +47,21 @@ printplain:
popa popa
ret ret
getkey: getkey: ; Use BIOS INT 16h to read a key from the keyboard
; 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 ; If 'int 16h' is called with 'ah' equal to zero, the BIOS will not return control
int 16h int 16h ; to the caller until a key is available in the system type ahead buffer. On return,
cmp al, bl cmp al, bl ; 'al' contains the ASCII code for the key read from the buffer and 'ah' contains
jb getkey jb getkey ; the keyboard scan code. Here we compare 'al' with the range of accepted characters.
cmp al, bh cmp al, bh ; If the key pressed is not in the range, continue waiting for another key.
ja getkey ja getkey
push ax push ax ; If the pressed key is in the accepted range, save it on the stack and echo to screen.
call putchar call putchar
pop ax pop ax
and ax, 0Fh and ax, 0Fh ; ASCII code for '0' is 48 (110000b). 0F4=1111b. (110000b AND 1111b) = 0
jnz @f jnz @f ; So if key '0' was entered, return 10 in 'ax'
mov al, 10 mov al, 10
@@: @@:
ret ret
@ -779,9 +779,9 @@ end if
mov si, bdev mov si, bdev
call print call print
if defined extended_primary_loader if defined extended_primary_loader
mov bx, '12' mov bx, '12' ; range accepted for answer: 1-2
else else
mov bx, '14' mov bx, '14' ; range accepted for answer: 1-4
end if end if
call getkey call getkey
mov [preboot_device], al mov [preboot_device], al
@ -875,12 +875,12 @@ end if
_setcursor 16,0 _setcursor 16,0
; mov si, ask_dma // (earlier was: preboot_dma = use DMA access?) ; mov si, ask_dma // (earlier was: preboot_dma = use DMA access?)
; call print ; call print
; mov bx, '13' ; mov bx, '13' ; range accepted for answer: 1-3
; call getkey ; call getkey
; mov [preboot_dma], al ; mov [preboot_dma], al
mov si, ask_bd mov si, ask_bd
call print call print
mov bx, '12' mov bx, '12' ; range accepted for answer: 1-2
call getkey call getkey
mov [preboot_biosdisk], al mov [preboot_biosdisk], al
_setcursor 11,0 _setcursor 11,0
@ -889,25 +889,25 @@ end if
; _setcursor 16,0 ; _setcursor 16,0
; mov si, vrrmprint ; mov si, vrrmprint
; call print ; call print
; mov bx, '12' ; mov bx, '12' ; range accepted for answer: 1-2
; call getkey ; call getkey
; mov [preboot_vrrm], al ; mov [preboot_vrrm], al
; _setcursor 12,0 ; _setcursor 12,0
; jmp .d ; jmp .d
.change_c: ; c) preboot_debug = duplicates kernel debug output to the screen .change_c: ; c) preboot_debug = duplicates kernel debug output to the screen
_setcursor 16,0 _setcursor 16,0
mov si, ask_debug mov si, ask_debug
call print call print
mov bx, '12' mov bx, '12' ; range accepted for answer: 1-2
call getkey call getkey
mov [preboot_debug], al mov [preboot_debug], al
_setcursor 12,0 _setcursor 12,0
jmp .d jmp .d
.change_d: ; d) preboot_launcher = start the first app (right now it's LAUNCHER) after kernel is loaded? .change_d: ; d) preboot_launcher = start the first app (right now it's LAUNCHER) after kernel is loaded?
_setcursor 16,0 _setcursor 16,0
mov si, ask_launcher mov si, ask_launcher
call print call print
mov bx, '12' mov bx, '12' ; range accepted for answer: 1-2
call getkey call getkey
mov [preboot_launcher], al mov [preboot_launcher], al
_setcursor 13,0 _setcursor 13,0

View File

@ -70,7 +70,7 @@ debug_mode_msg db " [c] Duplicate debug output to the screen:",0
ask_debug db "Duplicate debug output to the screen? [1-yes, 2-no]: ",0 ask_debug db "Duplicate debug output to the screen? [1-yes, 2-no]: ",0
launcher_msg db " [d] Start LAUNCHER after kernel is loaded:",0 launcher_msg db " [d] Start LAUNCHER after kernel is loaded:",0
ask_launcher db "Start first app (LAUNCHER) after kernel is loaded? [1-yes, 2-no]: ",0 ask_launcher db "Start first application (LAUNCHER) after kernel is loaded? [1-yes, 2-no]: ",0
preboot_device_msg db " [e] Floppy image: ",0 preboot_device_msg db " [e] Floppy image: ",0

View File

@ -72,7 +72,7 @@ debug_mode_msg db " [c] Duplizieren debuggen Ausgabe auf dem Bildschirm:",0
ask_debug db "Duplizieren debuggen Ausgabe auf dem Bildschirm? [1-ja, 2 nein]: ",0 ask_debug db "Duplizieren debuggen Ausgabe auf dem Bildschirm? [1-ja, 2 nein]: ",0
launcher_msg db " [d] Start LAUNCHER nach Kernel geladen wird:",0 launcher_msg db " [d] Start LAUNCHER nach Kernel geladen wird:",0
ask_launcher db "Starten sie die erste App (LAUNCHER) nach Kernel geladen wird? [1-ja, 2 nein]: ",0 ask_launcher db "Starten erste Anwendung nach Kernel geladen wird? [1-ja, 2 nein]: ",0
preboot_device_msg db " [e] Diskettenimage: ",0 preboot_device_msg db " [e] Diskettenimage: ",0

View File

@ -74,7 +74,7 @@ debug_mode_msg: cp850 " [c] Duplicar depurar salida a la pantalla:",0
ask_debug: cp850 "¿Duplicar depurar la salida a la pantalla? [1-si, 2-no]: ",0 ask_debug: cp850 "¿Duplicar depurar la salida a la pantalla? [1-si, 2-no]: ",0
launcher_msg: cp850 " [d] Iniciar LAUNCHER después de cargar kernel:",0 launcher_msg: cp850 " [d] Iniciar LAUNCHER después de cargar kernel:",0
ask_launcher: cp850 "¿Inicie la primera aplicación (LAUNCHER) después de cargar el kernel? [1-si, 2-no]: ",0 ask_launcher: cp850 "¿Inicie la primera aplicación después de cargar el kernel? [1-si, 2-no]: ",0
preboot_device_msg:cp850 " [e] Imagen de disquete: ",0 preboot_device_msg:cp850 " [e] Imagen de disquete: ",0