1
0
mirror of https://github.com/rkujawa/rk65c02.git synced 2024-12-13 01:29:57 +00:00

Add cleanup function for RAM device. Also cosmetics.

This commit is contained in:
Radosław Kujawa 2017-02-21 11:11:21 +01:00
parent ec235796c0
commit 53f0136cab
2 changed files with 9 additions and 1 deletions

View File

@ -8,6 +8,9 @@
#define RAM_SIZE 0xDFFF /* should be configurable */
uint8_t device_ram_read_1(void *, uint16_t);
void device_ram_write_1(void *, uint16_t, uint8_t);
uint8_t
device_ram_read_1(void *vd, uint16_t offset)
{
@ -53,5 +56,9 @@ device_ram_init()
return d;
}
/* TODO: device_ram_finish */
void
device_ram_finish(device_t *d)
{
free(d->aux);
}

View File

@ -4,5 +4,6 @@
#include "device.h"
device_t * device_ram_init();
void device_ram_finish(device_t *);
#endif /* _DEVICE_RAM_H_ */