fork of PCE focusing on macplus, supporting DaynaPort SCSI network emulation
1/*****************************************************************************
2 * pce *
3 *****************************************************************************/
4
5/*****************************************************************************
6 * File name: src/lib/mhex.h *
7 * Created: 2020-05-02 by Hampa Hug <hampa@hampa.ch> *
8 * Copyright: (C) 2020 Hampa Hug <hampa@hampa.ch> *
9 *****************************************************************************/
10
11/*****************************************************************************
12 * This program is free software. You can redistribute it and / or modify it *
13 * under the terms of the GNU General Public License version 2 as published *
14 * by the Free Software Foundation. *
15 * *
16 * This program is distributed in the hope that it will be useful, but *
17 * WITHOUT ANY WARRANTY, without even the implied warranty of *
18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General *
19 * Public License for more details. *
20 *****************************************************************************/
21
22
23#ifndef PCE_LIB_MHEX_H
24#define PCE_LIB_MHEX_H 1
25
26
27typedef void (*mhex_set_f) (void *ext, unsigned long addr, unsigned char val);
28typedef unsigned char (*mhex_get_f) (void *ext, unsigned long addr);
29
30
31int mhex_load_fp (FILE *fp, void *ext, mhex_set_f set);
32int mhex_load (const char *fname, void *ext, mhex_set_f set);
33
34int mhex_save_fp (FILE *fp, unsigned long base, unsigned addr, unsigned size, void *ext, mhex_get_f get);
35int mhex_save (const char *fname, unsigned long base, unsigned addr, unsigned size, void *ext, mhex_get_f set);
36
37
38#endif