You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
40 lines
691 B
40 lines
691 B
|
|
#include <string.h> |
|
#include "Storage.h" |
|
|
|
using namespace Empty; |
|
|
|
EmptyStorage::EmptyStorage() |
|
{} |
|
|
|
void EmptyStorage::init(void*) |
|
{} |
|
|
|
uint8_t EmptyStorage::read_byte(uint16_t loc){ |
|
return 0; |
|
} |
|
|
|
uint16_t EmptyStorage::read_word(uint16_t loc){ |
|
return 0; |
|
} |
|
|
|
uint32_t EmptyStorage::read_dword(uint16_t loc){ |
|
return 0; |
|
} |
|
|
|
void EmptyStorage::read_block(void* dst, uint16_t src, size_t n) { |
|
memset(dst, 0, n); |
|
} |
|
|
|
void EmptyStorage::write_byte(uint16_t loc, uint8_t value) |
|
{} |
|
|
|
void EmptyStorage::write_word(uint16_t loc, uint16_t value) |
|
{} |
|
|
|
void EmptyStorage::write_dword(uint16_t loc, uint32_t value) |
|
{} |
|
|
|
void EmptyStorage::write_block(uint16_t loc, const void* src, size_t n) |
|
{} |
|
|
|
|