Xemu [doxygen]  hyppo 0a42be3a057156924bc1b626a687bd6e27349c45 @ Sat 19 Mar 02:15:11 CET 2022
z8k1.h
Go to the documentation of this file.
1 /* Z8001 CPU emulator
2  * Part of the Xemu project, please visit: https://github.com/lgblgblgb/xemu
3  * Copyright (C)2018 LGB (Gábor Lénárt) <lgblgblgb@gmail.com>
4 
5 This program is free software; you can redistribute it and/or modify
6 it under the terms of the GNU General Public License as published by
7 the Free Software Foundation; either version 2 of the License, or
8 (at your option) any later version.
9 
10 This program is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 GNU General Public License for more details.
14 
15 You should have received a copy of the GNU General Public License
16 along with this program; if not, write to the Free Software
17 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */
18 
19 #ifndef __XEMU_C900_Z8K1_H_INCLUDED
20 #define __XEMU_C900_Z8K1_H_INCLUDED
21 
22 extern void z8k1_init ( void );
23 extern void z8k1_reset ( void );
24 extern int z8k1_step ( int cycles_limit );
25 
26 // Need to be defined by the user:
27 // (surely for C900 emulation, these must be fed into the Z8010 MMU emulation then ...)
28 
29 extern Uint8 z8k1_read_byte_cb ( int seg, Uint16 ofs );
30 extern Uint16 z8k1_read_word_cb ( int seg, Uint16 ofs );
31 extern Uint16 z8k1_read_code_cb ( int seg, Uint16 ofs );
32 extern void z8k1_write_byte_cb ( int seg, Uint16 ofs, Uint8 data );
33 extern void z8k1_write_word_cb ( int seg, Uint16 ofs, Uint16 data );
34 
35 extern Uint8 z8k1_in_byte_cb ( int special, Uint16 addr );
36 extern Uint16 z8k1_in_word_cb ( int special, Uint16 addr );
37 extern void z8k1_out_byte_cb ( int special, Uint16 addr, Uint8 data );
38 extern void z8k1_out_word_cb ( int special, Uint16 addr, Uint16 data );
39 
40 #endif
z8k1_in_byte_cb
Uint8 z8k1_in_byte_cb(int special, Uint16 addr)
z8k1_write_word_cb
void z8k1_write_word_cb(int seg, Uint16 ofs, Uint16 data)
seg
Uint8 seg
Definition: roms.c:41
z8k1_in_word_cb
Uint16 z8k1_in_word_cb(int special, Uint16 addr)
z8k1_read_word_cb
Uint16 z8k1_read_word_cb(int seg, Uint16 ofs)
Definition: commodore_900.c:41
addr
int addr
Definition: dma65.c:81
z8k1_out_byte_cb
void z8k1_out_byte_cb(int special, Uint16 addr, Uint8 data)
m65-memcontent-generator.data
data
Definition: m65-memcontent-generator.py:119
Uint8
uint8_t Uint8
Definition: fat32.c:51
z8k1_init
void z8k1_init(void)
Definition: z8k1.c:516
z8k1_step
int z8k1_step(int cycles_limit)
Definition: z8k1.c:520
z8k1_out_word_cb
void z8k1_out_word_cb(int special, Uint16 addr, Uint16 data)
z8k1_read_code_cb
Uint16 z8k1_read_code_cb(int seg, Uint16 ofs)
Definition: commodore_900.c:51
Uint16
uint16_t Uint16
Definition: fat32.c:50
z8k1_write_byte_cb
void z8k1_write_byte_cb(int seg, Uint16 ofs, Uint8 data)
z8k1_reset
void z8k1_reset(void)
Definition: z8k1.c:487
z8k1_read_byte_cb
Uint8 z8k1_read_byte_cb(int seg, Uint16 ofs)
Definition: commodore_900.c:32
ofs
int ofs
Definition: fat32.c:158