source: xtideuniversalbios/trunk/XTIDE_Universal_BIOS/Src/Handlers/Int13hBiosInit.asm@ 552

Last change on this file since 552 was 552, checked in by aitotat@…, 11 years ago

Changes to XTIDE Universal BIOS:

  • XTIDE Universal BIOS can now be initialized if non-standard main BIOS does not call INT 19h or if INT 19h handler is replaced by some other BIOS.
File size: 1.5 KB
Line 
1; Project name : XTIDE Universal BIOS
2; Description : Int 13h handler that is used to initialize
3; XTIDE Universal BIOS when our INT 19h was not called.
4
5;
6; XTIDE Universal BIOS and Associated Tools
7; Copyright (C) 2009-2010 by Tomi Tilli, 2011-2013 by XTIDE Universal BIOS Team.
8;
9; This program is free software; you can redistribute it and/or modify
10; it under the terms of the GNU General Public License as published by
11; the Free Software Foundation; either version 2 of the License, or
12; (at your option) any later version.
13;
14; This program is distributed in the hope that it will be useful,
15; but WITHOUT ANY WARRANTY; without even the implied warranty of
16; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17; GNU General Public License for more details.
18; Visit http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
19;
20
21; Section containing code
22SECTION .text
23
24TEMPORARY_VECTOR_FOR_SYSTEM_INT13h EQU 21h ; MS-DOS
25
26
27Int13hBiosInit_Handler:
28 LOAD_BDA_SEGMENT_TO ds, ax
29
30 ; Restore system INT 13h handler that we backuped
31 les ax, [TEMPORARY_VECTOR_FOR_SYSTEM_INT13h*4]
32 mov [BIOS_DISK_INTERRUPT_13h*4], ax
33 mov [BIOS_DISK_INTERRUPT_13h*4+2], es
34
35 ; Now install our handler and call 19h since non-standard motherboard BIOS did not
36 ; do that or our INT 19h hander was replaced by other BIOS.
37 mov WORD [BIOS_BOOT_LOADER_INTERRUPT_19h*4], Int19h_BootLoaderHandler
38 mov [BIOS_BOOT_LOADER_INTERRUPT_19h*4+2], cs
39 int BIOS_BOOT_LOADER_INTERRUPT_19h ; Does not return
Note: See TracBrowser for help on using the repository browser.