1 ; DRAM interface for *one* 256K x 4 bit DRAM chip.
2 ; This is part of the Z80-CP/M emulator written by Sprite_tm.
4 ; Copyright (C) 2010 Sprite_tm
5 ; Copyright (C) 2010 Leo C.
7 ; This file is part of avrcpm.
9 ; avrcpm is free software: you can redistribute it and/or modify it
10 ; under the terms of the GNU General Public License as published by
11 ; the Free Software Foundation, either version 3 of the License, or
12 ; (at your option) any later version.
14 ; avrcpm 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.
19 ; You should have received a copy of the GNU General Public License
20 ; along with avrcpm. If not, see <http://www.gnu.org/licenses/>.
26 ; -------------------- DRAM macros---------------
29 ; dram_wait number_of_cycles
41 ; ------------------------------------------------
43 ; DRAM_SETADDR val, low_and_mask, low_or_mask, high_and_mask, high_or_mask
59 ori temp, @4 | (1<<mmc_cs)
64 ;----------------------------------------------
66 ; temp = destreg, xh = memaddrh, xl = memaddrl
72 ;----------------------------------------------
82 ;----------------------------------------------
85 ; xh = memaddrh, xl = memaddrl
92 ;----------------------------------------------
94 ; mem_read destreg, memaddr
102 ;----------------------------------------------
104 ; xh = memaddrh, xl = memaddrl, temp = srcreg
110 ;----------------------------------------------
120 ;----------------------------------------------
122 ; xh = memaddrh, xl = memaddrl
123 ; mem_write sourcereg
130 ;----------------------------------------------
132 ; mem_write memaddr, sourcereg