Identity map memory upon reset

Upon reset the mapper is set to identity map and then enabled.
This commit is contained in:
Byron Lathi
2022-04-07 10:36:50 -05:00
parent be497ecaa9
commit 35040860e7

View File

@@ -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();