From: ian Date: Fri, 30 Dec 2005 13:29:30 +0000 (+0000) Subject: fix memory initialisation X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ijackson/git?a=commitdiff_plain;h=b27311dd4330a393cc700d8b1385a855a404ef86;p=trains.git fix memory initialisation --- diff --git a/detpic/misc.asm b/detpic/misc.asm index 5076592..eada682 100644 --- a/detpic/misc.asm +++ b/detpic/misc.asm @@ -80,9 +80,9 @@ memory_erase_byteloop bra memory_erase_byteloop ; new page: - mov_lw 0x05 - cmp_fw_ifle FSR0H - bra memory_erase_pageloop + mov_lw 0x06 + xor_wfw FSR0H + bra_nz memory_erase_pageloop ; done! mov_ff FSR1L, picno