1 ; Z80 emulator with CP/M support. The Z80-specific instructions themselves
2 ; actually aren't implemented yet, making this more of an i8080 emulator.
3 ; This is the main file, glueing all parts together.
5 ; Copyright (C) 2010 Sprite_tm
6 ; Copyright (C) 2010 Leo C.
8 ; This file is part of avrcpm.
10 ; avrcpm is free software: you can redistribute it and/or modify it
11 ; under the terms of the GNU General Public License as published by
12 ; the Free Software Foundation, either version 3 of the License, or
13 ; (at your option) any later version.
15 ; avrcpm is distributed in the hope that it will be useful,
16 ; but WITHOUT ANY WARRANTY; without even the implied warranty of
17 ; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 ; GNU General Public License for more details.
20 ; You should have received a copy of the GNU General Public License
21 ; along with avrcpm. If not, see <http://www.gnu.org/licenses/>.
29 #elif defined atmega168
30 .include "m168def.inc"
31 #elif defined atmega328P
32 .include "m328Pdef.inc"
38 #if DRAM_8BIT /* Implies software uart */
39 .include "dram-8bit.inc"
41 .include "dram-4bit.inc"
46 rjmp start ; reset vector
52 ; .include "mmc-old.asm"
53 #if DRAM_8BIT /* Implies software uart */
54 .include "sw-uart.asm"
55 .include "dram-8bit.asm"
56 #else /* 4 bit RAM, hardware uart */
57 .include "hw-uart.asm"
58 .include "dram-4bit.asm"
60 .include "remainders.asm"
61 ; .include "z80int.asm" ;Old 8080 interpreter.
62 ; .include "8080int.asm" ;New 8080 interpreter.
63 ; .include "8080int-t3.asm"
64 ; .include "8080int-t3-jmp.asm"
65 .include "8080int-jmp.asm"
73 ; vim:set ts=8 noet nowrap