Make ROM const

This commit is contained in:
Toby Jaffey 2025-12-09 22:08:53 +00:00
parent 76fba39a21
commit ac554865a6
6 changed files with 11 additions and 7 deletions

View file

@ -77,7 +77,7 @@ void uvm32_init(uvm32_state_t *vmst) {
vmst->core.extraflags |= 3; // Machine-mode.
}
bool uvm32_load(uvm32_state_t *vmst, uint8_t *rom, int len) {
bool uvm32_load(uvm32_state_t *vmst, const uint8_t *rom, int len) {
if (len > UVM32_MEMORY_SIZE) {
// too big
return false;