Added TTL based LRU memory cache.

This commit is contained in:
2018-10-26 23:30:27 +01:00
parent 52a70e7931
commit 43428a27aa
6 changed files with 131 additions and 12 deletions

View File

@@ -62,7 +62,7 @@ struct VM_t {
uint8_t PC;
uint8_t carry;
bool halted;
uint8_t (*readAddr)(uint16_t addr);
uint8_t (*readAddr)(uint16_t addr, bool instruction);
void (*writeAddr)(uint16_t addr, uint8_t data);
uint8_t (*syscall)(struct VM_t* vm, uint8_t callno, uint8_t imm);
void (*error)(uint8_t err);