Identity map memory upon reset
Upon reset the mapper is set to identity map and then enabled.
This commit is contained in:
@@ -3,6 +3,7 @@
|
|||||||
|
|
||||||
#include "board_io.h"
|
#include "board_io.h"
|
||||||
#include "uart.h"
|
#include "uart.h"
|
||||||
|
#include "mapper.h"
|
||||||
|
|
||||||
int main() {
|
int main() {
|
||||||
int i;
|
int i;
|
||||||
@@ -13,6 +14,14 @@ int main() {
|
|||||||
clrscr();
|
clrscr();
|
||||||
cprintf("Hello, world!\n");
|
cprintf("Hello, world!\n");
|
||||||
|
|
||||||
|
for (i = 0; i < 16; i++){
|
||||||
|
cprintf("Mapping %1xxxx to %2xxxx\n", i, i);
|
||||||
|
mapper_write(i, i);
|
||||||
|
}
|
||||||
|
|
||||||
|
cprintf("Enabling Mapper\n");
|
||||||
|
mapper_enable(1);
|
||||||
|
|
||||||
while (1) {
|
while (1) {
|
||||||
|
|
||||||
sw = sw_read();
|
sw = sw_read();
|
||||||
|
|||||||
Reference in New Issue
Block a user