mirror of
https://github.com/ringtailsoftware/uvm32.git
synced 2026-06-05 22:43:39 +00:00
Make ROM const
This commit is contained in:
parent
76fba39a21
commit
ac554865a6
6 changed files with 11 additions and 7 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue