mirror of
https://github.com/rkujawa/rk65c02.git
synced 2024-12-23 07:30:31 +00:00
Add cleanup function for RAM device. Also cosmetics.
This commit is contained in:
parent
ec235796c0
commit
53f0136cab
@ -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);
|
||||
}
|
||||
|
||||
|
@ -4,5 +4,6 @@
|
||||
#include "device.h"
|
||||
|
||||
device_t * device_ram_init();
|
||||
void device_ram_finish(device_t *);
|
||||
|
||||
#endif /* _DEVICE_RAM_H_ */
|
||||
|
Loading…
Reference in New Issue
Block a user