zeta-v2: Bug fix for false alarms when searching for kernel in memory
authorWill Sowerbutts <will@sowerbutts.com>
Fri, 8 May 2015 23:31:35 +0000 (00:31 +0100)
committerWill Sowerbutts <will@sowerbutts.com>
Fri, 8 May 2015 23:31:35 +0000 (00:31 +0100)
Kernel/platform-zeta-v2/zeta-v2.s

index 951df99..35146a9 100644 (file)
@@ -118,6 +118,8 @@ checkpage:
         ld a, (0x4000)      ; read it
         cp #0x42            ; found it?
         jr z, foundpage     ; we got one!
+        ld a, #0x55         ; put back the first test value
+        ld (hl), a
 nextpage:
         inc b               ; next page
         jr nz, checkpage    ; check next page -- note we test pages above 1MB too