Do some work on the CPU, assembler still needs update
This commit is contained in:
24
cpu/memory.h
Normal file
24
cpu/memory.h
Normal file
@@ -0,0 +1,24 @@
|
||||
//
|
||||
// Created by bruno on 2.2.2025.
|
||||
//
|
||||
|
||||
#ifndef RISCB_MEMORY_H
|
||||
#define RISCB_MEMORY_H
|
||||
|
||||
#include <stdint.h>
|
||||
#include "../cpu/core.h"
|
||||
|
||||
uint8_t write_mem32(CPU *cpu, uint32_t addr, uint32_t value);
|
||||
|
||||
uint8_t write_mem16(CPU *cpu, uint32_t addr, uint16_t value);
|
||||
|
||||
uint32_t read_mem32(CPU *cpu, uint32_t addr);
|
||||
|
||||
uint16_t read_mem16(CPU *cpu, uint32_t addr);
|
||||
|
||||
uint8_t read_mem(CPU *cpu, uint32_t addr);
|
||||
|
||||
uint8_t write_mem(CPU *cpu, uint32_t addr, uint8_t value);
|
||||
|
||||
|
||||
#endif //RISCB_MEMORY_H
|
Reference in New Issue
Block a user