]>
Commit | Line | Data |
---|---|---|
9c15f366 L |
1 | ; This is the main file, glueing all parts together. |
2 | ||
3 | ; Copyright (C) 2010 Sprite_tm | |
98979541 | 4 | ; Copyright (C) 2010,2012,2013 Leo C. |
9c15f366 L |
5 | ; |
6 | ; This file is part of avrcpm. | |
7 | ; | |
8 | ; avrcpm is free software: you can redistribute it and/or modify it | |
9 | ; under the terms of the GNU General Public License as published by | |
10 | ; the Free Software Foundation, either version 3 of the License, or | |
11 | ; (at your option) any later version. | |
12 | ; | |
13 | ; avrcpm is distributed in the hope that it will be useful, | |
14 | ; but WITHOUT ANY WARRANTY; without even the implied warranty of | |
15 | ; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
16 | ; GNU General Public License for more details. | |
17 | ; | |
18 | ; You should have received a copy of the GNU General Public License | |
19 | ; along with avrcpm. If not, see <http://www.gnu.org/licenses/>. | |
20 | ; | |
21 | ; $Id$ | |
22 | ; | |
23 | ||
623dd899 L |
24 | .nolist |
25 | ||
9c15f366 L |
26 | #if defined atmega8 |
27 | .include "m8def.inc" | |
5c8bb361 L |
28 | #elif defined atmega88 |
29 | .include "m88def.inc" | |
9c15f366 L |
30 | #elif defined atmega168 |
31 | .include "m168def.inc" | |
9c15f366 | 32 | #else /* default */ |
5c8bb361 | 33 | .include "m328Pdef.inc" |
9c15f366 L |
34 | #endif |
35 | .include "config.inc" | |
fa9059af | 36 | .include "svnrev.inc" |
9c15f366 L |
37 | .include "macros.inc" |
38 | #if DRAM_8BIT /* Implies software uart */ | |
39 | .include "dram-8bit.inc" | |
40 | #else | |
41 | .include "dram-4bit.inc" | |
42 | #endif | |
623dd899 | 43 | |
9c15f366 | 44 | .list |
623dd899 | 45 | |
5c8bb361 | 46 | #if MMCBOOTLOADER |
9c15f366 | 47 | .cseg |
623dd899 L |
48 | .org FLASHEND-3 - BOOTLDRSIZE/2 ; |
49 | .db DEVID_S ; | |
50 | #if TESTVERSION | |
51 | .db 0,0 | |
52 | #else | |
53 | .db VMINOR, VMAJOR ; | |
54 | #endif | |
55 | .dw 0 ;placeholder for crc | |
5c8bb361 | 56 | #endif /* MMCBOOTLOADER */ |
b741422e | 57 | |
623dd899 | 58 | .cseg |
9c15f366 | 59 | .org 0 |
e8384f88 | 60 | ljmp start ; reset vector |
9c15f366 L |
61 | |
62 | .org INT_VECTORS_SIZE | |
63 | ||
d8fa6a36 | 64 | #if DRAM_8BIT /* Implies software uart */ |
9c15f366 | 65 | .include "sw-uart.asm" |
d8fa6a36 | 66 | #else /* 4 bit RAM, hardware uart */ |
9c15f366 | 67 | .include "hw-uart.asm" |
9c15f366 | 68 | #endif |
e8384f88 L |
69 | |
70 | .include "utils.asm" | |
71 | .include "init.asm" | |
72 | .include "timer.asm" | |
29ce189c | 73 | .include "heap.asm" |
b741422e | 74 | .include "mmc.asm" |
64219415 | 75 | |
e8384f88 L |
76 | #if DRAM_8BIT /* Implies software uart */ |
77 | .include "dram-8bit.asm" | |
78 | #else /* 4 bit RAM, hardware uart */ | |
79 | .include "dram-4bit.asm" | |
80 | #endif | |
81 | #if DRAM_8BIT /* Implies software uart */ | |
82 | .include "i2c.asm" | |
83 | #endif | |
64219415 | 84 | ; >>>-------------------------------------- File System Management |
29fb1fd4 L |
85 | .include "dsk_cpm.asm" ; CPM- Disk Interaktion |
86 | .include "dsk_fat16.asm" ; FAT16-DISK Interaktion | |
87 | .include "dsk_ram.asm" ; RAM- Disk Interaktion | |
e8384f88 L |
88 | .include "dsk_mgr.asm" ; Disk- Manager |
89 | .include "dsk_fsys.asm" ; Basic Filesystem definitions | |
90 | ||
64219415 | 91 | ; <<<-------------------------------------- File System Management |
623dd899 | 92 | |
29fb1fd4 | 93 | ; .include "8080int-orig.asm" ;Old 8080 interpreter. |
9c15f366 | 94 | ; .include "8080int.asm" ;New 8080 interpreter. |
4675c141 L |
95 | ; .include "8080int-t3.asm" ;Another 8080 interpreter |
96 | ; .include "8080int-t3-jmp.asm" ;Can't get enough | |
fa9059af L |
97 | ; .include "8080int-jmp.asm" ; |
98 | .include "Z80int-jmp.asm" ; | |
9c15f366 | 99 | |
e8384f88 L |
100 | .include "virt_ports.asm" ; Virtual Ports for BIOS |
101 | .include "dram-refresh.asm" | |
102 | ||
9c15f366 L |
103 | |
104 | .dseg | |
105 | ramtop: .byte 0 | |
106 | ||
107 | .cseg | |
108 | ||
109 | ; vim:set ts=8 noet nowrap | |
110 |