switch RAM and ROM mode with memory_region_set_readonly
From:
Hiroko Shimizu
Subject:
switch RAM and ROM mode with memory_region_set_readonly
Date:
Wed, 14 Jul 2021 20:10:07 +0900
Hello,
I want to switch
the memory read-only mode with memory_region_set_readonly() function for writing a value to memory under a specific condition. I checked that I could switch the mode using memory_region_set_readonly(), but I couldn't write a value to the memory region when the mode was false.