Mercurial > repos > simple16
comparison src/main.c @ 30:78068060313a
Fixed memory flags on RAM
author | Michael Pavone <pavone@retrodev.com> |
---|---|
date | Sun, 03 Apr 2016 18:37:14 -0700 |
parents | c677507682e3 |
children | eda4919d955f |
comparison
equal
deleted
inserted
replaced
29:5a8b5f9fc50a | 30:78068060313a |
---|---|
178 } | 178 } |
179 } | 179 } |
180 | 180 |
181 memory_region regions[] = { | 181 memory_region regions[] = { |
182 {rom, 0, sizeof(rom)-1, MEM_READ}, | 182 {rom, 0, sizeof(rom)-1, MEM_READ}, |
183 {ram, sizeof(rom), sizeof(rom)-1+sizeof(ram), MEM_READ}, | 183 {ram, sizeof(rom), sizeof(rom)-1+sizeof(ram), MEM_READ|MEM_WRITE}, |
184 }; | 184 }; |
185 | 185 |
186 void run_console(console *context) | 186 void run_console(console *context) |
187 { | 187 { |
188 for(;;) | 188 for(;;) |