1 |
; -*- fundamental -*- |
; -*- fundamental -*- |
2 |
; ----------------------------------------------------------------------- |
; ----------------------------------------------------------------------- |
3 |
; |
; |
4 |
; Copyright 2004 H. Peter Anvin - All Rights Reserved |
; Copyright 2004-2008 H. Peter Anvin - All Rights Reserved |
5 |
; |
; |
6 |
; This program is free software; you can redistribute it and/or modify |
; This program is free software; you can redistribute it and/or modify |
7 |
; it under the terms of the GNU General Public License as published by |
; it under the terms of the GNU General Public License as published by |
10 |
; (at your option) any later version; incorporated herein by reference. |
; (at your option) any later version; incorporated herein by reference. |
11 |
; |
; |
12 |
; ----------------------------------------------------------------------- |
; ----------------------------------------------------------------------- |
|
; $Id: init.inc,v 1.1 2007-09-01 22:44:04 niro Exp $ |
|
13 |
|
|
14 |
; |
; |
15 |
; init.inc |
; init.inc |
22 |
; Now set up screen parameters |
; Now set up screen parameters |
23 |
call adjust_screen |
call adjust_screen |
24 |
|
|
25 |
; Wipe the F-key area |
; |
26 |
mov al,NULLFILE |
; Initialize configuration information |
27 |
mov di,FKeyName |
; |
28 |
mov cx,10*(1 << FILENAME_MAX_LG2) |
call reset_config |
|
rep stosb |
|
|
|
|
|
mov si,linuxauto_cmd ; Default command: "linux auto" |
|
|
mov di,default_cmd |
|
|
mov cx,linuxauto_len |
|
|
rep movsb |
|
|
|
|
|
mov di,KbdMap ; Default keymap 1:1 |
|
|
xor al,al |
|
|
inc ch ; CX <- 256 |
|
|
mkkeymap: stosb |
|
|
inc al |
|
|
loop mkkeymap |
|
29 |
|
|
30 |
; |
; |
31 |
; Clear Files structures |
; Clear Files structures |
44 |
add ax,PKTBUF_SIZE |
add ax,PKTBUF_SIZE |
45 |
loop .setbufptr |
loop .setbufptr |
46 |
%endif |
%endif |
|
|
|
|
section .data |
|
|
linuxauto_cmd db 'linux auto',0 |
|
|
linuxauto_len equ $-linuxauto_cmd |
|
|
|
|
47 |
section .text ; This is an inline file... |
section .text ; This is an inline file... |
|
|
|