blob: 7802bdb52765896b8a50a3d5f446768e1b0eb780 [file] [log] [blame]
Kevin O'Connor1f2c3072009-05-06 23:35:59 -04001// Rom layout and bios assembler to C interface.
2//
3// Copyright (C) 2009 Kevin O'Connor <kevin@koconnor.net>
4//
5// This file may be distributed under the terms of the GNU LGPLv3 license.
6
7
8/****************************************************************
9 * Include of 16bit C code
10 ****************************************************************/
11
12 .code16gcc
13.include "out/vgaccode.16.s"
14
15#include "entryfuncs.S" // ENTRY_*
16
17
18/****************************************************************
19 * Rom Header
20 ****************************************************************/
21
22 .section .rom.header
23 .global _rom_header, _rom_header_size, _rom_header_checksum
24_rom_header:
25 .word 0xaa55
26_rom_header_size:
27 .byte 0
28_rom_header_entry:
29 jmp _optionrom_entry
30_rom_header_checksum:
31 .space 22
32
33
34/****************************************************************
35 * Entry points
36 ****************************************************************/
37
38 DECLFUNC _optionrom_entry
39_optionrom_entry:
40 ENTRY_ARG vga_post
41 lretw
42
Kevin O'Connor9f193b92009-05-16 23:31:27 -040043 DECLFUNC entry_10
44entry_10:
45 ENTRY_ARG handle_10
46 iretw