diff options
author | Nao Pross <naopross@thearcway.org> | 2017-10-05 12:17:37 +0200 |
---|---|---|
committer | Nao Pross <naopross@thearcway.org> | 2017-10-05 12:17:37 +0200 |
commit | f000d406809d8a7a0e71c388ebfb15d7564728e4 (patch) | |
tree | 2284c66b0459e9456fb451feaa4290e5d99e4349 /sw/z80/kernel/memory.c | |
parent | Merge remote-tracking branch 'origin/atlas' into naopross (diff) | |
download | z80uPC-f000d406809d8a7a0e71c388ebfb15d7564728e4.tar.gz z80uPC-f000d406809d8a7a0e71c388ebfb15d7564728e4.zip |
Test units are now in their own folder 'z80_test', add programmer cli interface
Diffstat (limited to '')
-rw-r--r-- | sw/z80/kernel/memory.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/sw/z80/kernel/memory.c b/sw/z80/kernel/memory.c index cda62ca..1b2cc76 100644 --- a/sw/z80/kernel/memory.c +++ b/sw/z80/kernel/memory.c @@ -17,12 +17,14 @@ int mmu_write_table(void) int page_new(void) { - int i, addr, used; + int i, used; + uint16_t addr; + for (addr = ADDR_PAGE_FIRST; addr < ADDR_PAGE_LAST; addr += PAGE_SIZE) { used = 0; for (i = 0; i < PAGES_MAX_COUNT; i++) { - if (page_map[i].addr == addr) { + if (pages_table[i].addr == addr) { used = 1; break; } |