-
-
Notifications
You must be signed in to change notification settings - Fork 19
/
Copy pathbin_load.h
30 lines (25 loc) · 841 Bytes
/
bin_load.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
//-----------------------------------------------------------------
// ExactStep IAISS
// V0.5
// github.com/ultraembedded/exactstep
// Copyright 2014-2019
// License: BSD 3-Clause
//-----------------------------------------------------------------
#ifndef __BIN_LOAD_H__
#define __BIN_LOAD_H__
#include "mem_api.h"
#include <string>
//--------------------------------------------------------------------
// Binary loader
//--------------------------------------------------------------------
class bin_load
{
public:
bin_load(const char *filename, mem_api *target);
bool load(uint32_t mem_base, uint32_t mem_size);
bool load(uint32_t mem_base);
protected:
std::string m_filename;
mem_api * m_target;
};
#endif