]> cloudbase.mooo.com Git - avrcpm.git/blob - avr/avrcpm.asm
SVN --> GIT
[avrcpm.git] / avr / avrcpm.asm
1 ; This is the main file, glueing all parts together.
2
3 ; Copyright (C) 2010 Sprite_tm
4 ; Copyright (C) 2010,2012,2013 Leo C.
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
24 .nolist
25
26 #if defined atmega8
27 .include "m8def.inc"
28 #elif defined atmega88
29 .include "m88def.inc"
30 #elif defined atmega168
31 .include "m168def.inc"
32 #else /* default */
33 .include "m328Pdef.inc"
34 #endif
35 .include "config.inc"
36 .include "macros.inc"
37 #if DRAM_8BIT /* Implies software uart */
38 .include "dram-8bit.inc"
39 #else
40 .include "dram-4bit.inc"
41 #endif
42
43 .list
44
45 #if MMCBOOTLOADER
46 .cseg
47 .org FLASHEND-3 - BOOTLDRSIZE/2 ;
48 .db DEVID_S ;
49 #if TESTVERSION
50 .db 0,0
51 #else
52 .db VMINOR, VMAJOR ;
53 #endif
54 .dw 0 ;placeholder for crc
55 #endif /* MMCBOOTLOADER */
56
57 .cseg
58 .org 0
59 ljmp start ; reset vector
60
61 .org INT_VECTORS_SIZE
62
63 #if DRAM_8BIT /* Implies software uart */
64 .include "sw-uart.asm"
65 #else /* 4 bit RAM, hardware uart */
66 .include "hw-uart.asm"
67 #endif
68
69 .include "utils.asm"
70 .include "init.asm"
71 .include "timer.asm"
72 .include "heap.asm"
73 .include "mmc.asm"
74
75 #if DRAM_8BIT /* Implies software uart */
76 .include "dram-8bit.asm"
77 #else /* 4 bit RAM, hardware uart */
78 .include "dram-4bit.asm"
79 #endif
80 #if DRAM_8BIT /* Implies software uart */
81 .include "i2c.asm"
82 #endif
83 ; >>>-------------------------------------- File System Management
84 .include "dsk_cpm.asm" ; CPM- Disk Interaktion
85 .include "dsk_fat16.asm" ; FAT16-DISK Interaktion
86 .include "dsk_ram.asm" ; RAM- Disk Interaktion
87 .include "dsk_mgr.asm" ; Disk- Manager
88 .include "dsk_fsys.asm" ; Basic Filesystem definitions
89
90 ; <<<-------------------------------------- File System Management
91
92 ; .include "8080int-orig.asm" ;Old 8080 interpreter.
93 ; .include "8080int.asm" ;New 8080 interpreter.
94 ; .include "8080int-t3.asm" ;Another 8080 interpreter
95 ; .include "8080int-t3-jmp.asm" ;Can't get enough
96 ; .include "8080int-jmp.asm" ;
97 .include "Z80int-jmp.asm" ;
98
99 .include "virt_ports.asm" ; Virtual Ports for BIOS
100 .include "dram-refresh.asm"
101
102
103 .dseg
104 ramtop: .byte 0
105
106 .cseg
107
108 ; vim:set ts=8 noet nowrap