fork of PCE focusing on macplus, supporting DaynaPort SCSI network emulation
1/*****************************************************************************
2 * pce *
3 *****************************************************************************/
4
5/*****************************************************************************
6 * File name: src/lib/load.h *
7 * Created: 2004-08-02 by Hampa Hug <hampa@hampa.ch> *
8 * Copyright: (C) 2004-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_LOAD_H
24#define PCE_LIB_LOAD_H 1
25
26
27#include <devices/memory.h>
28
29#include <libini/libini.h>
30
31
32int pce_load_blk_bin (mem_blk_t *blk, const char *fname);
33
34int pce_load_mem_ihex (memory_t *mem, const char *fname);
35int pce_load_mem_mhex (memory_t *mem, const char *fname);
36int pce_load_mem_srec (memory_t *mem, const char *fname);
37int pce_load_mem_bin (memory_t *mem, const char *fname, unsigned long base);
38
39int pce_load_mem (memory_t *mem, const char *fname, const char *fmt, unsigned long addr);
40
41int pce_load_mem_ini (memory_t *mem, ini_sct_t *ini);
42
43
44#endif